Created
October 28, 2011 16:41
-
-
Save hassek/1322722 to your computer and use it in GitHub Desktop.
This file contains 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
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