vim option

Stefan Lang langstefan at gmx.at
Mon Jun 25 21:34:52 UTC 2007


On Montag, 25. Juni 2007, adams wrote:
> On Mon, 2007-06-25 at 21:24 +0200, Thilo Six wrote:
> ...snip snip...
>
> > /etc/vim/vimrc
> > <-----------------------------------------
> > " Uncomment the following to have Vim jump to the last position
> > when
> >
> > " reopening a file
> > "if has("autocmd")
> > "  au BufReadPost * if line("'\"") > 0 && line("'\"") <=
> > line("$") "    \| exe "normal g'\"" | endif
> > "endif
> > ----------------------------------------->
> >
> > > Thanks in advance,
> >
> > --
> > Thilo
>
> Thilo et al,
>
> I found the above and removed the comment ".  This is not
> sufficient to invoke the behaviour.  I see no option to set
> "autocmd" and there is at issue some tag file.
>
> Getting closer but not across the finish line just yet.

The viminfo option is also related to this, I have this in my .vimrc:

    set viminfo='20,<5000,s30,f1,:50,/50
    "	f1	store global marks
    "	:50	save last 50 : commands
    "	/50	save last 50 search commands
    "	%	save and restore buffer list
    "	<5000	save up to 5000 lines per register
    "	'20	remember marks for last 20 files
    "	h	highlight last search (of last session)
    "	s30	use a maximum of 30kB space for one register

I don't know if this is enough then.

HTH,
  Stefan




More information about the kubuntu-users mailing list