" Press Space to turn off highlighting and clear any message already displayed. :nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
" Underline the current line with = in normal mode nnoremap <F9> yyp<c-v>$r= " Underline the current line with = in insert mode inoremap <F9> <Esc>yyp<c-v>$r=A
" Yank from the cursor to the end of the line, to be consistent with C and D. nnoremap Y y$
" Disable beep and flash with gvimrc set noeb vb t_vb=
" Use <leader>l to toggle display of whitespace nmap <leader>l :set list!<CR>
"Auto-save when focus is lost - very cool autocmd BufLeave,FocusLost * silent! wall
Why VIM? --------------
always the goal is to reduce the cognitive load
- speed of writing (editing at the speed of thought) - speed of editing (power use of motions) - keeping hands on the keyboard (no mouse)