Skip to content

Instantly share code, notes, and snippets.

@BaylorRae
Created February 2, 2018 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BaylorRae/f897956345f3419e674c451f272d7b3d to your computer and use it in GitHub Desktop.
Save BaylorRae/f897956345f3419e674c451f272d7b3d to your computer and use it in GitHub Desktop.
5 tips to improve your vim
" 1) W isn't mapped by default
command! W :w
" 2) force minimun window width
set winwidth=110
" 3) navigate by display lines
noremap j gj
noremap k gk
" 4) switch splits easily
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
" 5) better searches
set hlsearch
set incsearch
set ignorecase
set smartcase
nnoremap <CR> :nohlsearch<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment