summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qutebrowser/.config/qutebrowser/config.py3
-rw-r--r--vim/.vim/.gitignore7
-rw-r--r--vim/.vim/backup/.gitkeep0
-rw-r--r--vim/.vim/swap/.gitkeep0
-rw-r--r--vim/.vim/undo/.gitkeep0
-rw-r--r--vim/.vimrc16
6 files changed, 19 insertions, 7 deletions
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
index 9c989ea..d1226fb 100644
--- a/qutebrowser/.config/qutebrowser/config.py
+++ b/qutebrowser/.config/qutebrowser/config.py
@@ -15,7 +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(",ch", 'history-all-clear')
config.bind(",p", 'spawn --userscript explorer')
config.bind(",t", 'spawn --userscript explorer -t')
config.bind(",v", 'spawn -d mpv {url}')
@@ -24,6 +24,7 @@ config.bind(",x", 'spawn --userscript user-password')
config.bind("]d", 'set downloads.location.prompt True')
config.bind("[d", 'set downloads.location.prompt False')
config.bind(",do", 'download-open')
+config.bind(",db", 'spawn -d downloads')
config.bind(",o", 'set-cmd-text -s :spawn --userscript url-from-surfraw')
config.bind(",O", 'set-cmd-text -s :spawn --userscript url-from-surfraw -t')
config.bind("f", 'hint all current')
diff --git a/vim/.vim/.gitignore b/vim/.vim/.gitignore
index 58ba36e..d6e21cd 100644
--- a/vim/.vim/.gitignore
+++ b/vim/.vim/.gitignore
@@ -2,4 +2,9 @@
.netrwhist
plugged
view
-vimundo
+
+backup/*
+swap/*
+undo/*
+
+!*.gitkeep
diff --git a/vim/.vim/backup/.gitkeep b/vim/.vim/backup/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/vim/.vim/backup/.gitkeep
diff --git a/vim/.vim/swap/.gitkeep b/vim/.vim/swap/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/vim/.vim/swap/.gitkeep
diff --git a/vim/.vim/undo/.gitkeep b/vim/.vim/undo/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/vim/.vim/undo/.gitkeep
diff --git a/vim/.vimrc b/vim/.vimrc
index 9f0dcdd..816fba5 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=1
+let g:vimtex_fold_enabled=0
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=2
let g:vimtex_compiler_progname='nvr'
@@ -240,6 +240,15 @@ let g:tex_conceal= ''
let g:tex_flavor='latex'
" }}}
"" Vim options {{{
+set backup
+set swapfile
+set undofile
+set backupdir^=~/.vim/backup//
+set directory^=~/.vim/swap//
+set undodir^=~/.vim/undo//
+" ^= : prepends to list
+" // : store absolute path
+
set complete+=k
set conceallevel=2
set cursorline
@@ -251,9 +260,7 @@ set hidden
set ignorecase
set lazyredraw
set nojoinspaces
-set noswapfile
set nowrap
-set nowritebackup
set path=$PWD/**
set shiftwidth=4
set showcmd
@@ -263,8 +270,6 @@ set smartindent
set softtabstop=4
set t_Co=256
set tabstop=4
-set undodir=~/.vim/vimundo/
-set undofile
" set formatoptions+=orw
silent! set breakindent
let &showbreak='--> '
@@ -356,6 +361,7 @@ augroup vimrc
au FileType gmsh setlocal makeprg=gmsh\ %
au FileType gnuplot setlocal makeprg=gnuplot\ %
au FileType gnuplot setlocal commentstring=#%s
+ au FileType cpp setlocal commentstring=//%s
au FileType freefem comp freefem
au FileType dirvish setlocal relativenumber
au FileType dirvish setlocal errorformat=%f