endif
-" MAPPINGS
+" MAPPINGS (except for plugins, see PLUGIN SETTINGS below)
" Use "," as my mapleader.
let mapleader = ","
let maplocalleader = ","
-" Settings for the NERD commenter.
-" Don't create any mappings I don't want to use.
-let NERDCreateDefaultMappings=0
-" Map toggle comment.
-map <Leader><Leader> <plug>NERDCommenterToggle
-
" Maps to change spell language between English and German.
map <Leader>se :set spelllang=en_us<CR>
map <Leader>sd :set spelllang=de_de<CR>
syntax enable
+" PLUGIN SETTINGS
+
+" Settings for the NERD commenter.
+" Don't create any mappings I don't want to use.
+let NERDCreateDefaultMappings=0
+" Map toggle comment.
+map <Leader><Leader> <plug>NERDCommenterToggle
+
+
" Automatically save and the load the file state (stored in ~/.vim/view).
autocmd BufWrite * mkview
autocmd BufRead * loadview