From 88edc35ea634163ee1cd05922d242416e586d026 Mon Sep 17 00:00:00 2001 From: Dhruva Sagar Date: Sun, 5 May 2013 12:11:51 +0530 Subject: [PATCH] Updated README.md --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 7f08530..3ad25eb 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ sure Tabular is installed and loaded into your runtime to ensure this works. disable the table mode. This is on a per buffer basis and so it does not cause any unusual behavior unless enabled explicitly. Please read `:h table-mode` for further information. + - Format existing content into a table : Table Mode wouldn't justify it's name if it didn't allow formatting @@ -58,11 +59,42 @@ sure Tabular is installed and loaded into your runtime to ensure this works. `:line1,line2Tableize`, but this is not that intuitive. You can also use the mapping `T` with a `[count]` to apply it to the next `[count]` lines in usual vim style. + - Move between cells : Now you can move between cells using table mode motions. Check `:h table-mode-motion-prefix` for more details. +- Manipulating Table : + + - Cell Text Object : + + Tableize provides a text object for manipulating table cells. By default + it's `tc`, but that can be changed if you wish to by setting the + `g:table_mode_cell_text_object` option. + + This is intelligent in the sense that if you use it to delete the + contents it will delete everything till the `g:table_mode_separator` so + that the cell is removed and you can enter new stuff if you wish to (had + you used 'c' operator), having to input the `g:table_mode_separator` + again to form the cell & realign it (since it can't be done from the + text object itself). However if you were to 'y' or yank the text, it + would copy the right text, i.e. the contents of the cell and nothing + else. + - Delete Row : + + You can use the `tdd` mapping defined by the option + `g:table_mode_delete_row_map` to delete the current table row (provided + you are within a table row), this can be preceeded with a [count] to + delete multiple rows just like you would with 'dd'. + + - Delete Column : + + You can use the `tdc` mapping defined by the option + `g:table_mode_delete_column_map` to delete the entire current column + (provided you are within a table row), this can also be preceeded with a + [count] to delete multiple columns. + ### Demo