Thank you for your valuable reply's. i was just afraid that editing vimrc
caused this problem. 

Tony Mechelynck-2 wrote:
> 
> 
> On 27/01/09 15:19, Ben Fritz wrote:
>>
>>
>> On Jan 26, 11:00 pm, Jabez<[email protected]>  wrote:
>>
>>> I mapped "Shift-Tab" to ":tabnext" for cycling between tabs. When i'm
>>> editing one file i switched to another file which is in another tab for
>>> referance. I noticed that cursor in my first file moved one coloumn
>>> behind
>>> its position from where i left before switching. i thought its my
>>> mistake.
>>> But i noticed it several times, its not staying in the same position
>>> where
>>> it was left. Its very annoying that i have to put the cursor back to the
>>> original position to edit that sentence again. Is there any way to avoid
>>> this problem??
>>>
>>> PS: I'm in Insert mode when this happened.
>>>
>>
>> What exact command did you use to create this mapping? It could be a
>> result of using "i" to re-enter insert mode, if this is what you are
>> doing. To see this effect, just edit a buffer with some text, position
>> the cursor somewhere near the end of a long line, and type
>> i<esc>i<esc>i<esc>... repeatedly to see the cursor moving backwards.
>>
>> If this is your problem, try using<C-O>  or<C-\><C-O>  in your mapping
>> instead of<esc>.... See :help i_CTRL-O and immediately below.
> 
> Also, i<Esc> moves one screen cell left (unless you're already at the 
> left margin), but a<Esc> doesn't move (even if you're at the end of the 
> line).
> 
> Best regards,
> Tony.
> -- 
> Did you know that if you took all the economists in the world and lined
> them up end to end, they'd still point in the wrong direction?
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cursor-changing-position-when-switching-tabs-tp21623523p21979571.html
Sent from the Vim - General mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to