" 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
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
+
+" 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")