Friday, October 10, 2014

How to use <script> attribute in map command?

This wiki page:
http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_3)

says with the following maps in a script file:

nnoremap \x /Topic
nmap <script> ,f \x<CR>

"In the second map command, ',f' is mapped to invoke \x which is replaced with '/Topic'.
If the user or some other plugin has defined a mapping for '\x', then it is not used by ',f'."

But I tried and find '\x' is not remapped to '/Topic' as the wiki says, so what does <script>
really mean and how to use it?

thanks.


--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: