2 Aug 2007 00:23
Re: Abbreviations beginning with non-keyword character
Kahn jonas <kahn.jonas <at> gmail.com>
2007-08-01 22:23:07 GMT
2007-08-01 22:23:07 GMT
Abbreviations may begin with a non-id character, but there are more constraints: [...]
That I knew. I wondered if I could have something like \al as an abbreviation
What you can do is map the \ key to start a function which would get keyboard
input, process it, and finally return a string to be inserted into the buffer.
The partial sequence would probably not appear in the file window though. It
might be possible (I'm not sure, I haven't pushed the idea to its end) to have
it appear at the bottom, on the command/status line. I think Dr.Chip is more
expert than I am about "crazy" mappings.
Thank you. I'll try to write a function that does the work. Maybe with python, I can even manage to see it on the screen. I'll let poeple know if I can get a solution (probably an unreadable hack)...
Jonas
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
RSS Feed