summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-04-26 09:18:34 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-04-26 09:18:34 +0100
commit6351bf54847b570bab4a597cea38115ebae396fe (patch)
tree52aea1ce32b68b5eb6bb3eefd169d595d11f35fc /vim/.vimrc
parentc0d22295c80fcc0422563bb0c6753f263195ca40 (diff)
parent3c7228deb4585c55e65b107e0b31d45f2345e061 (diff)
Merge branch 'master' of urbainvaes.com:public/dotfiles
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc17
1 files changed, 10 insertions, 7 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index de94c2f..35d4a48 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -63,11 +63,7 @@ Plug 'tpope/vim-unimpaired'
Plug 'troydm/zoomwintab.vim'
Plug 'urbainvaes/vim-remembrall'
" Plug 'urbainvaes/vim-wintab'
-
Plug '~/Dropbox/projects/vim-wintab'
-let g:wintab_mode = 'wintab'
-let g:wintab_boundary = 'create'
-
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-scripts/ReplaceWithRegister'
@@ -242,6 +238,9 @@ let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=2
let g:vimtex_compiler_progname='nvr'
+let g:wintab_boundary='create'
+let g:wintab_mode='wintab'
+
" YouCompleteMe
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
@@ -330,6 +329,7 @@ nmap [w <Plug>AddWhiteSpaceBefore
nnoremap <Leader>w :update<cr>
nnoremap <Leader>q :q<cr>
nnoremap <Leader>d :bd!<cr>
+nnoremap <nowait> <c-d> :q<cr>
nnoremap ,bd :ls<cr>:bd<space>
@@ -435,15 +435,18 @@ augroup vimrc
" Filetype specific
autocmd FileType cmake setlocal commentstring=#%s
autocmd FileType cpp setlocal commentstring=//%s
- autocmd FileType dirvish setlocal errorformat=%f
- autocmd FileType dirvish setlocal relativenumber
- autocmd FileType dirvish silent! unmap <buffer> <C-p>
autocmd FileType freefem comp freefem
autocmd FileType gmsh setlocal makeprg=gmsh\ %
autocmd FileType gnuplot setlocal commentstring=#%s
autocmd FileType gnuplot setlocal makeprg=gnuplot\ %
autocmd FileType python setlocal makeprg=python\ %
autocmd FileType tex setlocal spell
+
+ " Dirvish
+ autocmd FileType dirvish nnoremap <buffer> t :!touch %
+ autocmd FileType dirvish setlocal errorformat=%f
+ autocmd FileType dirvish setlocal relativenumber
+ autocmd FileType dirvish silent! unmap <buffer> <C-p>
augroup END
" }}}