Skip to content

Commit a2ded7b

Browse files
committed
add python jump to definition
1 parent 22e6451 commit a2ded7b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.vimrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ Plugin 'dhruvasagar/vim-table-mode' " VIM Table Mode for instant table cre
174174
Plugin 'rhysd/clever-f.vim' " Extended f, F, t and T key mappings for Vim
175175
Plugin 'voldikss/vim-floaterm' " Terminal manager for (neo)vim
176176
Plugin 'hotoo/pangu.vim' " Chinese copywriting guidelines for better written communication
177+
Plugin 'ivalkeen/vim-ctrlp-tjump' " CtrlP extension for fuzzy-search in tag matches (:tjump replacement).
177178

178179
call vundle#end() " All of your Plugins must be added before this line
179180

@@ -377,3 +378,11 @@ au FileType markdown nmap <leader>y :Pangu<cr>
377378
nnoremap <C-q> :silent! FloatermToggle<CR>
378379
tnoremap <C-q> <C-\><C-n>:FloatermToggle<CR>
379380
381+
" =========================================================
382+
" Configuration ivalkeen/vim-ctrlp-tjump
383+
" python jump to definition
384+
command! Stjump execute 'stjump' expand('<cword>')
385+
au FileType python nmap <leader>m :!ctags --languages=Python -R -f ./tags $(pipenv --venv) .<CR>
386+
au FileType python nmap <leader>s :Stjump<CR>
387+
au FileType python nmap <leader>d :CtrlPtjump<CR>
388+

0 commit comments

Comments
 (0)