X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=inline;f=vimrc;h=e44b0217d50d37d2431069f16286d27d3532b8b7;hb=77fb9cc20510d75cdc42c25b66b9f3c31b64d313;hp=11d07d794eb7bdf0231a1d15a96dc02170ba5b0a;hpb=685b482f33446f2366ed65d0747d77d7555cd4ef;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 11d07d7..e44b021 100644 --- a/vimrc +++ b/vimrc @@ -108,6 +108,10 @@ endif let mapleader = "," let maplocalleader = "," +" 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 map sd :set spelllang=de_de @@ -132,6 +136,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 @@ -143,6 +153,14 @@ 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