vim.exe: shortens Command Prompt window

25 views
Skip to first unread message

Andrew Pennebaker

unread,
Jul 29, 2016, 4:15:44 PM7/29/16
to vim_use
When I use Vim in cmd.exe, Vim shrinks the Command Prompt window by half until I quit Vim.

Configuration:

https://github.com/mcandre/dotfiles/blob/master/.vimrc

System:

* Vim 7.4 via Chocolatey
* Windows 10 Professional x86_64

Ben Fritz

unread,
Aug 2, 2016, 4:47:45 PM8/2/16
to vim_use

What Vim version does Chocolatey publish? Check your :version output in Vim for the exact patch level.

I don't see the behavior on my Windows 7 PC so it's probably something in your configuration, or in the system .vimrc which may come installed by Chocolatey, if it does that.

I don't see anything that jumps out in your .vimrc, although you do seem to be setting 'nocp' rather late in your .vimrc, when normally it comes near the top. And it's not really needed if you have a .vimrc anyway.

I suspect something in your plugins, or in the system .vimrc, is setting the 'lines' option. See the output of ":verbose set lines?" in Vim to see what it is (or if I'm wrong and that's not the issue after all).

Bram Moolenaar

unread,
Aug 2, 2016, 5:10:39 PM8/2/16
to Ben Fritz, vim_use
It could be something about the way Vim was built. I recall the console
falling back to a compatiblity mode when the executable looks like it
won't support more than 25 lines.

--
SOLDIER: Where did you get the coconuts?
ARTHUR: Through ... We found them.
SOLDIER: Found them? In Mercea. The coconut's tropical!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages