Vim key mapping to execute a python script

前端 未结 1 1414
眼角桃花
眼角桃花 2021-01-27 10:42

I\'m trying to map a command in Vim for the first time. I want it to execute the current python script, so I put the following in my .vimrc:

noremap         


        
相关标签:
1条回答
  • Thanks glts. I forgot to escape the pipe...

    noremap <silent><F5> :wall \| !clear && echo "% is running..." && python %<CR>
    
    0 讨论(0)
提交回复
热议问题