various tweaks and refactors
This commit is contained in:
parent
2fb479e4ec
commit
8e5f4e4d9e
7 changed files with 31 additions and 24 deletions
4
tvim
4
tvim
|
@ -9,6 +9,6 @@ error() {
|
|||
}
|
||||
|
||||
termbin=$(command -v default-terminal-emulator) || termbin=$(command -v xterm) || error "No terminal found!"
|
||||
vimbin=$(command -v vim) || error "No vim binary found!"
|
||||
vimbin=$(command -v nvim) || vimbin=$(command -v vim) || vimbin=$(command -v vi) || error "No vim binary found!"
|
||||
|
||||
exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown
|
||||
exec "$termbin" -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue