Joined March 2012
·
Posted to
Natural copying and pasting in Vim
over 1 year
ago
I don't like remapping C-c
/C-v
. I'm using <Leader>y
and <Leader>p
Posted to
Auto indent pasted code in vim
over 1 year
ago
instead of:
V`]
you can use:
gv
which reselect last select or paste.
Also, I'm not sure if I would like to have =
remapped, gv=
is still ok for me :)
edit:
I was wrong. gv will work only if p
or P
was used in visual mode.
I've got another mapping in my .vimrc:
noremap gV `[v`]
It would select last edited/pasted lines, so you can use gV=
Achievements
379 Karma
21,915 Total ProTip Views
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
wroc_love.rb
Attended the 2012 wroc_love.rb ruby conference.
You can also use arel:
With arel-helpers we can make it a little shorter:
And it's much more flexible since you can combine any
or
/and
groups