Wednesday, December 31, 2014

Re: PL/I

Hi Joydeep!

On Mi, 31 Dez 2014, Joydeep Chakrabarty 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?

I do not think so. You can possibly work around that, by writing some
BufWritePre autocommand that will shift your buffer by one char to the
right and a BufWritePost autocommand, that will reshift it backwards.
But then you would probably also a BufRead autocommand that will shift
you buffer to the left by one char.

Well, you get the idea. This will get pretty ugly soon, plus you lose
the ability to see how the written buffer actually looks like...

Best,
Christian
--
Das Element der Lüsternheit, in dem er sich so zierlich und
sinnig benimmt, würde vielen andern zum Verderben gereichen.
-- Goethe, Maximen und Reflektionen, Nr. 199

--
--
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.

No comments:

Post a Comment