我经常在 vim 中进行视觉选择以移动右/左代码行。Vim 总是让我在轮班后排在最前面。我想要的是一种到达最底线的简单方法。有没有办法做到这一点?
例如
# before
puts 'hello'
puts 'oops i messed up # visual select to indent
puts 'and need to indent' # visual select to indent
puts 'these three lines' # visual select to indent
# after
puts 'hello'
puts 'oops i messed up # cursor ends up here
puts 'and need to indent'
puts 'these three lines' # but i want it here