gvim; reopen with previous sized window

19 views
Skip to first unread message

okey

unread,
Jul 12, 2009, 7:38:37 AM7/12/09
to vim-perl
I can see 100s of gui settings in the configuration. Which one say
"open to the last size I was closed at".
Right now, every time I open gvim it's sized about 30 characters
across and 30 lines down. Thanks.

Hinrik Örn Sigurðsson

unread,
Jul 12, 2009, 2:50:34 PM7/12/09
to vim-...@googlegroups.com
This doesn't really have anything to do with vim's Perl support. You
might want to ask on the #vim IRC channel on irc.freenode.net.

That said, do you mean it does this for every single file? I don't
know what could cause that. Something similar can be done with the
settings 'scrolloff' and 'sidescrolloff', but that also depends on the
size of the window, etc.

If it's just one particular file, maybe you have this in your .vimrc
to make vim remember the last position in the file:

" Jump to the last known position when reopening a file
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif


If you do, you should remove it if you don't like it.

Benjamin Fritz

unread,
Jul 12, 2009, 10:37:48 PM7/12/09
to vim-...@googlegroups.com
2009/7/12 Hinrik Örn Sigurðsson <hinri...@gmail.com>:

>
> This doesn't really have anything to do with vim's Perl support. You
> might want to ask on the #vim IRC channel on irc.freenode.net.
>

...or the vim_use mailing list. http://groups.google.com/group/vim_use

okey

unread,
Jul 13, 2009, 7:14:53 AM7/13/09
to vim-perl

> > This doesn't really have anything to do with vim's Perl support. You
> > might want to ask on the #vim IRC channel on irc.freenode.net.
>
> ...or the vim_use mailing list.http://groups.google.com/group/vim_use

Thank you. I 'll head over there.
Reply all
Reply to author
Forward
0 new messages