How can I execute the current line as Vim EX commands?

后端 未结 8 1587
渐次进展
渐次进展 2021-02-02 11:17

Say I\'m editing my _vimrc file and I\'ve just added a couple of lines, for instance a new key mapping. I don\'t want to reload the whole file (:so %

8条回答
  •  无人共我
    2021-02-02 11:28

    To execute the current line as an ex command, you may also use:

    yy:@"
    

    This will yank the current line to the "-register and execute it. I don't think it is too much typing.

提交回复
热议问题