diff options
author | Von Random <von@vdrandom.org> | 2018-07-06 12:09:20 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2018-07-06 12:09:20 +0300 |
commit | 7c21d2da5cd8e72a820f95d55d9d3c0816e612e0 (patch) | |
tree | 33720bb74d22c0fcce521795bd55f35d5e626d65 | |
parent | 3e89680a0bf5a3d12b8e3ffdb43f3acd8e365c20 (diff) |
fix vimwiki command order; fix window class for tvim
-rwxr-xr-x | tvim | 5 | ||||
-rwxr-xr-x | vimwiki | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,8 @@ #!/usr/bin/env bash typeset -a vimopt=( '--cmd' 'let g:tvim = 1' - '--cmd' "set tgc mouse=a title titlestring=[%F]%m\\ -\\ TVIM" + '--cmd' "set tgc title titlestring=[%F]%m\\ -\\ TVIM" + '-c' 'set mouse=a' ) error() { @@ -12,4 +13,4 @@ error() { termbin=$(command -v st) || termbin=$(command -v xterm) || error "No terminal found!" vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!" -exec "$termbin" -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown +exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown @@ -1,9 +1,9 @@ #!/usr/bin/bash index="$HOME/vimwiki/index.wiki" typeset -a vimopts=( - '--cmd' 'packadd vimwiki' '-c' 'set titlestring=vimwiki' - "$index" + '-c' 'packadd vimwiki' + '-c' "e $index" ) case $1 in -g) vimbin=$(command -v gvim);; |