mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Fixed Build Badge
This commit is contained in:
19
README.md
19
README.md
@@ -1,4 +1,4 @@
|
||||
# VIM Table Mode v4.8.0 [](https://travis-ci.org/dhruvasagar/vim-table-mode)
|
||||
# VIM Table Mode v4.8.1 
|
||||
|
||||
An awesome automatic table creator & formatter allowing one to create neat
|
||||
tables as you type.
|
||||
@@ -8,26 +8,31 @@ tables as you type.
|
||||
### Installation
|
||||
|
||||
#### <a href="https://www.danielfranklin.id.au/vim-8-package-management/">Vim 8+ native package manager</a>
|
||||
|
||||
clone into `.vim/pack/plugins/start` (the `plugins` folder can have any name)
|
||||
|
||||
Add `packloadall` in your `~/.vimrc`.
|
||||
|
||||
#### <a href="https://github.com/Shougo/neobundle.vim">NeoBundle</a>
|
||||
|
||||
Add `NeoBundle 'dhruvasagar/vim-table-mode'` to your `~/.vimrc`.
|
||||
|
||||
#### <a href="https://github.com/tpope/vim-pathogen">pathogen.vim</a>
|
||||
|
||||
Add a git submodule for your plugin:
|
||||
|
||||
```sh
|
||||
$ cd ~/.vim
|
||||
$ git submodule add git@github.com:dhruvasagar/vim-table-mode.git bundle/table-mode
|
||||
```
|
||||
|
||||
Copy all files under `autoload/`, `plugin/`, and `doc/` to respective
|
||||
`~/.vim/autoload/`, `~/.vim/plugin` and `~/.vim/doc` under UNIX, or
|
||||
`vimfiles/autoload/`, `vimfiles/plugin/` and `vimfiles/doc` under WINDOWS and
|
||||
restart Vim.
|
||||
|
||||
#### <a href="https://github.com/junegunn/vim-plug">vim-plug</a>
|
||||
|
||||
Add `Plug 'dhruvasagar/vim-table-mode'` to your `~/.vimrc`.
|
||||
|
||||
### Creating table on-the-fly
|
||||
@@ -36,6 +41,7 @@ To start using the plugin in the on-the-fly mode use `:TableModeToggle` mapped t
|
||||
|
||||
Tip:
|
||||
You can use the following to quickly enable / disable table mode in insert mode by using `||` or `__`:
|
||||
|
||||
> ```vim
|
||||
> function! s:isAtStartOfLine(mapping)
|
||||
> let text_before_cursor = getline('.')[0 : col('.')-1]
|
||||
@@ -199,15 +205,10 @@ it using `:TableModeRealign` or using the default mapping
|
||||
|
||||
### Highlight cells based on content
|
||||
|
||||
You can highlight cells based on content by setting `let g:table_mode_color_cells` :
|
||||
- cells starting with `yes` will use the `yesCell` highlight group.
|
||||
- cells starting with `no` will use the `noCell` highlight group.
|
||||
- cells starting with `?` will use the `maybeCell` hightlight group.
|
||||
You can highlight cells based on content by setting `let g:table_mode_color_cells` : - cells starting with `yes` will use the `yesCell` highlight group. - cells starting with `no` will use the `noCell` highlight group. - cells starting with `?` will use the `maybeCell` hightlight group.
|
||||
|
||||
You can overwrite any highlight group. For exemple use `hi yesCell ctermfg=2` to remove the background color.
|
||||
|
||||
|
||||
|
||||
## Advanced Usage: Spreadsheet Capabilities
|
||||
|
||||
### Table Formulas
|
||||
@@ -282,6 +283,7 @@ it using `:TableModeRealign` or using the default mapping
|
||||
src="https://raw.github.com/axil/vim-table-mode/master/youtube.png"/></a>
|
||||
|
||||
## Change Log
|
||||
|
||||
See <a
|
||||
href="https://github.com/dhruvasagar/vim-table-mode/blob/master/CHANGELOG.md">
|
||||
CHANGELOG.md </a>
|
||||
@@ -289,16 +291,19 @@ CHANGELOG.md </a>
|
||||
## Contributing
|
||||
|
||||
### Reporting an Issue :
|
||||
|
||||
- Use <a href="https://github.com/dhruvasagar/vim-table-mode/issues">Github
|
||||
Issue Tracker</a>
|
||||
|
||||
### Contributing to code :
|
||||
|
||||
- Fork it.
|
||||
- Commit your changes and give your commit message some love.
|
||||
- Push to your fork on github.
|
||||
- Open a Pull Request.
|
||||
|
||||
## Credit
|
||||
|
||||
I must thank Tim Pope for inspiration. The initial concept was created by him
|
||||
named <a href="https://gist.github.com/tpope/287147">cucumbertables.vim</a>.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
*table-mode.txt* Table Mode for easy table formatting
|
||||
===============================================================================
|
||||
Table Mode, THE AWESOME AUTOMATIC TABLE CREATOR & FORMATTER
|
||||
VERSION 4.8.0
|
||||
VERSION 4.8.1
|
||||
|
||||
Author: Dhruva Sagar <http://dhruvasagar.com/>
|
||||
License: MIT <http://opensource.org/licenses/MIT/>
|
||||
@@ -544,4 +544,3 @@ REPORT ISSUES *table-mode-report-issues*
|
||||
|
||||
If you discover any issues, please report them at
|
||||
http://github.com/dhruvasagar/vim-table-mode/issues.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user