vim: tweak parameters to be more responsive

This commit is contained in:
Robert Kmiec
2019-07-22 10:28:57 +02:00
committed by Robert Kmiec
parent d37e0999dd
commit 7c146d1068

32
.vimrc
View File

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