Last active
April 12, 2020 18:19
-
-
Save eltonlaw/8e65cf7ddd6a9a4a47b48a45a8b66055 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
" ~/.vim/ftplugin/python.vim | |
" syntastic (recommended settings) | |
let g:syntastic_python_checkers = ['pylint'] | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
" let g:syntastic_python_pylint_post_args="--max-line-length=79" | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 0 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_python_pylint_args = '--rcfile=/Users/elton.law/.pylintrc' | |
let g:syntastic_python_pylint_exe = 'python3 -m pylint' | |
function! VimuxMultiLineTime() | |
call VimuxSendText("%cpaste") | |
call VimuxSendKeys("Enter") | |
call VimuxSendText("%%time") | |
call VimuxSendKeys("Enter") | |
call VimuxSendText(@v) | |
call VimuxSendKeys("C-d") | |
endfunction | |
function! VimuxVarLength() | |
call VimuxSendText("len(") | |
call VimuxSendText(@v) | |
call VimuxSendText(")") | |
call VimuxSendKeys("Enter") | |
endfunction | |
function! VimuxNPShape() | |
call VimuxSendText("np.shape(") | |
call VimuxSendText(@v) | |
call VimuxSendText(")") | |
call VimuxSendKeys("Enter") | |
endfunction | |
function! VimuxType() | |
call VimuxSendText("type(") | |
call VimuxSendText(@v) | |
call VimuxSendText(")") | |
call VimuxSendKeys("Enter") | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment