Skip to content

Instantly share code, notes, and snippets.

@kcmerrill
Created December 2, 2016 17:15
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 kcmerrill/237f0fe34c94314c35cbda8ee6432982 to your computer and use it in GitHub Desktop.
Save kcmerrill/237f0fe34c94314c35cbda8ee6432982 to your computer and use it in GitHub Desktop.
Just a quick short list of things I can't live without in my .vimrc file. Along with other non vimy type things.
- Packages/Plugins that are _must_ haves
Airline(file info about the buffer)
Gitgutter(useful to see what you've changed)
CtrlP(fuzzy file finder)
committia(Amazing git commit panes)
- Remap escape to jk/kj.
inoremap jk <C-[>
inoremap JK <C-[>
- Overwrite the file without needing to close/reopen vim
cmap w!! w !sudo tee % > /dev/null
- Useful to move between buffers using tabs(and prev tabs)
nnoremap <tab> :bnext<CR>
nnoremap <S-tab> :bprev<CR>
- Remap : -> ; no need for shift
map ; :
- Useful to quickly find your cursor
set cursorline
- If you're not using tmux(you _should_ be)
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
- Useful for delete in(di<char>)
set matchpairs=(:),{:},[:]
- Useful to see funky chars in your code
set list
set listchars=tab:â–·â‹…,trail:â‹…,nbsp:â‹…
- No swap files(dumb, figure out another backup plan)
set noswapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment