Created
February 2, 2018 04:50
-
-
Save BaylorRae/f897956345f3419e674c451f272d7b3d to your computer and use it in GitHub Desktop.
5 tips to improve your vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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