Created
February 11, 2013 15:13
-
-
Save tekkoc/4755008 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function! InitPython() | |
" jedi.vimとpyhoncompleteがバッティングし得るらしいので | |
" http://mattn.kaoriya.net/software/vim/20121018212621.htm | |
let b:did_ftplugin = 1 | |
setlocal commentstring=#%s | |
" rename用のマッピングを無効にしたため、代わりにコマンドを定義 | |
command! -nargs=0 JediRename :call jedi#rename() | |
" markdownはインベント幅4,タブ幅8でスペースを使う | |
" http://d.hatena.ne.jp/over80/20090305/1236264851 | |
setlocal shiftwidth=4 | |
setlocal tabstop=8 | |
setlocal softtabstop=4 | |
setlocal expandtab | |
setlocal autoindent | |
setlocal smartindent | |
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class | |
nnoremap <buffer> <leader>l :<C-u>call Flake8()<CR> | |
IndentGuidesEnable | |
endfunction | |
autocmd BufEnter * if &filetype == "python" | call InitPython() | endif | |
" pythonのrename用のマッピングがquickrunとかぶるため回避させる | |
let g:jedi#rename_command = "<Leader><C-r><C-r>" | |
let g:jedi#pydoc = "<Leader>k" | |
let g:flake8_builtins="_,apply" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment