diff --git a/.vimrc b/.vimrc index 5aed211eb..7c2c61de8 100644 --- a/.vimrc +++ b/.vimrc @@ -393,6 +393,9 @@ map zl zL map zh zH + " Easier formatting + nnoremap q gwip + " FIXME: Revert this f70be548 " fullscreen mode for GVIM and Terminal, need 'wmctrl' in you PATH map :call system("wmctrl -ir " . v:windowid . " -b toggle,fullscreen") @@ -401,6 +404,28 @@ " Plugins { + " TextObj Sentence { + if count(g:spf13_bundle_groups, 'writing') + augroup textobj_sentence + autocmd! + autocmd FileType markdown call textobj#sentence#init() + autocmd FileType textile call textobj#sentence#init() + autocmd FileType text call textobj#sentence#init() + augroup END + endif + " } + + " TextObj Quote { + if count(g:spf13_bundle_groups, 'writing') + augroup textobj_quote + autocmd! + autocmd FileType markdown call textobj#quote#init() + autocmd FileType textile call textobj#quote#init() + autocmd FileType text call textobj#quote#init({'educate': 0}) + augroup END + endif + " } + " PIV { let g:DisableAutoPHPFolding = 0 let g:PIVAutoClose = 0 diff --git a/.vimrc.bundles b/.vimrc.bundles index f3f6f2dd2..1ac200ee4 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -91,7 +91,7 @@ " In your .vimrc.before.local file " list only the plugin groups you will use if !exists('g:spf13_bundle_groups') - let g:spf13_bundle_groups=['general', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala'] + let g:spf13_bundle_groups=['general', 'writing', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala'] endif " To override all the included bundles, add the following to your @@ -130,6 +130,18 @@ Bundle 'mhinz/vim-signify' Bundle 'tpope/vim-abolish.git' Bundle 'osyo-manga/vim-over' + Bundle 'justinmk/vim-sneak' + Bundle 'kana/vim-textobj-user' + Bundle 'kana/vim-textobj-indent' + endif + " } + + " Writing { + if count(g:spf13_bundle_groups, 'writing') + Bundle 'reedes/vim-litecorrect' + Bundle 'reedes/vim-textobj-sentence' + Bundle 'reedes/vim-textobj-quote' + Bundle 'reedes/vim-wordy' endif " }