aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/shared.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-06 19:09:48 -0400
committerGitHub <noreply@github.com>2020-10-06 19:09:48 -0400
commita260d5def363ca30f0473365ea514f2dedd0d0ba (patch)
tree957e486c12d36f55c7958a08b79dd647b505b3df /src/nvim/testdir/shared.vim
parent7b8935398587992da3233bcd7edd79013889fea4 (diff)
parent7454b11ec115da973da36c36a76a5bf81967a5ff (diff)
downloadrneovim-a260d5def363ca30f0473365ea514f2dedd0d0ba.tar.gz
rneovim-a260d5def363ca30f0473365ea514f2dedd0d0ba.tar.bz2
rneovim-a260d5def363ca30f0473365ea514f2dedd0d0ba.zip
Merge pull request #13060 from janlazo/vim-8.1.2310
vim-patch:8.1.{1619,1771,1624,2274,2310,2401},8.2.{554,1806}
Diffstat (limited to 'src/nvim/testdir/shared.vim')
-rw-r--r--src/nvim/testdir/shared.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim
index 0d32f4d875..9bc037a59f 100644
--- a/src/nvim/testdir/shared.vim
+++ b/src/nvim/testdir/shared.vim
@@ -294,6 +294,13 @@ func GetVimCommandClean()
return cmd
endfunc
+" Get the command to run Vim, with --clean, and force to run in terminal so it
+" won't start a new GUI.
+func GetVimCommandCleanTerm()
+ " Add -v to have gvim run in the terminal (if possible)
+ return GetVimCommandClean() .. ' -v '
+endfunc
+
" Run Vim, using the "vimcmd" file and "-u NORC".
" "before" is a list of Vim commands to be executed before loading plugins.
" "after" is a list of Vim commands to be executed after loading plugins.