Source

dotfiles / vim / cfg / plugins

Full commit
" CommandT setup
" Expand %% to directory of current file http://vimcasts.org/e/14
cnoremap %% <C-R>=expand('%:h').'/'<CR>
map <leader>f :CommandTFlush<CR>\|:CommandT<CR>

map <leader>F :CommandTFlush<CR>\|:CommandT %%<CR>

" Gundo setup (track/revert saves)
map <leader>g :GundoToggle<CR>

" PyFlakes (don't use quickfix window)
let g:pyflakes_use_quickfix = 0

" PEP8
let g:pep8_map='<leader>8'

" Autocomplete setup
au FileType python set omnifunc=jedi#complete
let g:SuperTabDefaultCompletionType = "context"

" PyDoc preview
set completeopt=menuone,longest,preview

" Disable pylint checking every save
let g:pymode_lint = 0

" For SnipMate/Django
" https://github.com/robhudson/snipmate_for_django
autocmd FileType python set ft=python.django
autocmd FileType htmldjango set ft=htmldjango.html
autocmd FileType html set ft=htmldjango.html

" NerdTree
let NERDTreeIgnore = ['\.pyc$']