You are not logged in.

#1 2015-04-15 21:35:57

antiqiuty
Member
Registered: 2014-09-12
Posts: 11

The cursor position when maximize the split window in VIM

I use the split windows in vim to work on multiple file. I don't know since when it starts to put cursor at the top of the screen instead of the previous position when I switch between the split windows. It is annoying.

I mapped the following lines in vim to do the switch:

map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_ 

My VIM version is the newest from the official repository of ARCH.

The same configuration works in Ubuntu, where the current version is also 7.4 (2013 Aug 10).  I am wondering whether this is caused by different compiling arguments.

Thanks in advance for any suggestion.

Offline

#2 2015-04-17 04:02:05

antiqiuty
Member
Registered: 2014-09-12
Posts: 11

Re: The cursor position when maximize the split window in VIM

Is anyone here has the same problem?

Last edited by antiqiuty (2015-04-17 04:02:23)

Offline

Board footer

Powered by FluxBB