mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-21 14:32:32 -05:00
Remove vim-autoformat
This commit is contained in:
parent
83ae0905c3
commit
33089160ad
4 changed files with 3 additions and 19 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -61,9 +61,6 @@
|
|||
[submodule "vim/bundle/autoswap.vim"]
|
||||
path = vim/bundle/autoswap.vim
|
||||
url = https://github.com/vim-scripts/autoswap.vim.git
|
||||
[submodule "vim/bundle/vim-autoformat"]
|
||||
path = vim/bundle/vim-autoformat
|
||||
url = https://github.com/Chiel92/vim-autoformat.git
|
||||
[submodule "vim/bundle/vim-polyglot-darkcloud"]
|
||||
path = vim/bundle/vim-polyglot-darkcloud
|
||||
url = https://github.com/prurigro/vim-polyglot-darkcloud.git
|
||||
|
|
|
@ -11,13 +11,9 @@ A theme, config and collection of plugins for Vim.
|
|||
|
||||
## Optional Requirements ##
|
||||
|
||||
* **Artistic Style**: Required by the _autoformat_ plugin to format C, C++, C++/CLI, C#, and Java source ([astyle website](http://astyle.sourceforge.net)).
|
||||
* **autopep8**: Required by the _autoformat_ plugin to format Python using the PEP 8 style guide ([autopep8 repo](https://github.com/hhatto/autopep8)).
|
||||
* **Compilers and Runtimes**: The syntastic plugin can use the compiler or runtime for most languages to provide real-time syntax checking.
|
||||
* **CTags**: Required by the _tagbar_ and _neocomplcache_ plugins as well as the _gentags_ script ([ctags website](http://ctags.sourceforge.net)).
|
||||
* **JS Beautifier**: Required by the _autoformat_ plugin to format Javascript source and HTML ([js-beautify repo](https://github.com/Chiel92/vim-autoformat)).
|
||||
* **Powerline Fonts**: Required to enable the fancier looking status line ([powerline-fonts repo](https://github.com/Lokaltog/powerline-fonts)).
|
||||
* **Tidy**: Required by the _autoformat_ plugin to format XHTML and XML ([tidy website](http://tidy.sourceforge.net)).
|
||||
|
||||
## Distribution Features ##
|
||||
|
||||
|
@ -137,8 +133,7 @@ As usual, to have your system use `vimpager` in place of `less`, you'll need to
|
|||
|----------|------|---------------------------------------------------------------|
|
||||
| Leader+J | N+V | Format line/selected lines to a max width of the _textwidth_ |
|
||||
| Leader+f | N+V | Format document/selection alignment using Vim syntax |
|
||||
| Leader+F | N | Format based on file-type using Autoformat |
|
||||
| Leader+F | N+V | (Markdown) Format table cursor is currently on |
|
||||
| Leader+f | N+V | (Markdown) Format table cursor is currently on |
|
||||
| Leader+t | N | Convert all tabs into spaces and continue session with spaces |
|
||||
| Leader+T | N | Convert all spaces into tabs and continue session with tabs |
|
||||
| Leader+w | N | Remove all trailing whitespace |
|
||||
|
@ -159,7 +154,6 @@ For a complete list of mappings specific to **darkcloud-vimconfig**, check the l
|
|||
|
||||
## Plugins ##
|
||||
|
||||
* [auto-autoformat](https://github.com/Chiel92/vim-autoformat): Provides easy code formatting in Vim by integrating existing code formatters.
|
||||
* [autoswap.vim](https://github.com/vim-scripts/autoswap.vim): Switch to open editor window instead of asking what to do with swapfile.
|
||||
* [emmet-vim](https://github.com/mattn/emmet-vim): Support for expanding abbreviations.
|
||||
* [webapi-vim](https://github.com/mattn/webapi-vim): A web library used by emmet to provide support for custom snippets.
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 5ed4c3cfcbe1df13560db3b29da039a41631711b
|
|
@ -201,7 +201,6 @@
|
|||
" <Leader>J | (V) -> split selection into lines of tw or 80
|
||||
" <Leader>f | (N) -> format document and return to cursor
|
||||
" <Leader>f | (V) -> format the selection and return to cursor
|
||||
" <Leader>F | (N) -> format document using :Autoformat
|
||||
" <Leader>t | (N) -> convert tabs into spaces
|
||||
" <Leader>T | (N) -> convert spaces into tabs
|
||||
" <Leader>w | (N) -> remove whitespace
|
||||
|
@ -726,7 +725,6 @@
|
|||
"format by Vim syntax + by Autoformat tool syntax
|
||||
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 <silent><expr> <Leader>F ':Autoformat<CR>:echo "The document has been formatted with :Autoformat"<CR>'
|
||||
|
||||
"convert tabs to spaces and spaces to tabs
|
||||
nnoremap <silent><expr> <Leader>t ':let b:et=&expandtab<CR>:set expandtab<CR>:retab!<CR>:let &expandtab=b:et<CR>:echo "Tabs have been converted to spaces"<CR>'
|
||||
|
@ -846,13 +844,9 @@
|
|||
autocmd FileType help map <buffer> <silent><expr> <Leader>? ':q<CR>'
|
||||
endif
|
||||
|
||||
"html
|
||||
"after running autoformat, remove linebreaks that aren't between tags
|
||||
autocmd FileType html,xhtml nnoremap <buffer> <silent><expr> <Leader>F ':Autoformat<CR>:%s/\n\s*\([^<\ ]\)/ \1/g<CR>:echo "The document has been formatted with :Autoformat"<CR>'
|
||||
|
||||
"markdown
|
||||
autocmd FileType mkd nnoremap <buffer> <silent><expr> <Leader>F ':TableFormat<CR>'
|
||||
autocmd FileType mkd xnoremap <buffer> <silent><expr> <Leader>F '<Esc>:TableFormat<CR>gv'
|
||||
autocmd FileType mkd nnoremap <buffer> <silent><expr> <Leader>f ':TableFormat<CR>'
|
||||
autocmd FileType mkd xnoremap <buffer> <silent><expr> <Leader>f '<Esc>:TableFormat<CR>gv'
|
||||
|
||||
"qf-sidebar
|
||||
autocmd FileType qf map <buffer> <LeftMouse> <LeftMouse>0
|
||||
|
|
Loading…
Reference in a new issue