Run PHP file from within vim

前端 未结 3 2000
暖寄归人
暖寄归人 2020-12-29 13:58

Is it possibly to run a PHP file from within vim? What im trying to do here is having a shortcut so whenever I need to run the file I\'m editing to skip exiting vim and call

3条回答
  •  执念已碎
    2020-12-29 14:34

    You can use:

    :!php %
    

    % stands for the current document, and :! executes any shell command.

    You can also create a shortcut for it.

提交回复
热议问题