aboutsummaryrefslogtreecommitdiff
path: root/stow
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-06-19 14:34:11 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-06-19 14:34:11 +0200
commit17a9e9dd2cff80b84b78e1ddbf94d2dd42921280 (patch)
treef0ca01c40d01f74f5fbd7c9dc55ce4aaeac90b92 /stow
parent39931e285a495b86445e33b8e14cc820392c2c9e (diff)
downloadconfigs-17a9e9dd2cff80b84b78e1ddbf94d2dd42921280.tar.gz
configs-17a9e9dd2cff80b84b78e1ddbf94d2dd42921280.zip
Messing with vim python development config.
Diffstat (limited to 'stow')
-rw-r--r--stow/vim/.vim/ftplugin/python/python.vim15
-rw-r--r--stow/vim/.vim/rc/maps.vim2
2 files changed, 6 insertions, 11 deletions
diff --git a/stow/vim/.vim/ftplugin/python/python.vim b/stow/vim/.vim/ftplugin/python/python.vim
index dd2ff02..0aeff8c 100644
--- a/stow/vim/.vim/ftplugin/python/python.vim
+++ b/stow/vim/.vim/ftplugin/python/python.vim
@@ -21,17 +21,12 @@ nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/python/python.vim<CR>
nnoremap <buffer> <leader>x :! ./%
nnoremap <buffer> <leader>X :! ./%<CR>
-"nnoremap <buffer> gd :YcmCompleter GoTo<CR>
-"nnoremap <buffer> gr :YcmCompleter GoToReferences<CR>
-"nnoremap <buffer> gR :YcmCompleter RefactorRename<Space>
-"nnoremap <buffer> <leader>gd :YcmCompleter GetDoc<CR>
-"nnoremap <buffer> <leader>gT :YcmCompleter GetType<CR>
-
-nnoremap gd <Plug>(coc-definition)
-nnoremap gy <Plug>(coc-type-definition)
-nnoremap gi <Plug>(coc-implementation)
-nnoremap gr <Plug>(coc-references)
+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> <leader>s oimport pdb<Enter>pdb.set_trace()<Esc>2k
nnoremap <buffer> <leader>db :!tmux split-window -l '40\%' 'python -m̀ pdb %'
let mapleader = ","
diff --git a/stow/vim/.vim/rc/maps.vim b/stow/vim/.vim/rc/maps.vim
index f51e3fa..cd83cf2 100644
--- a/stow/vim/.vim/rc/maps.vim
+++ b/stow/vim/.vim/rc/maps.vim
@@ -16,7 +16,7 @@ nnoremap <leader>d "+dd
vnoremap <leader>d "+d
nnoremap <leader>vrc :80vsp ~/.vimrc<CR>
-nnoremap <leader>s :!tmux split-window -l '40\%'<CR><CR>
+nnoremap <leader>S :!tmux split-window -l '40\%'<CR><CR>
" Split navigation
map <C-h> <C-w>h