On Wednesday, December 31, 2014 9:49:09 AM UTC-6, [email protected] wrote: > Hello, > > I want to write some PL/I programs on Vim. PL/I does not accept the first > column. Is there a way to disable the first column of the editor so that > the cursor does not appear there and first column will always be > unwritable? > > Thanks.
Perhaps you could use the InsertCharPre autocmd event. You could check if the cursor is in the first column, and if so, prepend a space character to v:char so that if you typed "a" in the first column, " a" would be inserted instead. Is that the sort of thing you're looking for? Alternatively you could check if the character to insert is not " " and if so set it empty, I think. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
