On Thu, May 18, 2006 at 08:28:29AM EDT, Benji Fisher wrote:
> On Wed, May 17, 2006 at 04:52:50PM -0400, cga2000 wrote:
> > Does vim provide any form of native support for drawing tables?
> > 
> > I have tried a couple of plugins and they don't seem to play well with
> > my setup, presumably because I have temporarily switched my locale back
> > from UTF-8 to en_US (due to problems with other applications that do are
> > not yet utf8-ready).
> > 
> > When in UTF-8 I was able to manually draw nice-looking tables to dress
> > up text that I had previously formatted in rows and columns by using
> > digraphs (Ctrl+K hh/vv etc..) and though there were some issues with
> > printing I was all-in-all quite happy. 
> > 
> > The functionalities I had in mind would probably do something like this:
> > 
> > 1. Assist text entry by letting you define tab stops,
> > 2. Let you select a column of text and justify it, 
> > 3. Provide some means of inserting vertical lines at each tab stop,
> > 4. Assist in creating horizontal lines by adding the ad hoc character
> >    where a vertical and a horizontal line intersect, 
> > 5. Reformat the table frame when box drawing characters are not
> >    available (replacing line intersections by '+' for instance).
> > 
> > But then again I have little experience with vim and there is probably
> > a "vim way" of doing this that I have not even imagined. So I am open
> > to better strategies.
> 
>      You mention trying some plugins, but you did not say which ones, so
> I do not know if you have already tried these suggestions.

Sorry, I mostly tried "draw.vim" by Timo Frenay and the problem that I
ran into was that instead of box drawing characters I was getting
capital A's with an umlaut/diaresis on top. As mentioned earlier, I had
to switch my settings back to en.US - UTF-8 did not play well with
the elinks text-mode browser among others. 

I'm pretty much stuck with this UTF-8 problem at present since I would
like all my text-mode apps to run on one xterm with gnu/screen. I will
try to run another quick test of the draw.vim plugin on an UTF8-enabled
xterm..

Thanks,

cga

Reply via email to