Skip to content

Instantly share code, notes, and snippets.

@onjin
Created September 21, 2011 09:58
Show Gist options
  • Save onjin/1231714 to your computer and use it in GitHub Desktop.
Save onjin/1231714 to your computer and use it in GitHub Desktop.
.vimrc commons
" where i'm
set number
set cursorline
set nocursorcolumn
" work with .vimrc
map ,v :sp ~/.vimrc<cr> " edit my .vimrc file in a split
map ,e :e ~/.vimrc<cr> " edit my .vimrc file
map ,u :source ~/.vimrc<cr> " update the system settings from my vimrc file
" alt+arrow window movement
nnoremap <M-Right> <C-W><Right>
nnoremap <M-Left> <C-W><Left>
nnoremap <M-Up> <C-W><Up>
nnoremap <M-Down> <C-W><Down>
" automate common tasks
iab pdb@ import pdb<CR>pdb.set_trace()
iab ipdb@ import ipdb<CR>ipdb.set_trace()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment