Vim key mapping to execute a python script

前端 未结 1 1437
眼角桃花
眼角桃花 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条回答
  •  不要未来只要你来
    2021-01-27 11:07

    Thanks glts. I forgot to escape the pipe...

    noremap  :wall \| !clear && echo "% is running..." && python %
    

    0 讨论(0)
提交回复
热议问题