X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=1f14e5f23944c073c9da799994db26a210b793dc;hb=1c46e36badce4692e1ce044ccaa79e68b042f6fc;hp=8e64ca0204701c964fc05040a4532fcff0cead7c;hpb=4c23170a02f7c119715c19ae3293a563f34d9b33;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 8e64ca0..1f14e5f 100644 --- a/vimrc +++ b/vimrc @@ -89,9 +89,6 @@ set listchars=trail:- " EDITOR SETTINGS -" Don't use any modelines. -set nomodeline - " When completing paths first use the longest path then display a list of all " possible files. set wildmode=longest,list @@ -102,17 +99,15 @@ if v:version >= 700 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 NERDCommenterToggle +" Use to move down a page and - to move up one like in mutt. +nnoremap +nnoremap - " Maps to change spell language between English and German. map se :set spelllang=en_us @@ -138,6 +133,12 @@ else \ ((getcmdtype() == ':' && getcmdpos() <= 2) ? 'q' : 'Q') endif +" Make sure xa0 (alt + space) is automatically changed to a normal whitespace +" if pressed accidentally while in insert mode (happens on Mac sometimes). +if has("mac") + imap +endif + " Disable Apple style movements in MacVim. if has("gui_macvim") let macvim_skip_cmd_opt_movement = 1 @@ -149,7 +150,19 @@ endif " Activate syntax coloring. syntax enable +" Highlight text longer then 78 characters. Thanks to Tony Mechelynck +" from the Vim mailing list. +if v:version >= 700 + 2match Todo /\%>78v./ +else + match Todo /\%>78v./ +endif + + +" PLUGIN SETTINGS -" Automatically save and the load the file state (stored in ~/.vim/view). -autocmd BufWrite * mkview -autocmd BufRead * loadview +" Settings for the NERD commenter. +" Don't create any mappings I don't want to use. +let NERDCreateDefaultMappings = 0 +" Map toggle comment. +map NERDCommenterToggle