summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-04-17 18:18:11 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-04-17 18:18:11 +0100
commit3c7228deb4585c55e65b107e0b31d45f2345e061 (patch)
tree55d4cb5065e75cc4c1363f977d5a2b284325c42f /vim
parent5483bcfed6fae079fcec332ac39ca00d5d723931 (diff)
Correct bug with i3blocks
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc16
1 files changed, 12 insertions, 4 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index f428cda..72e0847 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -61,7 +61,8 @@ Plug 'tpope/vim-sensible'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-unimpaired'
Plug 'urbainvaes/vim-remembrall'
-Plug 'urbainvaes/vim-wintab'
+" Plug 'urbainvaes/vim-wintab'
+Plug '~/Dropbox/projects/vim-wintab'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-scripts/ReplaceWithRegister'
@@ -236,6 +237,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>']
@@ -324,6 +328,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>
@@ -427,15 +432,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
" }}}