let mapleader=',' " Lead with , " Jump to vimrc nnoremap v :edit $DOTFILES_ROOT/vimrc " Reload vimrc setting nnoremap s :source $HOME/.vimrc " Create new tab cnoremap tabnew nnoremap :tabprevious nnoremap :tabnext " Recall command-line from history, whose beginning matches the current command-line. cnoremap cnoremap " Expand %% as %:h cnoremap %% getcmdtype() == ':' ? expand('%:h').'/' : '%%' " Move to n-th tab by Cmd-n map 1gt map 2gt map 3gt map 4gt map 5gt map 6gt map 7gt map 8gt map 9gt map :tablast