X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=75283da711ca796f02b4ee243951c7b70afb1dee;hb=892d099baa74f7399d60c78378f2e401dd14e05e;hp=bc6894408014a102e8c312be10081015b2709837;hpb=2019bdf43c4749cc2093f422036654a9d5b6711f;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index bc68944..75283da 100644 --- a/vimrc +++ b/vimrc @@ -202,6 +202,10 @@ endif " MAPPINGS (except for plugins, see PLUGIN SETTINGS below) +" noremap is used to make sure the right side is executed as is and can't be +" modified by a plugin or other settings. Except for which isn't +" affected by mappings. + " Easy way to exit insert mode. inoremap jj inoremap jk @@ -400,6 +404,15 @@ if has('syntax') set synmaxcol=500 endif +" Use (limited) syntax based omni completion if no other omni completion is +" available. Taken from :help ft-syntax-omni. + if has('autocmd') && exists('+omnifunc') + autocmd FileType * + \ if &omnifunc == '' | + \ setlocal omnifunc=syntaxcomplete#Complete | + \ endif + endif + " Highlight lines longer than 78 characters. Thanks to Tony Mechelynck " from the Vim mailing list. It can easily be " disabled when necessary with :2match (in Vim >= 700). @@ -436,6 +449,10 @@ if has('syntax') let g:perl_fold_blocks = 1 let g:perl_nofold_packages = 1 let g:perl_include_pod = 1 " syntax coloring for PODs + " Vim, enable folding for autogroups (a) and functions (f). + let g:vimsyn_folding = "af" + " XML. + let g:xml_syntax_folding = 1 endif