Text-table code

41 views
Skip to first unread message

David J Patrick

unread,
Feb 3, 2013, 9:38:51 PM2/3/13
to vimorg...@googlegroups.com
The most awesome text-table behavior, that replicates a spreadsheet in vim.. where did that come from? Is it usable stand-alone? That is to say, could I create somefile.txt, apply some vim magic, and then open it in vim and get the same behavior?

thanks Herb,
djp

Herbert Sitz

unread,
Feb 3, 2013, 11:13:44 PM2/3/13
to vimorg...@googlegroups.com
David -- Only a small part of table editing behavior (e.g.,
auto-aligning of column dividers, adding new row beneath current row)
is done entirely in Vim. Most of the stuff is done by making a call
out to Emacs server, which makes all the functionality of Org-mode
available in VimOrganizer. You can read about spreadsheet specific
functionality here:
http://orgmode.org/manual/The-spreadsheet.html#The-spreadsheet

Sadly, it doesn't make sense to replicate in Vim what's already done
in Emacs. On the other hand, if you've got your Emacs server set up
then you're good to go. Only issue with spreadsheet evaluation is if
there's an error when evaluating (e.g., you wrote a formula wrong or
with a typo). If it's not obvious to you what's wrong you need to
open restore the Emacs window and look at what hung it up there.

-- Herb

Herbert Sitz

unread,
Feb 3, 2013, 11:19:02 PM2/3/13
to vimorg...@googlegroups.com
On Sun, Feb 3, 2013 at 8:13 PM, Herbert Sitz <hes...@gmail.com> wrote:
> On Sun, Feb 3, 2013 at 6:38 PM, David J Patrick <dava...@gmail.com> wrote:
>> The most awesome text-table behavior, that replicates a spreadsheet in vim..
>> where did that come from? Is it usable stand-alone? That is to say, could I
>> create somefile.txt, apply some vim magic, and then open it in vim and get
>> the same behavior?
>>

Sorry, also, if you're referring to using spreadsheet functionality
outside of a VimOrganizer document, it could (including Emacs calls)
be revised to work with other types of documents in Vim but it won't
work right now. Might work with a .txt file if you manually set that
file (perhaps temporarily) to be of filetype org (with :set
filetype=org).

David J Patrick

unread,
Feb 4, 2013, 12:47:31 AM2/4/13
to vimorg...@googlegroups.com
cool!
thanks Herb,
djp



--
You received this message because you are subscribed to the Google Groups "VimOrganizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vimorganizer...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages