* 2010-07-27 15:55 (+0800), winterTTr wrote: > But is it possible to make some text in a buffer read-only but not for > the whole buffer? I mean maybe we can "bind" a property to the string > ( or text, or character ) , which can make the text read-only in a > modifiable buffer. Or even finally, We can make the text not only a > plain text, but text binding some properties set to different value to > control the different aspects, such as highlighting, read-only, or > even font. Maybe, "conceal" can also be one property of a text. :-)
Vim does not have this. User needs to maintain such information outside the actual buffer and perhaps hook some behaviour-changing code to CursorMovedI autocommand event. As far as I know only Emacs has such text properties: arbitrary amount of data can be attached to any character in a buffer. Some properties are standardized. For example, text highlighting and invisible text features have been implemented through text properties. There is also read-only property which does what you described. Text properties for Vim would be a great general solution for many features but I'm sure some people here are already thinking that Vim was not "designed" for that. So that justifies the non-existing feature. :-) -- 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
