Re: unchangeable lines

2020-01-01 Thread Erik Christiansen
On 29.12.19 17:43, Efraim Yawitz wrote: > I wonder if this could be easily hacked into the code of vim by creating a > new syntax group called Unchangeable or something and adding code to make > it uneditable. Or more easily in the folding code? That already treats an arbitrary number of lines as

Re: unchangeable lines

2019-12-29 Thread Richard Mitchell
This probably isn't what the original poster had in mind, but this made me think what if vim could use a template file that acted as a mask? Anywhere characters (X for example) existed in the mask file, those positions would not be changeable in the 'edit' file. If the movement commands skipped

Re: unchangeable lines

2019-12-29 Thread Salman Halim
Might be useful. I currently use something such as the InlineEdit plugin to extract the lines I want to modify. (This also helps in big files where syntax highlighting is slow.) How would this be persisted? If it adds markers within the same file, the file won't be compatible with other editors. M

Re: unchangeable lines

2019-12-29 Thread Efraim Yawitz
I wonder if this could be easily hacked into the code of vim by creating a new syntax group called Unchangeable or something and adding code to make it uneditable. Maybe for now, create a syntax group and highlight it in a way that it reminds you not to change that text. On Fri, 27 Dec 2019 at 09

Re: unchangeable lines

2019-12-26 Thread Christian Brabandt
On Fr, 27 Dez 2019, Vladimir Stenbock wrote: > Is it possible to mark some lines as unchangeable ? This is not possible. A custom handmade plugin might work around this by saving/restoring of lines, but in the core, Vim does not support this. Best, Christian -- Eine Erfolgsformel kann ich dir

unchangeable lines

2019-12-26 Thread Vladimir Stenbock
Is it possible to mark some lines as unchangeable ? -- -- 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 subscr