diff options
Diffstat (limited to 'stow/vim/.vim/ftplugin/python')
-rw-r--r-- | stow/vim/.vim/ftplugin/python/python.vim | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/stow/vim/.vim/ftplugin/python/python.vim b/stow/vim/.vim/ftplugin/python/python.vim index 0aeff8c..dab8c22 100644 --- a/stow/vim/.vim/ftplugin/python/python.vim +++ b/stow/vim/.vim/ftplugin/python/python.vim @@ -10,21 +10,20 @@ setlocal list call matchadd('ColorColumn', '\%91v', 100) setlocal textwidth=90 -let b:ale_python_pylint_options = '-d invalid-name' -let b:ale_fixers = ['yapf'] +"let b:ale_python_pylint_options = '-d invalid-name' +"let b:ale_fixers = ['yapf'] " Mappings let mapleader = " " nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/python/python.vim<CR> -nnoremap <buffer> <leader>x :! ./% -nnoremap <buffer> <leader>X :! ./%<CR> +nnoremap <buffer> <leader>x :w<CR>:!./%<Space> +nnoremap <buffer> <leader>X :w<CR>:!./%<CR> -nnoremap <buffer> gd <Plug>(coc-definition) -nnoremap <buffer> gy <Plug>(coc-type-definition) -nnoremap <buffer> gi <Plug>(coc-implementation) -nnoremap <buffer> gr <Plug>(coc-references) +"nnoremap <buffer> gd <Plug>(coc-definition) +"nnoremap <buffer> gy <Plug>(coc-type-definition) +"nnoremap <buffer> gr <Plug>(coc-references) nnoremap <buffer> <leader>s oimport pdb<Enter>pdb.set_trace()<Esc>2k nnoremap <buffer> <leader>db :!tmux split-window -l '40\%' 'python -m̀ pdb %' |