l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 7: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2002 Nov 12 12:53

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] vim question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] vim question



hi jan,

the viminfo file just stores information.  it doesn't actually do
anything by itself.  in other words, the viminfo file differs from the
.vimrc file in that:

viminfo: stores state data for vim
.vimrc: a list of vim commands to run at the start of a vim session

so how does the cursor get positioned when vim is started?

pete




begin Jan W <jcwynholds@yahoo.com> 
> Hi Peter:
> 
> Look in ~/.viminfo
> 
> There should be a line like:
> 
> # File marks:
> '0  37  0  ~/textfile3.txt
> '1  35  0  ~/textfile.txt
> 
> I think that is the place that you are talking about.
> 
> :)
> 
> HTHO,
> 
> jan
> 
> --- Peter Jay Salzman <p@dirac.org> wrote:
> > hi lugod,
> > 
> > i've seen vim on a mandrake system which, when opening a file a second
> > time, will place the cursor at its last position when the file was
> > initially opened.
> > 
> > anyone know how to get vim to do this?
> > 
> > i've checked the ~/.vimrc and can find nothing that does this.  i also
> > checked bash aliases to make sure vim wasn't aliased to vim plus some
> > command line switches.   nothing.
> > 
> > i'd like for my own vim to do this.  anyone know the magic?
> > 
> > pete
> > 
> > -- 
> > Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> 
> 
> =====
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> PATRIOTISM, n.  Combustible rubbish read to the torch of any one
> ambitious to illuminate his name.
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> __________________________________________________
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 
Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.