Gonzo TechNet
VIM (vi editor)
My Vim Files:

Here is a .zip file with my basic control files for Vim. It includes my _vimrc, indent, & syntax files. Click on it to download it or, right-click on the link and do a "Save As"
When opening a file for editing on Windows, you see a "CTL-M" (^M) at the end of every line.

The file is probably one that came from a Unix system. Unix uses a <Carriage-Return><Line-Feed> combination to end a line of text. While in Windows, a <line-feed> alone is used. To fix, do a global search-and-replace to replace the (^M) with a Carriage-Return. The command below will change all the UNIX style <CR><LF> to the Windows normal behavior.

<ctl-q> = Press Crtl and Q keys at the same time
<clt-m> = Press Crtl and M keys at the same time
CTL-V is mapped to the Windows PASTE function, so, you can't invoke the [ESC] escape sequence [CTL-V] like you do in UNIX. In WINDOWS, the [ESC] is actived by CTL-Q.
How to start Vim (gvim) with a MAXIMIZED window at startup? (Specifically, in Microsoft Windows.)
Putting the following in your _vimrc will always maximize your Vim (gvim) window on startup.
au GUIEnter * simalt ~x 
:he win16-maximized 
Basic _vimrc settings
(For Microsoft Windows)
set nocompatible
set nobackup
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set ts=4
set inde=
set indk=
au GUIEnter * simalt ~x
VIM Enviroment Variable Settings
(For Microsoft Windows)
See: Vim settings for Windows

If you move your executable AND want to put your "_vimrc" and "_gvimrc" files somewhere else, you must set $VIM to where you vimrc files are, and set $VIMRUNTIME to the runtime files.

	set VIM=C:\usr\piet
	set VIMRUNTIME=E:\vim\vim54
Will find "c:\user\piet\_vimrc" and the runtime files in "e:\vim\vim54".
Home | TechNet | ADO.Net | DOS | ASP.NET | IIS | VB.NET | VIM (vi) | Windows | XHtml
MS-SQL | T-SQL | SSIS | Oracle