3 ms·
I do as well, I have about 10 key binds and a couple functions for using tabs, and a couple plugins for linters/language servers which I can do without. I have
by jethro_tell 4y ago
I do as well, I have about 10 key binds and a couple functions for using tabs, and a couple plugins for linters/language servers which I can do without.
I have in my past done quite a bit of work out on prod hosts with vim so I don't like to get too out there from stock.
everything works in vim with the exception of the server:
When I start tmux I create a window:
new-window -n "Code" 'cd ~/working; NVIM_LISTEN_ADDRESS=/tmp/code nvim ; bash -i'
then split the window with my file browser:
split-window -t 1.0 -h -p 20 'cd ~/working ; EDITOR="$HOME/bin/ranger-edit.sh" ; ranger ; bash -i'
ranger edit is just a command that opens a file as a tab in the server and then switches tmux panes:
FILEARGS="$@"
nvr --servername /tmp/code --remote-tab $FILEARGS ; tmux selectp -t 0
Thats about it. I guess you have to have nvr installed. Other than that, I have a pretty sparse config all around.
I do a similar thing where I set a global nvim_listen_address variable when I log in and I can use that to pipe to a different editor for things like logs and such. I don't generally want my ops work opening a bunch of tabs in my coding window but I could set it globally and use the single editor if I wanted to.