" Remap VIM 0 to first non-blank character map 0 ^ " Clear highlight. function! s:hier_clear() if exists(':HierClear') HierClear endif endfunction nnoremap :nohlsearch:call hier_clear() " nnoremap :nohlsearch:match " User yank register " nnoremap PP "0p "--------------------------------------------------------------------------- " Spell checking: " " Pressing ,ss will toggle and untoggle spell checking map ss :setlocal spell! " Shortcuts using map sn ]s map sp [s map sa zg map s? z= map n :cnext map p :cprevious nnoremap c :cclose " yank the word which is under cursor nnoremap yc vawy " in insert mode moving key maps inoremap inoremap " hjkl with ctrl inoremap inoremap inoremap inoremap " move cursor to other window " by CTRL-hjkl nnoremap j nnoremap k nnoremap l nnoremap " move tab " nnoremap :tabnext " nnoremap :tabprevious