How to run a vim script interactively from vim command line?

后端 未结 4 789
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 05:32

Is there a way to run these scripts from the : commandline with a few keystrokes?

Over the last couple of months, I\'ve built a series of fi

4条回答
  •  面向向阳花
    2021-02-14 05:59

    :run file.vim
    

    :run is like :source, but :run doesn't need the path. It searches the runtimepath.

    A Linux runtimepath:

    $HOME/.vim,
    $VIM/vimfiles,
    $VIMRUNTIME,
    $VIM/vimfiles/after,
    $HOME/.vim/after
    

提交回复
热议问题