On Wed, 15 Sep 2010, Steve Hall wrote:

From: Oliver Adams, Wed, September 15, 2010 10:34 am
On 16 September 2010 00:02, Alex A. wrote:

Does anybody know if it is possible to setup VIM to show space symbols (at least) and indent guides (would be great) permanently? I mean, that I want to clearly see space symbols all the time I am editing a file.

in your .vimrc i think you go "set list" to enable, and "set listchars" which has a few different arguments depending on what you want displayed.

Indent guides are possible if you use tabs, through the "tab:xy" component of &listchars.

Also see several recent threads on vim-use that talk about highlighting certain columns. (Often that's the goal.)


Trailing spaces can be achieved via "trail:c" and non-breaking spaces through "nbsp:c".

Intermediate spaces are not (yet) possible in Vim, although I have been holding my breath for about 10 years. :)

Not possible via 'listchars'. The following highlights them as errors, for example:

syn match Spaces ' '
hi link Spaces ErrorMsg

Needs autocmd love (will be overwritten by other syntax files/autocmds), but it also depends on the goal whether that's a reasonable solution.

--
Best,
Ben

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

Reply via email to