diff --git a/readme.md b/readme.md index f46b311..ea957d8 100644 --- a/readme.md +++ b/readme.md @@ -181,4 +181,3 @@ For a complete list of mappings specific to **darkcloud-vimconfig**, check the l ## Credits * By Kevin MacMartin: [GitHub Projects](https://github.com/prurigro?tab=repositories) | [Arch Linux AUR Packages](https://aur.archlinux.org/packages/?SeB=m&K=prurigro) -* The [vim-markdown](https://github.com/plasticboy/vim-markdown) plugin **TableFormat** command, used to format tables in markdown files, was pulled into [plugins.vim](https://github.com/prurigro/darkcloud-vimconfig/blob/master/vim/config/plugins.vim) from [ftplugin/mkd](https://github.com/plasticboy/vim-markdown/blob/master/ftplugin/mkd.vim). diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 630ad2b..09a1e59 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -197,10 +197,6 @@ " ?> | (A) -> close the dialog " ?< | (A) -> close the dialog " -" (markdown) -" f | (N) -> format a table -" f | (V) -> format a table -" " (error/location list) " | (A) -> up " | (A) -> down @@ -662,10 +658,6 @@ autocmd FileType help map ? ':q' endif - "markdown - autocmd FileType markdown nnoremap f ':TableFormat' - autocmd FileType markdown xnoremap f ':TableFormatgv' - "error/location list autocmd FileType qf map autocmd FileType qf map diff --git a/vim/config/plugins/tabular.vim b/vim/config/plugins/tabular.vim deleted file mode 100644 index 98a2a56..0000000 --- a/vim/config/plugins/tabular.vim +++ /dev/null @@ -1,16 +0,0 @@ -"This Tabular TableFormat() function is taken from the -"vim-markdown project by plasticboy, which can be found -"at https://github.com/plasticboy/vim-markdown and is -"licensed with the MIT license. -function! s:TableFormat() - let l:pos = getpos('.') - normal! { - call search('|') - normal! j - s/[^|]//g - Tabularize /| - s/ /-/g - call setpos('.', l:pos) -endfunction - -command! -buffer TableFormat call s:TableFormat()