mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-21 23:40:23 -05:00
Added the tabular plugin and mapped the mkd table format it allows
This commit is contained in:
parent
7eff0b4f65
commit
5ded6877c5
4 changed files with 7 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -91,3 +91,6 @@
|
|||
[submodule "vim/bundle/vim-fixkey"]
|
||||
path = vim/bundle/vim-fixkey
|
||||
url = https://github.com/drmikehenry/vim-fixkey.git
|
||||
[submodule "vim/bundle/tabular"]
|
||||
path = vim/bundle/tabular
|
||||
url = https://github.com/godlygeek/tabular
|
||||
|
|
|
@ -153,6 +153,7 @@ For a complete list of mappings specific to **darkcloud-vimconfig**, check the l
|
|||
* [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister) Replace text with the contents of a register (for paste+replace without writing over the buffer).
|
||||
* [SudoEdit.vim](https://github.com/vim-scripts/SudoEdit.vim) Read and write files without the necessary permissions through the use of sudo.
|
||||
* [syntastic](https://github.com/scrooloose/syntastic) Uses system compilers and parsers to check syntax either on-the-fly or after saving a compatible document.
|
||||
* [tabular](https://github.com/godlygeek/tabular) Vim script for text filtering and alignment.
|
||||
* [tagbar](https://github.com/majutsushi/tagbar) Uses ctags to generate a sidebar of the tags for the current file.
|
||||
* [tcommand_vim](https://github.com/tomtom/tcommand_vim) Select commands, menu items etc. from a list
|
||||
* [tlib_vim](https://github.com/tomtom/tlib_vim) Some utility functions for VIM
|
||||
|
|
1
vim/bundle/tabular
Submodule
1
vim/bundle/tabular
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 60f25648814f0695eeb6c1040d97adca93c4e0bb
|
|
@ -513,7 +513,7 @@
|
|||
vnoremap <silent><expr> <Leader>J '<Esc>:set tw=79<CR>gvgq:set tw=0<CR>:echo "Selected text has been formatted to a width of 79 characters"<CR>'
|
||||
nnoremap <Leader>f mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
||||
vnoremap <Leader>f mz=`z<CR>:echo "The selection has been formatted"<CR>
|
||||
nnoremap <Leader>F :Autoformat<CR><CR>:echo "The document has been formatted with :Autoformat"<CR>
|
||||
nnoremap <silent><expr> <Leader>F ':Autoformat<CR>:echo "The document has been formatted with :Autoformat"<CR>'
|
||||
nnoremap <silent><expr> <Leader>w ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
|
||||
nnoremap <silent><expr> <Leader>t ':retab<CR>:noh<CR>:echo "Tabs have been converted to spaces"<CR>'
|
||||
|
||||
|
@ -658,6 +658,7 @@
|
|||
"markdown: launch table of contents instead of the tagbar
|
||||
autocmd FileType mkd map <buffer> <silent><expr> <C-F3> ':Toch<CR>'
|
||||
autocmd FileType mkd map <buffer> <silent><expr> <A-F3> ':Toch<CR>'
|
||||
autocmd Filetype mkd nnoremap <buffer> <silent><expr> <Leader>F ':TableFormat<CR>:echo "Markdown tables have been formatted with :FormatTable"<CR>'
|
||||
|
||||
"markdown table of contents
|
||||
autocmd FileType qf map <buffer> <LeftMouse> <LeftMouse>0
|
||||
|
|
Loading…
Reference in a new issue