我正在使用PyCharm2018.3。
我想在~/.ideavimrc
中创建一些快捷方式
但是pycharm vim插件似乎不支持:call
命令。
这是我的~/.ideavimrc
function! PrintVariable()
if &filetype == 'python'
:s/\v(\s*)(.*)/\1print("\2: ", \2)<CR>
else
:s/\v(\s*)(.*)/\1std::cout<<"\2"<<std::endl;<CR>
endif
endfunction
map <space>p :call PrintVariable()<CR>
当我按<space>p
时,PyCharm会说
VIM-not an editor command: call
如何在pycharm vim中触发函数?