Vim Tips Wiki
Register
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 15: Line 15:
   
 
<pre>
 
<pre>
βˆ’
nnoremap <C-F1> :silent! !cmd.exe /c start keyhh.exe -\#klink "<C-R><C-W>" "$ASANY9\docs\dbmaen9.chm"<CR><CR>
+
nnoremap &lt;C-F1&gt; :silent! !cmd.exe /c start keyhh.exe -\#klink "&lt;C-R&gt;&lt;C-W&gt;" "$ASANY9\docs\dbmaen9.chm"&lt;CR&gt;&lt;CR&gt;
βˆ’
vnoremap <C-F1> :<C-U>let old_reg=@"<CR>gvy:silent!!cmd.exe /cstart keyhh.exe -\#klink "<C-R><C-R>"" "$ASANY9\docs\dbmaen9.chm"<CR><CR>:let @"=old_reg<CR>:echo ""<CR>
+
vnoremap &lt;C-F1&gt; :&lt;C-U&gt;let old_reg=@"&lt;cr&gt;gvy:silent!!cmd.exe /cstart keyhh.exe -\#klink "&lt;C-R&gt;&lt;C-R&gt;"" "$ASANY9\docs\dbmaen9.chm"&lt;CR&gt;&lt;CR&gt;:let @"=old_reg&lt;cr&gt;:echo ""&lt;CR&gt;
 
</pre>
 
</pre>
   
βˆ’
The nnoremap opens the help file using the <CWORD> that the cursor is on.
+
The nnoremap opens the help file using the &lt;CWORD&gt; that the cursor is on.
   
 
The vnoremap allows you to visually select a block of text and open the search window with that text. It also restores whatever was previously visually selected after the launch.
 
The vnoremap allows you to visually select a block of text and open the search window with that text. It also restores whatever was previously visually selected after the launch.
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)