Hi,
I didn't really know how to express it better, so I picked that
meaningless subject. Sorry about that.
Let's say, as a mental experiment, we want to write plugins -or
whatever is needed- to enhance the experience of editing a given kind
of configuration file, with a well defined extension.
That is a fake example, but simple enough to explain the case.
I would love to know if it is possible to:
(1) when creating a new one, start with a template.
Well, I actually know how to do that. So not really a question. Just
adding it here for completeness.
For example
# config file
enable =
# set here the day of the week
day =
# set here if notification is needed
notify =
(2) it would be nice if moving between lines (j k), the cursor
actually goes after the = directly. Is that possible, easily?
(3) nice feature would be to have completion popup menus, based on the line.
For example, <C-P> would offer "True | False" options if cursor is in
"enable= " line.
But the menu would be "Mon | Tue | Wed...." if cursor is in "day = " line.
Is it possible?
(4) The bonus feature. If picking from the popup menu "Yes" in "notify
= " line, that makes automagically a new line "phone = " to appear.
Is autocompletion one of the "Events" that VIM allows to catch in
order to trigger actions?
Thanks for your attention.
Jose
--
--
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:
Post a Comment