mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Added syntax for matching tables
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
## Version 4.4.1
|
||||||
|
* Added syntax for matching tables
|
||||||
|
|
||||||
## Version 4.4.0
|
## Version 4.4.0
|
||||||
* Minor bug fixes
|
* Minor bug fixes
|
||||||
* Added feature to allow using negative indices within formulas to access rows,
|
* Added feature to allow using negative indices within formulas to access rows,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# VIM Table Mode v4.4.0 [](https://travis-ci.org/dhruvasagar/vim-table-mode)
|
# VIM Table Mode v4.4.1 [](https://travis-ci.org/dhruvasagar/vim-table-mode)
|
||||||
|
|
||||||
An awesome automatic table creator & formatter allowing one to create neat
|
An awesome automatic table creator & formatter allowing one to create neat
|
||||||
tables as you type.
|
tables as you type.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
*table-mode.txt* Table Mode for easy table formatting. v4.4.0
|
*table-mode.txt* Table Mode for easy table formatting. v4.4.1
|
||||||
===============================================================================
|
===============================================================================
|
||||||
Table Mode, THE AWESOME AUTOMATIC TABLE CREATOR & FORMATTER
|
Table Mode, THE AWESOME AUTOMATIC TABLE CREATOR & FORMATTER
|
||||||
VERSION 4.4.0
|
VERSION 4.4.1
|
||||||
|
|
||||||
Author: Dhruva Sagar <http://dhruvasagar.com/>
|
Author: Dhruva Sagar <http://dhruvasagar.com/>
|
||||||
License: MIT <http://opensource.org/licenses/MIT/>
|
License: MIT <http://opensource.org/licenses/MIT/>
|
||||||
|
|||||||
@@ -50,6 +50,23 @@ function! s:TableEchoCell() "{{{1
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:EnableTableSyntax() "{{{1
|
||||||
|
syntax match Table /^\s*|.\+|\s*$/ contains=TableBorder,TableSeparator,TableColumnAlign containedin=ALL
|
||||||
|
syntax match TableSeparator /|/ contained
|
||||||
|
syntax match TableColumnAlign /:/ contained
|
||||||
|
syntax match TableBorder /[\-+]\+/ contained
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
augroup TableMode
|
||||||
|
au!
|
||||||
|
|
||||||
|
autocmd Syntax * call <SID>EnableTableSyntax()
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
hi! link TableBorder Delimiter
|
||||||
|
hi! link TableSeparator Delimiter
|
||||||
|
hi! link TableColumnAlign Type
|
||||||
|
|
||||||
" Define Commands & Mappings {{{1
|
" Define Commands & Mappings {{{1
|
||||||
if !g:table_mode_always_active "{{{2
|
if !g:table_mode_always_active "{{{2
|
||||||
exec "nnoremap <silent> " . g:table_mode_map_prefix . g:table_mode_toggle_map .
|
exec "nnoremap <silent> " . g:table_mode_map_prefix . g:table_mode_toggle_map .
|
||||||
|
|||||||
Reference in New Issue
Block a user