> Chris Jones wrote:
> > Prettifying a color scheme, which looks like so:
> >
> > ------------------------------------------------------------------------
> > 15 hi ErrorMsg ctermfg=9 cterm=none ctermfg=red etc...
> > 16 hi Visual ctermbg=61 cterm=none ctermfg=bg
> > 17 hi VisualNOS ctermbg=61 cterm=none ctermfg=bg
> > 18 hi Underlined ctermfg=fg ctermbg=bg term=underline
> > ------------------------------------------------------------------------
> >
> > I wanted to end up with this:
> >
> > ------------------------------------------------------------------------
> > 15 hi ErrorMsg ctermfg=9 cterm=none ctermfg=red
> > 16 hi Visual ctermbg=61 cterm=none ctermfg=bg
> > 17 hi VisualNOS ctermbg=61 cterm=none ctermfg=bg
> > 18 hi Underlined ctermfg=fg ctermbg=bg term=underline
> > ------------------------------------------------------------------------
> >
> > I gave the Align plugin a shot and eventually did the following:
> >
> > 15,18s/\ \ \+/@/g
> > 15,18s/\ /@/g
> > 15,18Align @
> > 15,18s/@/\ /g
> >
> > Is there a more 'standard' way to do this?
> >
>
> :help alignmap-tsp
>
> might help.
I had already read this, and experimented with it.
I selected the text via a Ctrl-V and issued a: ":Align \tsp" and nothing
happened.
Since I had tried many other things to get the plugin to align on white
spaces before I found alignmap-tsp, I did it again just to make sure and
saw the same result: the buffer is not modified.
I read (again) the intro at :h align-maps, sourced AlignMaps.vim to be
on the safe side, repeated the experience a couple of times, once with a
different test file containing:
------------------------------------------------------------------------
a b c d
a b c d
a b c d
------------------------------------------------------------------------
.. and still nothing happens.
I'm running Vim 7.1 on a debian lenny system and the plugin was
installed like so:
# vim-addons -v -w install align
In other words, it's the version of the plugin that ships with Vim,
installed by root, system-wide.
Thank you for your comments,
CJ
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment