On 04/13/2011 01:41 PM, Scottb wrote:
Hi all, I'm working with a lot of PDF lately and I'm looking
for a way to map a key combination that will allow me to
follow object references. Basically that would mean "look at
the object ref number that is under the cursor right now and
find a pattern like "^\s* $refnumber \d* obj" where $refnumber
is the value found under the cursor.
While I don't have a full understanding of what you're describing
(some actual data/text would help verify), it looks like
something like
:nnoremap <f4> /^\s* <c-r><c-w> \d* obj"<cr>
might do the trick. The ^R^W sequence brings the Word under the
cursor into the search. Or you can use ^R^A if you need the WORD
under the cursor.
:help c_CTRL-R_CTRL-W
-tim
--
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