Commit df304132 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix nvim/nvr launching

parent 12a86646
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -9,8 +9,4 @@ let g:CtrlSpaceDefaultMappingKey = "<C-space> "

au TermOpen * source ~/.config/nvim/term.vim

if executable('nvr')
	let $EDITOR = 'nvr --remote-tab-wait -c ''setl bufhidden=wipe'''
endif

source ~/.vimrc
+2 −1
Original line number Diff line number Diff line
#!/bin/sh
if ! type nvr >/dev/null 2>&1; then
if ! type nvr >/dev/null 2>&1 || [ -z "$NVIM_LISTEN_ADDRESS" ]; then
	exec vim "$@"
elif [ -n "$FROM_ALIAS" ]; then
	unset FROM_ALIAS
	exec nvr -s --remote "$@"
else
	exec nvr -s --remote-tab-wait -c 'setl bufhidden=wipe' "$@"