jalvesaq / vimcmdline

Send code to command line interpreter
GNU General Public License v2.0
223 stars 38 forks source link

new features: print current value of python object #59

Closed smilesun closed 5 years ago

smilesun commented 5 years ago

is it possible to have localleader+p+p to print out the value of a python object?

jalvesaq commented 5 years ago

Does this auto command in the vimrc do what you want?

autocmd FileType python nmap <buffer> <LocalLeader>pp :call VimCmdLineSendCmd(expand('<cword>'))<CR>
smilesun commented 5 years ago

that works perfect!