Home » Questions » Computers [ Ask a new question ]

gVIM settings based on file opened, on Windows

gVIM settings based on file opened, on Windows

I wish to set some gVIM settings based on the file I am opening. Specifically, when I open my file Activities.txt I want to set the window width to 40 columns and the height to 50 rows. I believe I would use in my _vimrc file the setting

Asked by: Guest | Views: 32
Total answers/comments: 1
Guest [Entry]

"Add the following to your .vimrc.

if expand(""%.t"") =~? 'Activities.txt'
set lines=50 columns=40
endif"