Wednesday, February 6, 2013

Re: vim: help for scripting

jumping bufs, opening bufs is something you do most.
Thus you should map that.
Eg see line 7 to 10:
https://github.com/MarcWeber/vim-addon-other/blob/master/plugin/vim-addon-other.vim

Its hard to help without actually reading all the code

Instead of using normal <cr> Sometimes using feedkeys function is faster
than coding much viml.

You can debug the command by:

debug normal <cr>

and see what it triggers by stepping with s.
You can also try

map <cr>

to see whether the mapping already exist.

You can also lookup what <cr> is mapped to, and use that code instead.

Maybe these ideas already help you.

Marc Weber

--
--
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/groups/opt_out.

No comments: