-
Notifications
You must be signed in to change notification settings - Fork 5
Use a custom command
KabbAmine edited this page Dec 21, 2015
·
3 revisions
The %s
will be replaced by the appropriate shell command.
" Use a vim command
let g:gv_custom_cmd = 'VimCommand %s'
let g:gv_custom_cmd = ['VimCommand %s', 0]
" Use a shell command
let g:gv_custom_cmd = '!ShellCommand %s &'
let g:gv_custom_cmd = ['!ShellCommand %s &', 0]
" Use a command where double quotes are escaped
let g:gv_custom_cmd = ['VimCommand %s', 1]
let g:gv_custom_cmd = ['call vimFun("%s")', 1]
let g:gv_custom_cmd = ['!ShellCommand "%s"', 1]
The following examples show how to use vim plugins or external applications. Feel free to add yours.
Vimux plugin
let g:gv_custom_cmd = ['VimuxRunCommand "clear && %s"', 1]
Dispatch plugin
let g:gv_custom_cmd = 'Start! %s'
let g:gv_custom_cmd = ['!xterm -e "%s" &', 1]
Neoterm Neovim's plugin
let g:gv_custom_cmd = 'T clear && %s'