Hi Eric!
On Do, 19 Nov 2009, Eric Smith wrote:
> nmap tq ma[S1z=| " mark current position - go to previous
> "misspelling - correct it with the first option in the suggested list
> nmap tl `a " go back to where you were
> nmap l tqtl " concatenate it and map to the letter "l"
This was tricky, because the quoting was complicated, but this should
get you started:
,----
| nmap tr :exe "call
matchadd('WarningMsg','\\%".line('.').'l'.expand("<cword>") . "')"<CR>
| nmap tq ma[S1z=tr|
`----
(2 lines). Set the first argument of matchadd to the highlighting group
you like (see :hi for a list of groups).
regards,
Christian
--
:wq
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---