Skip to content

Commit ae2fe5a

Browse files
committed
Adding a set of bundles for Writing in Vim
1 parent 3d430e5 commit ae2fe5a

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.vimrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@
393393
map zl zL
394394
map zh zH
395395
396+
" Easier formatting
397+
nnoremap <silent> <leader>q gwip
398+
396399
" FIXME: Revert this f70be548
397400
" fullscreen mode for GVIM and Terminal, need 'wmctrl' in you PATH
398401
map <silent> <F11> :call system("wmctrl -ir " . v:windowid . " -b toggle,fullscreen")<CR>
@@ -401,6 +404,28 @@
401404

402405
" Plugins {
403406

407+
" TextObj Sentence {
408+
if count(g:spf13_bundle_groups, 'writing')
409+
augroup textobj_sentence
410+
autocmd!
411+
autocmd FileType markdown call textobj#sentence#init()
412+
autocmd FileType textile call textobj#sentence#init()
413+
autocmd FileType text call textobj#sentence#init()
414+
augroup END
415+
endif
416+
" }
417+
418+
" TextObj Quote {
419+
if count(g:spf13_bundle_groups, 'writing')
420+
augroup textobj_quote
421+
autocmd!
422+
autocmd FileType markdown call textobj#quote#init()
423+
autocmd FileType textile call textobj#quote#init()
424+
autocmd FileType text call textobj#quote#init({'educate': 0})
425+
augroup END
426+
endif
427+
" }
428+
404429
" PIV {
405430
let g:DisableAutoPHPFolding = 0
406431
let g:PIVAutoClose = 0

.vimrc.bundles

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
" In your .vimrc.before.local file
9292
" list only the plugin groups you will use
9393
if !exists('g:spf13_bundle_groups')
94-
let g:spf13_bundle_groups=['general', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala']
94+
let g:spf13_bundle_groups=['general', 'writing', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala']
9595
endif
9696

9797
" To override all the included bundles, add the following to your
@@ -130,6 +130,18 @@
130130
Bundle 'mhinz/vim-signify'
131131
Bundle 'tpope/vim-abolish.git'
132132
Bundle 'osyo-manga/vim-over'
133+
Bundle 'justinmk/vim-sneak'
134+
Bundle 'kana/vim-textobj-user'
135+
Bundle 'kana/vim-textobj-indent'
136+
endif
137+
" }
138+
139+
" Writing {
140+
if count(g:spf13_bundle_groups, 'writing')
141+
Bundle 'reedes/vim-litecorrect'
142+
Bundle 'reedes/vim-textobj-sentence'
143+
Bundle 'reedes/vim-textobj-quote'
144+
Bundle 'reedes/vim-wordy'
133145
endif
134146
" }
135147

0 commit comments

Comments
 (0)