Monday, November 14, 2011

Yank, move to another split tab and jump to yanked line number

Hi!

Say I have a file A with line numbers as text and another file B. Both
split in the same window. I want to map a command sequence or create a
new command for the following:

-- yank line number in file A
-- move to file B
-- go to line number, yanked in file A

I seemed to me somehow like this

:map <F8> vey^w^w<Insert>G

<Insert>G part doesn't work I don't know why. Probably I missed up
with command to put yanked line number from register to command line

Any advice or comment is greatly appreciated

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: