Commit cbe61f17b715f3dab3f6ef819be9a9ab234be295

Support a custom wrapper for running gvim on `o`
Author: xaizek
Author date (UTC): 2018-08-01 14:35
Committer name: xaizek
Committer date (UTC): 2018-08-01 14:36
Parent(s): 9600efb85936669b201e9c39139ff8fa442c7cb3
Signing key: 99DC5E4DB05F6BE2
Tree: a7f6445fbfea7b2da082ea3c754fe0b14eca3733
File Lines added Lines deleted
vifmrc 8 2
File vifmrc changed (mode: 100644) (index bb5a0fd..57488c2)
... ... command! target : let $VIMARGS = '--servername "%a"'
208 208 \| execute "!tmux %%i set-environment VIMARGS '".$VIMARGS."'" \| execute "!tmux %%i set-environment VIMARGS '".$VIMARGS."'"
209 209
210 210 " open file in existing instance of gvim (uses target) " open file in existing instance of gvim (uses target)
211 nnoremap o : ![ -z "$(gvim --serverlist)" ] && gvim $VIMARGS %f
212 \ || gvim $VIMARGS --remote-tab-silent %f &<cr>
211 if executable('run-gvim')
212 " run-gvim can be a custom wrapper for gvim that does some extra work
213 nnoremap o : ![ -z "$(gvim --serverlist)" ] && run-gvim %f
214 \ || run-gvim --remote-tab-silent %f:p &<cr>
215 else
216 nnoremap o : ![ -z "$(gvim --serverlist)" ] && gvim $VIMARGS %f
217 \ || gvim $VIMARGS --remote-tab-silent %f:p &<cr>
218 endif
213 219 " open file in new instance of gvim " open file in new instance of gvim
214 220 nnoremap O :!gvim %f &<cr> nnoremap O :!gvim %f &<cr>
215 221
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dotvifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dotvifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master