Skip to content

Instantly share code, notes, and snippets.

@hassek
Created October 28, 2011 16:41
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 hassek/1322722 to your computer and use it in GitHub Desktop.
Save hassek/1322722 to your computer and use it in GitHub Desktop.
set nolist
color darkblue
"Functions
let g:pep8 = 1
function! Toggleg:pep8()
if g:pep8 == 1
let g:pep8 = 0
pep8Clear
else
lep g:pep8 = 1
pep8Update
endif
endfunction
"Mappings de Tomas
map <C-z> :normal Iimport ipdb; ipdb.set_trace()<Esc>
imap <C-z> import ipdb; ipdb.set_trace()
map <C-s> :normal Ifrom celery.contrib import rdb; rdb.set_trace()<Esc>
imap <C-s> from celery.contrib import rdb; rdb.set_trace()
map \z :normal I{% load dashboard_tpl_tags %} {{CHANGEME\|pdb}}<Esc>
imap \z {% load dashboard_tpl_tags %} {{CHANGEME\|pdb}}
" Toggle line numbers and fold column for easy copying:
nnoremap <F3> :GundoToggle<CR>
nnoremap <F4> :set nospell!<CR>
map <F5> :call TogglePep8()<CR>
set nowrap
nnoremap <F6> :!ctags -R *<CR>
imap \q <Esc>i# TODO<SPACE>
map \q i# TODO<SPACE>
imap \w <Esc>:grep -r --include=*.py "\# TODO" * <CR> :copen <CR>
map \w :grep -r --include=*.py "\# TODO" * <CR> :copen <CR>
map <leader><leader> :ZoomWin <CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment