summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-01-31 10:29:50 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-01-31 10:29:50 +0100
commit12ad5da5c57fb08048bde28444d9253d3f80b3c1 (patch)
treeea78cd3de6e3f59c0d16cbda3f354e26a4f49984
parent6ce5f4c2381074c5b3f3560efeefc69504444a31 (diff)
Add qutebrowser alias ':wq'
-rw-r--r--qutebrowser/.config/qutebrowser/config.py8
-rw-r--r--vim/.vimrc2
-rw-r--r--zathura/.config/zathura/zathurarc1
3 files changed, 10 insertions, 1 deletions
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
index e3fa7b1..9c989ea 100644
--- a/qutebrowser/.config/qutebrowser/config.py
+++ b/qutebrowser/.config/qutebrowser/config.py
@@ -15,6 +15,7 @@ c.url.default_page = c.url.start_pages[0]
# Bindings for normal mode
config.bind(",b", 'spawn --userscript explorer -b')
+config.bind("ch", 'history-all-clear')
config.bind(",p", 'spawn --userscript explorer')
config.bind(",t", 'spawn --userscript explorer -t')
config.bind(",v", 'spawn -d mpv {url}')
@@ -28,6 +29,7 @@ config.bind(",O", 'set-cmd-text -s :spawn --userscript url-from-surfraw -t')
config.bind("f", 'hint all current')
# Bindings for insert mode
+# config.unbind("<Ctrl-A>", mode='insert')
config.bind("<Ctrl-A>", 'fake-key <Home>', mode='insert')
config.bind("<Ctrl-E>", 'fake-key <End>', mode='insert')
config.bind("<Ctrl-H>", 'fake-key <Backspace>', mode='insert')
@@ -56,3 +58,9 @@ c.url.searchengines = {
'tr': 'https://translate.google.com/#en/fr/{}',
'yt': 'https://www.youtube.com/results?search_query={}',
}
+
+# Aliases
+c.aliases = {
+ "history-all-clear": 'spawn rm /home/urbain/.local/share/qutebrowser/cmd-history ;; history-clear',
+ "wq": 'quit -s',
+}
diff --git a/vim/.vimrc b/vim/.vimrc
index 55737ac..9f0dcdd 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -200,7 +200,7 @@ let g:UltiSnipsSnippetsDir="~/.vim/mySnippets"
" let g:UltiSnipsUsePythonVersion=3
" Vimtex
-let g:vimtex_fold_enabled=0
+let g:vimtex_fold_enabled=1
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=2
let g:vimtex_compiler_progname='nvr'
diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc
index 543633d..e93c296 100644
--- a/zathura/.config/zathura/zathurarc
+++ b/zathura/.config/zathura/zathurarc
@@ -1,2 +1,3 @@
map <C-e> scroll down
map <C-y> scroll up
+set font "monospace normal 12"