How to make vim (not gvim) open files through the context menu in new tabs like sublime, without opening a new window for each open file? Such an entry for vim.desktop does not work:
Exec=vim -p --remote-tab-silent %F Terminal=true
How to make vim (not gvim) open files through the context menu in new tabs like sublime, without opening a new window for each open file? Such an entry for vim.desktop does not work:
Exec=vim -p --remote-tab-silent %F Terminal=true
"Server name" must be specified. to connect to what (if an instance of the program with the same name has not yet been launched, the current instance will be considered a “server” with the specified name).
start editing the file файл1
and assign this instance “server name” имя1
:
$ vim --servername имя1 --remote-tab-silent файл1
see the list of running "servers":
$ vim --serverlist имя1
connect to the same "server" also файл2
:
$ vim --servername имя1 --remote-tab-silent файл2
Source: https://ru.stackoverflow.com/questions/553775/
All Articles