Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ichizok
Copy link
Contributor

@ichizok ichizok commented Oct 4, 2017

Fix for https://groups.google.com/forum/#!topic/vim_dev/RskqZ2J-040

  • Change the contents of vimcmd; set first line to $VIMPROG
  • Define GetVimProg() to get first line of vimcmd i.e. $VIMPROG

For example, on Mac v:progpath is just vim, so is useless to get vim path.

Fix for https://ci.appveyor.com/project/chrisbra/vim-win32-installer/build/503

As for as I investigated, on Windows it needs a wait after sending <esc>, otherwise vim cannot enter normal mode and receives characters Gi (following <esc>) on insert mode.

@codecov-io
Copy link

Codecov Report

Merging #2186 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2186      +/-   ##
==========================================
- Coverage   74.21%    74.2%   -0.01%     
==========================================
  Files          90       90              
  Lines      131978   131977       -1     
  Branches    30862    28984    -1878     
==========================================
- Hits        97942    97933       -9     
- Misses      34011    34015       +4     
- Partials       25       29       +4
Impacted Files Coverage Δ
src/gui_gtk_x11.c 47.61% <0%> (-0.26%) ⬇️
src/if_py_both.h 76.09% <0%> (-0.15%) ⬇️
src/ex_cmds.c 77.8% <0%> (-0.14%) ⬇️
src/os_unix.c 53.16% <0%> (-0.14%) ⬇️
src/gui.c 46.39% <0%> (+0.05%) ⬆️
src/window.c 81.12% <0%> (+0.09%) ⬆️
src/ex_cmds2.c 80.31% <0%> (+0.09%) ⬆️
src/if_xcmdsrv.c 84.17% <0%> (+0.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19a3d68...ee77513. Read the comment docs.

@ichizok
Copy link
Contributor Author

ichizok commented Oct 5, 2017

For example, on Mac v:progpath is just vim, so is useless to get vim path.

Sorry, I had misunderstood. When execute vim with absolute/relative path, v:progpath shows full path.

@brammool brammool closed this in 6318205 Oct 7, 2017
@ichizok ichizok deleted the fix/get_vimprog branch October 8, 2017 16:28
adizero pushed a commit to adizero/vim that referenced this pull request May 19, 2018
Problem:    Test_popup_and_window_resize() does not always pass.
Solution:   Do not use $VIMPROG, pass the Vim executable in the vimcmd file.
            (Ozaki Kiichi, closes vim#2186)
blueyed added a commit to blueyed/neovim that referenced this pull request Aug 12, 2019
Problem:    Test_popup_and_window_resize() does not always pass.
Solution:   Do not use $VIMPROG, pass the Vim executable in the vimcmd file.
            (Ozaki Kiichi, closes vim/vim#2186)
vim/vim@6318205

NOTE: Does not add `GetVimProg()`, but keeps/syncs existing usages of it
in tests (which obviously are all skipped, mostly because of
`!has('terminal')`).  Likely to be replaced with `v:progpath` in Vim [1], or
at least that would/should be used with Neovim then probably.

1: vim/vim#4806
blueyed added a commit to blueyed/vim that referenced this pull request Aug 12, 2019
blueyed added a commit to blueyed/neovim that referenced this pull request Aug 13, 2019
Problem:    Test_popup_and_window_resize() does not always pass.
Solution:   Do not use $VIMPROG, pass the Vim executable in the vimcmd file.
            (Ozaki Kiichi, closes vim/vim#2186)
vim/vim@6318205

vim-patch:8.0.1526: no test using a screen dump yet

Problem:    No test using a screen dump yet.
Solution:   Add a test for C syntax highlighting.  Add helper functions.
vim/vim@da65058

NOTE: uses modified `GetVimProg()` (which is used with skipped tests only
(mostly because of `!has('terminal')`)).

Vim uses a 'vimcmd' file, while Nvim uses `$NVIM_TEST_ARGX` environment
variables.

Ref: vim/vim#4806
blueyed added a commit to blueyed/neovim that referenced this pull request Aug 13, 2019
Problem:    Test_popup_and_window_resize() does not always pass.
Solution:   Do not use $VIMPROG, pass the Vim executable in the vimcmd file.
            (Ozaki Kiichi, closes vim/vim#2186)
vim/vim@6318205

vim-patch:8.0.1526: no test using a screen dump yet

Problem:    No test using a screen dump yet.
Solution:   Add a test for C syntax highlighting.  Add helper functions.
vim/vim@da65058

NOTE: uses modified `GetVimProg()` (which is used with skipped tests only
(mostly because of `!has('terminal')`)).

Vim uses a 'vimcmd' file, while Nvim uses `$NVIM_TEST_ARGX` environment
variables.

Ref: vim/vim#4806
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants