Fixed the doc, Added demo gif & updated README

This commit is contained in:
Dhruva Sagar
2013-03-17 10:36:13 +05:30
parent b9eb7a25d5
commit f1707199d4
4 changed files with 14 additions and 6 deletions

View File

@@ -35,3 +35,8 @@ default. You would have to use `:TableModeToggle` command or the table mode
toggle mapping, which is `<Leader>tm` by default. This is on a per buffer basis toggle mapping, which is `<Leader>tm` by default. This is on a per buffer basis
and so it does not mess up unless enabled explicitly. Please read `:h table-mode` and so it does not mess up unless enabled explicitly. Please read `:h table-mode`
for further information. for further information.
Demo:
<img src="https://raw.github.com/dhruvasagar/vim-table-mode/master/demo.gif"
height="500" />

BIN
demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

@@ -89,11 +89,12 @@ g:table_mode_always_active *table-mode-options-always-active*
Use this option to permanently enable the table mode: > Use this option to permanently enable the table mode: >
let g:table_mode_always_active = 0 let g:table_mode_always_active = 0
< <
This will trigger table creation once you type |table-mode-separator| This will trigger table creation once you type the
as long as it's the first character on the line, which can be |table-mode-options-separator| as long as it's the first character on
annoying. That's why I would recommend you to instead use the line, which can be annoying. I recommend you to instead use the
|table-mode-mappings-toggle| to enable / disable toggle mode when |table-mode-mappings-toggle| or |table-mode-commands-toggle| to toggle
needed. the table mode or |table-mode-commands-enable| to enable and
|table-mode-commands-disable| to disable mode when needed.
=============================================================================== ===============================================================================
MAPPINGS *table-mode-mappings* MAPPINGS *table-mode-mappings*
@@ -101,7 +102,7 @@ MAPPINGS *table-mode-mappings*
*table-mode-mappings-toggle* *table-mode-mappings-toggle*
<Leader>tm Enable table mode for the current buffer. You can change this <Leader>tm Enable table mode for the current buffer. You can change this
using the |toggle-mode-options-toggle-map| option. This is using the |toggle-mode-options-toggle-map| option. This is
applicable only if |table-mode-always-active| is not set. applicable only if |table-mode-options-always-active| is not set.
*table-mode-mappings-trigger* *table-mode-mappings-trigger*
| Trigger table creation in table mode. You can change this | Trigger table creation in table mode. You can change this

View File

@@ -1,4 +1,6 @@
table-mode-commands table-mode.txt /*table-mode-commands* table-mode-commands table-mode.txt /*table-mode-commands*
table-mode-commands-disable table-mode.txt /*table-mode-commands-disable*
table-mode-commands-enable table-mode.txt /*table-mode-commands-enable*
table-mode-commands-toggle table-mode.txt /*table-mode-commands-toggle* table-mode-commands-toggle table-mode.txt /*table-mode-commands-toggle*
table-mode-contents table-mode.txt /*table-mode-contents* table-mode-contents table-mode.txt /*table-mode-contents*
table-mode-contributing table-mode.txt /*table-mode-contributing* table-mode-contributing table-mode.txt /*table-mode-contributing*