Let gVim always run a single instance

后端 未结 12 692
时光说笑
时光说笑 2020-12-12 19:14

Is there a way to let gVim only run a single instance, so that when a new file is opened with it it\'s automatically opened in a new tab in the currently running instance?

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 19:21

    alias tvim="gvim --servername `gvim --serverlist | head -1` --remote-tab"
    

    This make vim open a new file in new tab on same instance of vim. Source: http://eustaquiorangel.com/posts/477

提交回复
热议问题