This article describes copying vim -d screens to the Win32 clipboard.
It depends on a program to configure the size of a "shell" window. It
works with cmd.exe in W2K. It probably works in other variants of NT
including XP. I have not tested this. On W9X, it works with a flawed
port of cmd.exe which Microsoft used to publish. All the relevant
software can be found via
It should also work with bash on W9X. It does NOT work with a W9X
COMMAND.COM or other 16 bit shells.
The following WIDE listing was prepared with something like the
1) Download and install consize from the URL above. It is supplied
as both source code and a couple of executables in different formats.
2) In a cmd.exe window, run the following command to set up a 160
column 10 line window
consize 10 160
consize puts horizontal and vertical scrollbars on the window as needed
I set up a 10 line window to economize on bandwidth.
Windows can be up to 32767 by 32767.
3) Again in the cmd.exe window, Run vim -d 0Make_ivc.mak Make_ivc.mak
4) Still in the cmd.exe window, Select All and Copy.
5) Paste in my email preparation program without wrapping lines
+ +-- 24 lines: # Microsoft Developer Studio Generated NMAKE File, Forma|+ +-- 24 lines: # Microsoft Developer Studio Generated NMAKE File, Form
# 5) Optimisation is not supported by disabled versions of VC. This r+| # 5) Optimisation is not supported by disabled versions of VC. This +
# messages for Release builds like: | # messages for Release builds like:
# Command line warning D4025 : overriding '/O2' with '/Od' | # Command line warning D4025 : overriding '/O2' with '/Od'
# 6) nmake 1.62 and later support batch compilation. I was unable to +| # 6) nmake 1.62 and later support batch compilation. I was unable to+
# in a manner acceptable to earlier IDEs. | # in a manner acceptable to earlier IDEs.
# | #
0Make_ivc.mak [RO] 1,1 Top Make_ivc.mak [RO] 1,1 Top
"Make_ivc.mak" [readonly] 637L, 17577C
Late last week, I wanted to do something like this in an email.
sdiff did not suit my purposes. I found I had to compose the view by hand
in another copy of vim. I then took more than an hour to find this
program. I was looking for "slidebar" rather than "scrollbar". It gives
me an idea - marry a thesaurus and a search engine.
Later - Much Later :) - window expansion can be done in a cmd.exe window:
1) Right click on title bar and click "Properties".
2) In Layout tab, set Screen Buffer Size Width and Height.