Wednesday, August 17, 2011

Re: i would like to edit my vimrc so gvim cursor always starts on line 4

On 08/17/2011 07:01 AM, woodygar wrote:
> i would like to edit my vimrc so gvim cursor always starts on line 4
> as i have a templete that uses the first 3 lines. For example, In the
> terminal i can use "gvim + 1.py" but i can't figure out how to edit
> vimrc so its automatic.

You could add an autocommand that jumps to line 4 for a certain
filespec (such as "*.txt") that matches your template files:

autocmd BufRead *.txt 4

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: