Skip to content

Commit

Permalink
Move back to first row and column after splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
bobwhitelock committed Aug 16, 2016
1 parent 9325f91 commit 7400ff0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/visual-split.vim
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ function! s:visual_lines_between(line1, line2)
let l:previous_col = col('.')
endwhile

" Move to back to first row and column of selection.
call cursor(a:line1, 1)

return l:visual_lines
endfunction

Expand Down

0 comments on commit 7400ff0

Please sign in to comment.