X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b56759cf61f4c2fabf8681d1f2ca5128a312e721..a2a6902a546bd80dc2d474731bf5a553cdc58fb7:/vim/vimrc?ds=sidebyside diff --git a/vim/vimrc b/vim/vimrc index 0161570..3c45644 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -332,6 +332,11 @@ augroup END command! NoAutoChecktime let b:autochecktime=0 command! ToggleAutoChecktime let b:autochecktime=!get(b:, 'autochecktime', 0) | echom "b:autochecktime:" b:autochecktime +augroup terminal + au! + au TerminalOpen * if &buftype == 'terminal' | setlocal bufhidden=hide | endif +augroup END + " bindings {{{1 " allow both and \ to be @@ -444,8 +449,10 @@ nnoremap zx zMzxzt map :ls:b " move between windows (skip previewwindow) -nnoremap w:if &previewwindow \| wincmd w \| endif -nnoremap W:if &previewwindow \| wincmd W \| endif +nnoremap w:if &previewwindow \| wincmd w \| endif +nnoremap W:if &previewwindow \| wincmd W \| endif +tnoremap w:if &previewwindow \| wincmd w \| endif +tnoremap W:if &previewwindow \| wincmd W \| endif "xterm mouse with middleclick paste nnoremap i @@ -602,6 +609,7 @@ let g:tagbar_iconchars = ['+', '-'] " tcomments {{{2 let g:tcomment_textobject_inlinecomment = 'gic' +let g:tcomment#filetype#guess = 0 " ultisnips {{{2 let g:UltiSnipsEditSplit = 'vertical'