top | item 42669606 (no title) konfekt | 1 year ago There's the built-in `packadd editexisting` to take care of that; On Unix https://github.com/gioele/vim-autoswap could be more convenient. discuss order hn newest amelius|1 year ago Thanks, but these only seem to work with graphical versions of Vim. Also, if you suspend your Vim session, these seem to stop working. konfekt|1 year ago Try these work-arounds:- either adding to your `:help vimrc`if has('clientserver') && empty(v:servername) try call remote_startserver('VIM-' . getpid()) catch '^Vim\%((\a\+)\)\=:E\%(941\|240\)' endtry endif- or, at least on Unix, calling vim by, say `$HOME/bin/vim` with `$HOME/bin` in `$PATH` and launching/usr/bin/vim --servername vim -u ~/.vim/vimrc "$@"
amelius|1 year ago Thanks, but these only seem to work with graphical versions of Vim. Also, if you suspend your Vim session, these seem to stop working. konfekt|1 year ago Try these work-arounds:- either adding to your `:help vimrc`if has('clientserver') && empty(v:servername) try call remote_startserver('VIM-' . getpid()) catch '^Vim\%((\a\+)\)\=:E\%(941\|240\)' endtry endif- or, at least on Unix, calling vim by, say `$HOME/bin/vim` with `$HOME/bin` in `$PATH` and launching/usr/bin/vim --servername vim -u ~/.vim/vimrc "$@"
konfekt|1 year ago Try these work-arounds:- either adding to your `:help vimrc`if has('clientserver') && empty(v:servername) try call remote_startserver('VIM-' . getpid()) catch '^Vim\%((\a\+)\)\=:E\%(941\|240\)' endtry endif- or, at least on Unix, calling vim by, say `$HOME/bin/vim` with `$HOME/bin` in `$PATH` and launching/usr/bin/vim --servername vim -u ~/.vim/vimrc "$@"
amelius|1 year ago
konfekt|1 year ago
- either adding to your `:help vimrc`
if has('clientserver') && empty(v:servername) try call remote_startserver('VIM-' . getpid()) catch '^Vim\%((\a\+)\)\=:E\%(941\|240\)' endtry endif
- or, at least on Unix, calling vim by, say `$HOME/bin/vim` with `$HOME/bin` in `$PATH` and launching
/usr/bin/vim --servername vim -u ~/.vim/vimrc "$@"