Tuesday, September 19, 2017

Re: User-defined tabulations

On Di, 19 Sep 2017, Mikhail V wrote:

> Is there in gVIM (I am gVIM user) a possibility to define
> different tabulations widths in single file?
>
> Like in a DTP software e.g. Indesign or Word,
> I can set custom tabulations for any paragraph and they
> are stored within a file.
>
> Seems that the answer is no :( But maybe some work
> on this was done or proposed? I am almost sure this
> have been proposed or discussed at some time.
> I have noticed that there is similar functionality in VIM
> like markers, that are stored separately in side files.
> In theory it could save the tabulation setups in similar manner?
>
> I think also that it is not simple because tab char is used for
> logical indentation in some languages and not only for column separation,
> and these setups must not interfer with each other.
> So it is sort of contents-dependent.
>
> To be clear, I am not interestd in solutions which insert
> spaces to align things. I ask about tabulations, i.e. setup of
> column coordinates for individual lines, which
> are _one_ tab char per column in a file.

There is the vartabs patch, that has been floating around for ten years
or so. Unfortunately, it hasn't been merged yet. I'll keep it around and
update it to the latest code every now and then:
https://github.com/chrisbra/vim-mq-patches/blob/master/var_tabstops

Christian
--
Letzte Worte eines Sprengmeisters:
"Was'n das für'n Draht?"

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