summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVon Random <von@vdrandom.org>2018-07-06 12:09:20 +0300
committerVon Random <von@vdrandom.org>2018-07-06 12:09:20 +0300
commit7c21d2da5cd8e72a820f95d55d9d3c0816e612e0 (patch)
tree33720bb74d22c0fcce521795bd55f35d5e626d65
parent3e89680a0bf5a3d12b8e3ffdb43f3acd8e365c20 (diff)
fix vimwiki command order; fix window class for tvim
-rwxr-xr-xtvim5
-rwxr-xr-xvimwiki4
2 files changed, 5 insertions, 4 deletions
diff --git a/tvim b/tvim
index 375ba8f..449ed71 100755
--- a/tvim
+++ b/tvim
@@ -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
diff --git a/vimwiki b/vimwiki
index 9bf614a..a937a73 100755
--- a/vimwiki
+++ b/vimwiki
@@ -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);;