[nvim] Add table align plugin; update spell

Added alignment plugin. My primary use-case is markdown tables, though
the plugin can be used for a lot more than that.

Basic use is marking the to-be-aligned area and pressing ga then
entering *| (or something else than pipe, if the separator symbol is
different). Or doing e.g. gaip to align within paragraph; works as
editing command.
This commit is contained in:
Marty Oehme 2020-05-25 17:46:04 +02:00
parent e361d65e59
commit 4292d1e5de
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
3 changed files with 13 additions and 0 deletions

View file

@ -40,6 +40,7 @@ Plug 'tpope/vim-commentary' " easily toggle comments for lines, paragraphs etc w
Plug 'tpope/vim-surround' " lets you change surrounding things with cs (or ds to del, ys to add) Plug 'tpope/vim-surround' " lets you change surrounding things with cs (or ds to del, ys to add)
Plug 'tommcdo/vim-exchange' " adds exchange operator with cx. common use: cxiw . on 2 words to switch Plug 'tommcdo/vim-exchange' " adds exchange operator with cx. common use: cxiw . on 2 words to switch
Plug 'jiangmiao/auto-pairs' " Auto close brackets and '' Plug 'jiangmiao/auto-pairs' " Auto close brackets and ''
Plug 'junegunn/vim-easy-align' " Align tables and other alignable things
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] } " show a directory listing within vim Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] } " show a directory listing within vim
Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] } " show git status in nerdtree for files and dirs Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] } " show git status in nerdtree for files and dirs
@ -169,6 +170,9 @@ iabbrev waht what
iabbrev tehn then iabbrev tehn then
iabbrev whit with iabbrev whit with
iabbrev whith with iabbrev whith with
iabbrev grwoth growth
iabbrev teh the
iabbrev projcets projects
" Text expansion " Text expansion
iabbrev mo@ marty.oehme@gmail.com iabbrev mo@ marty.oehme@gmail.com

View file

@ -215,6 +215,7 @@ let g:wiki_mappings_global = {
\ '<plug>(wiki-tag-search)' : '<leader>=====================', \ '<plug>(wiki-tag-search)' : '<leader>=====================',
\ '<plug>(wiki-link-toggle-operator)' : '<leader>======================', \ '<plug>(wiki-link-toggle-operator)' : '<leader>======================',
\} \}
au Filetype markdown,pandoc nnoremap gf :ZettelOpenAtCursor<cr>
" Mostly dealing with Prose writing from here on out " Mostly dealing with Prose writing from here on out
" Format current Paragraph (esp useful in prose writing) " Format current Paragraph (esp useful in prose writing)
@ -257,3 +258,9 @@ nnoremap <localleader>po :DocCompileOpen<cr>
nnoremap <localleader>PO :DocCompileOpen!<cr> nnoremap <localleader>PO :DocCompileOpen!<cr>
nnoremap <localleader>o :DocOpen<cr> nnoremap <localleader>o :DocOpen<cr>
nnoremap <localleader>O :DocOpen!<cr> nnoremap <localleader>O :DocOpen!<cr>
" PLUGIN: easy-align
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)

View file

@ -34,3 +34,5 @@ artifactual
autarky autarky
Kyrgyzstan Kyrgyzstan
UNSC UNSC
plugin
Solidarność