X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=be322aaadfecd76b6723ffce24129de508eaac53;hb=b4238d2e6248b0b149d0c4357ee542b0d4ff3504;hp=2df92ecac98112065708f014a1c64a349c6da3e2;hpb=41a2f56d3a83d46d640f601d12866167c06bb3c2;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 2df92ec..be322aa 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,8 @@ " Vim main configuration file. +" EDITOR SETTINGS + " Make sure Vim (and not Vi) settings are enabled. set nocompatible @@ -9,9 +11,6 @@ set nocompatible set runtimepath-=~/.vim set runtimepath^=~/.vim,~/.vim/plugins,~/.vim/runtime - -" EDITOR SETTINGS - " When completing paths first use the longest path then display a list of all " possible files. set wildmode=longest,list @@ -72,7 +71,8 @@ set incsearch if has("folding") set foldmethod=syntax set foldcolumn=2 - set foldlevel=99 " no folding at default + set foldlevel=99 " no closed folds at default, 'foldenable' would disable + " folding which is not what I want endif " Only check for case if the searched word contains a capital character. @@ -85,6 +85,9 @@ if v:version >= 700 set spelllang=en_us endif +" Allow buffers with changes to be hidden. +set hidden + " DISPLAY SETTINGS @@ -114,9 +117,10 @@ set listchars=trail:- nnoremap nnoremap - -" Maps to change spell language between English and German. -map se :set spelllang=en_us -map sd :set spelllang=de_de +" Maps to change spell language between English and German and disable it. +map sn :set nospell +map se :set spell spelllang=en_us +map sd :set spell spelllang=de_de " Add semicolon to the end of the line. Thanks to " http://www.van-laarhoven.org/vim/.vimrc for this idea and godlygeek in #vim