X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vimrc;h=496858e0599266281548e3311de6ba26ae4af050;hb=afdb73b662cf470f3e822620533cb0e599ae8508;hp=a5d20baf9dd91ca2a8ba33cd1fa651dbaa1b9fab;hpb=caf70a2f580824b193f55b9ac279dc66e154427e;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index a5d20ba..496858e 100644 --- a/vimrc +++ b/vimrc @@ -27,8 +27,10 @@ set autoindent " Activate lines display. set number -" Display the ruler. +" Display the ruler with current line/file position. set ruler +" Display partial commands in the status line. +set showcmd " Activate syntax folding. set foldmethod=syntax @@ -68,6 +70,16 @@ set background=dark 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 + +" I often type "W" instead of "w" when trying to save a file. Fix my mistake. +cmap W w +cmap Wq wq + " Disable Apple style movements in MacVim. if has("gui_macvim")