Loading .gitmodules +0 −3 Original line number Diff line number Diff line Loading @@ -80,9 +80,6 @@ [submodule ".vim/bundle/vim-go"] path = .vim/bundle/vim-go url = https://github.com/fatih/vim-go.git [submodule ".vim/bundle/vim-autoformat"] path = .vim/bundle/vim-autoformat url = https://github.com/Chiel92/vim-autoformat.git [submodule ".vim/bundle/editorconfig-vim"] path = .vim/bundle/editorconfig-vim url = https://github.com/editorconfig/editorconfig-vim.git vim-autoformat @ d529e3e0 Compare d529e3e0 to d529e3e0 Original line number Diff line number Diff line Subproject commit d529e3e09a378695367969bf01735b9b997014ec .vim/plugin/autoformat.vimdeleted 100644 → 0 +0 −27 Original line number Diff line number Diff line let g:autoformat_autoindent = 0 let g:autoformat_retab = 0 let g:autoformat_remove_trailing_spaces = 0 function s:formatdef_electric() if &l:expandtab == 0 let cmd = "electric" else let cmd = "black" endif let cmd .= " - --quiet --line-length=".&l:textwidth return '"'.cmd.'"' endfunction let g:formatters_python = ['electric'] augroup autoformat au BufNewFile,BufRead *.py \ :let b:formatdef_electric = <SID>formatdef_electric() au BufNewFile,BufRead *.py \ :au OptionSet expandtab \ :let b:formatdef_electric = <SID>formatdef_electric() au BufNewFile,BufRead *.py \ :au OptionSet textwidth \ :let b:formatdef_electric = <SID>formatdef_electric() au BufWritePre *.py :Autoformat augroup END Loading
.gitmodules +0 −3 Original line number Diff line number Diff line Loading @@ -80,9 +80,6 @@ [submodule ".vim/bundle/vim-go"] path = .vim/bundle/vim-go url = https://github.com/fatih/vim-go.git [submodule ".vim/bundle/vim-autoformat"] path = .vim/bundle/vim-autoformat url = https://github.com/Chiel92/vim-autoformat.git [submodule ".vim/bundle/editorconfig-vim"] path = .vim/bundle/editorconfig-vim url = https://github.com/editorconfig/editorconfig-vim.git
vim-autoformat @ d529e3e0 Compare d529e3e0 to d529e3e0 Original line number Diff line number Diff line Subproject commit d529e3e09a378695367969bf01735b9b997014ec
.vim/plugin/autoformat.vimdeleted 100644 → 0 +0 −27 Original line number Diff line number Diff line let g:autoformat_autoindent = 0 let g:autoformat_retab = 0 let g:autoformat_remove_trailing_spaces = 0 function s:formatdef_electric() if &l:expandtab == 0 let cmd = "electric" else let cmd = "black" endif let cmd .= " - --quiet --line-length=".&l:textwidth return '"'.cmd.'"' endfunction let g:formatters_python = ['electric'] augroup autoformat au BufNewFile,BufRead *.py \ :let b:formatdef_electric = <SID>formatdef_electric() au BufNewFile,BufRead *.py \ :au OptionSet expandtab \ :let b:formatdef_electric = <SID>formatdef_electric() au BufNewFile,BufRead *.py \ :au OptionSet textwidth \ :let b:formatdef_electric = <SID>formatdef_electric() au BufWritePre *.py :Autoformat augroup END