From 7c146d1068f802bdb3010872e97ef105d8929832 Mon Sep 17 00:00:00 2001 From: Robert Kmiec Date: Mon, 22 Jul 2019 10:28:57 +0200 Subject: [PATCH] vim: tweak parameters to be more responsive --- .vimrc | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.vimrc b/.vimrc index 7a43d88..79386b3 100644 --- a/.vimrc +++ b/.vimrc @@ -146,7 +146,7 @@ set smartcase set gdefault set incsearch set showmatch -set matchtime=3 +"set matchtime=3 set hlsearch nnoremap :noh @@ -204,7 +204,7 @@ set wildignore+=migrations "Django migrations" set wildignore+=*.pyc "Python Object codes" set wildignore+=*.orig "Merge resolution files" -match Error /\s\+$\|DUPA\c/ +match Error /\s\+$\|DU\cPA/ " Removing scrollbars if has("gui_running") @@ -214,7 +214,7 @@ if has("gui_running") set guioptions-=L set guioptions+=a set guioptions-=m - colorscheme molokai + colorscheme alduin set listchars=tab:▸\ ,eol:¬ " Invisibles using the Textmate style else colorscheme badwolf @@ -224,6 +224,7 @@ else set list hi clear SpellBad hi SpellBad cterm=underline + hi Normal ctermbg=None endif if &term =~ '256color' @@ -361,7 +362,7 @@ endfunction " Folding - space one line, home,end globally increase/decrease set foldenable -set foldlevelstart=3 +set foldlevelstart=999 set foldnestmax=5 set foldtext=FoldFormat() set fillchars=fold:\ @@ -379,7 +380,7 @@ let b:jiracomplete_password = 'password' " We can also use v:val.menu let b:jiracomplete_format = '"[". v:val.abbr. "]"' -set updatetime=4000 +set updatetime=100 " From C.vim: " ADDITIONAL MAPPING : complete a classical C comment: '/*' => '/* | */' @@ -402,7 +403,7 @@ let g:ctrlp_working_path_mode = 'rw' tnoremap -set spell +set nospell set runtimepath+=/usr/share/vim/vimfiles set spelllang=en,pl " Dictionary path, from which the words are being looked up. @@ -412,11 +413,11 @@ set dictionary+=/usr/share/dict/words "set showbreak=++ "let g:rtagsRcCmd='rtags-rc' -set timeoutlen=1000 -set ttimeout -set ttimeoutlen=0 -let g:matchparen_timeout = 2 -let g:matchparen_insert_timeout = 2 +"set timeoutlen=1000 +"set ttimeout +"set ttimeoutlen=0 +"let g:matchparen_timeout = 2 +"let g:matchparen_insert_timeout = 2 " Mapping to NERDTree "nnoremap :NERDTreeToggle @@ -471,6 +472,15 @@ nnoremap :call FindAlternate() "let g:alternateSearchPath="sfr:../source,sfr:../src,sfr:../include,sfr:../inc,sfr:./Source,sfr:.." "map :call CurtineIncSw() +" taken from tpope + +setglobal complete-=i +setglobal virtualedit=block +setglobal shiftround +if has('folding') + setglobal foldopen+=jump +endif + packadd termdebug let g:startify_custom_header = ''