> Thank for your post. I figured out that I can simulate readonly lines by keeping metadata about lines and remapping all keys to a function which decides upon that metadata whether to put the character in question.
An alternative approach would be to use the CursorMoved(I) events to toggle the readonly option depending on which line the cursor is located at.
E.g. the setsyntax plugin (http://www.vim.org/scripts/script.php?script_id=2076) can be used to achieve something like this based on the syntax group under the cursor.
Regards
--
--
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.
Sunday, January 15, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment