dotar/vim/settings/python-mode.vim

25 lines
978 B
VimL
Raw Normal View History

2017-03-10 17:14:30 +08:00
" Override go-to.definition key shortcut to Ctrl-]
2017-08-04 10:15:33 +08:00
autocmd FileType python set colorcolumn=160
2017-03-10 17:14:30 +08:00
let g:pymode_rope_goto_definition_bind = "<C-]>"
" Override run current python file key shortcut to Ctrl-Shift-e
let g:pymode_run_bind = "<C-S-e>"
" Override view python doc key shortcut to Ctrl-Shift-d
let g:pymode_doc_bind = "<C-S-d>"
let g:pymode_lint_ignore = "W0611"
2017-05-12 18:27:04 +08:00
let g:pymode_options_max_line_length=160
2017-05-16 02:24:35 +08:00
let g:pymode_rope_lookup_project = 0
2017-03-10 17:14:30 +08:00
augroup filetype_python
autocmd!
"autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType python setlocal foldmethod=indent
autocmd FileType python nnoremap <F12> :execute "!./" . expand("%") <CR>
autocmd FileType python setlocal foldlevel=99
autocmd FileType python setlocal statusline=%f-%y-[%l]/[%L]
autocmd FileType python nnoremap <buffer> <localleader>c I#cesc>
autocmd FileType python :iabbrev <buffer> iff if:<left>
autocmd FileType python set nowrap
augroup END