Skip to content

Commit 220de82

Browse files
committed
SO MANY NEW TEXT OBJECTS
This is all @christoomey's wonderful fault
1 parent 7f0344a commit 220de82

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tag-ruby/vim/plugins/ruby.vim

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ Plug 'tpope/vim-rails'
22
Plug 'vim-ruby/vim-ruby'
33
" Allow `cir` to change inside ruby block, etc
44
Plug 'nelstrom/vim-textobj-rubyblock'
5-
" required for vim-textobj-rubyblock
6-
Plug 'kana/vim-textobj-user'
75
Plug 'tpope/vim-rake'
86
Plug 'tpope/vim-projectionist'
97
Plug 'slim-template/vim-slim'

vim/plugins.vim

+11-2
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,24 @@ Plug 'tpope/vim-eunuch'
4444
Plug 'tpope/vim-surround'
4545
" Make `.` work to repeat plugin actions too
4646
Plug 'tpope/vim-repeat'
47-
" Gives you an `ae` text object, so `gcae` comments whole file
48-
Plug 'kana/vim-textobj-entire'
4947
" Access to Vim's powerful undo-tree with :GundoShow
5048
Plug 'vim-scripts/Gundo'
5149
" Intelligently reopen files where you left off
5250
Plug 'dietsche/vim-lastplace'
5351
" Instead of always copying to the system clipboard, use `cp` (plus motions) to
5452
" copy to the system clipboard. `cP` copies the current line. `cv` pastes.
5553
Plug 'christoomey/vim-system-copy'
54+
" gr to "go replace", "*griw to replace word with contents of system clipboard,
55+
" etc
56+
Plug 'vim-scripts/ReplaceWithRegister'
57+
58+
" Text objects
59+
" required for all the vim-textobj-* plugins
60+
Plug 'kana/vim-textobj-user'
61+
" `ae` text object, so `gcae` comments whole file
62+
Plug 'kana/vim-textobj-entire'
63+
" `l` text object for the current line excluding leading whitespace
64+
Plug 'kana/vim-textobj-line'
5665

5766
" Silly stuff, but I like it
5867
" Now I can put emoji in my statusbar

0 commit comments

Comments
 (0)