Skip to content

Commit

Permalink
Adding a set of bundles for Writing in Vim
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Apr 2, 2014
1 parent 3d430e5 commit ae2fe5a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@
map zl zL
map zh zH
" Easier formatting
nnoremap <silent> <leader>q gwip
" FIXME: Revert this f70be548
" fullscreen mode for GVIM and Terminal, need 'wmctrl' in you PATH
map <silent> <F11> :call system("wmctrl -ir " . v:windowid . " -b toggle,fullscreen")<CR>
Expand All @@ -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
Expand Down
14 changes: 13 additions & 1 deletion .vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -130,6 +130,18 @@
Bundle 'mhinz/vim-signify'
Bundle 'tpope/vim-abolish.git'
Bundle 'osyo-manga/vim-over'
Bundle 'justinmk/vim-sneak'

This comment has been minimized.

Copy link
@JoveYu

JoveYu Apr 24, 2014

Contributor

why add 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
" }

Expand Down

0 comments on commit ae2fe5a

Please sign in to comment.