Hi,
I have solved this problem myself.
I have taken the following from my suse linux /etc/vimrc and added the same in
my Solaris .vimrc file. Now, it is working fine.
if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
endif
Thank you for your help.
-----
Durga Prasad Jammula
webpage : http://durgaprasad.wordpress.com
----- Original Message ----
From: durgaprasad jammula <[EMAIL PROTECTED]>
To: Swaroop C H <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Wednesday, February 21, 2007 11:25:27 PM
Subject: Re: Help needed to : Start on the line where I left when I opened the
file last time
Hi Swaroop,
Thank you for the reply.
I have tried the option suggested by you. But unfortunately it is not
working. After reading some documentation, I came to know that we can do that
by typing `" [backquote & doublequote ]. But I want to do this automatically
at the time when I open the file.
Can you please help regarding this?
-----
Durga Prasad Jammula
webpage : http://durgaprasad.wordpress.com
----- Original Message ----
From: Swaroop C H <[EMAIL PROTECTED]>
To: durgaprasad jammula <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Wednesday, February 21, 2007 11:07:25 PM
Subject: Re: Help needed to : Start on the line where I left when I opened the
file last time
> Let say the file is good.text. I open the file and goto 66 line and come
> out by typing :wq in escape mode.
>
> Now, when I open it again, my cursor is placed in line 0. I want it to be
> placed in line 66.
> Can you please help me what configuration do I need to change to enable
> this feature. [I have tried Google search and could not get useful links].
Maybe http://tech.groups.yahoo.com/group/vim/message/77644 can help you.
HTH,
Swaroop
____________________________________________________________________________________
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail