Monday, November 19, 2007

another vimrc setup under windows

Under windows, vim or gvim need to be set according to users special purpose.
Today, I got something useful configuration.

  • Set the start size of the gvim window, is can be done using the following command in .vimrc file.

set lines=45 columns=100

For maximum the gvim windows, using

if (has("gui_running") && (winnr("$") > 1)
set lines=99999 columns=99999
endif


there are also some more detailed discussion about such setup, refer to the webpage.
http://www.nabble.com/size-of-gvim-window-on-WIN32-t357190.html.

  • In order to edit the file with vim from Total Commander or Speed Commander, just set the edit application in setting to whatever you prefer. This is similar to view command.

Friday, November 16, 2007

Vim for Windows

After I installed vim 7 in my Chinese XP system, all the menu and messages were set to Chinese language automatically, but I'm familiar to the default English language, so I try to set it back. The command is add

:let $LANG='en'

in the source file. Thean all the messages are in English now.

But the GUI menu are still in Chinese, the method is simple

set langmenu=none
maybe the source of the menu is necessory.

source $VIMRUNTIME/delmenu.vim
set langmenu=none
source $VIMRUNTIME/menu.vim