Skip to content

Commit

Permalink
Fix placeholder selection after visual line mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tweekmonster committed Apr 1, 2017
1 parent 69a413a commit ae4552b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions autoload/clang2.vim
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,16 @@ function! s:select_placeholder(mode, dir) abort
call setpos("'<", p1)
call setpos("'>", p2)

let vkeys = 'gvze'
if visualmode() ==# 'V'
let vkeys = 'gvvze'
endif

if a:mode ==# 's'
return "\<c-g>gvze\<c-g>"
return "\<c-g>" . vkeys . "\<c-g>"
endif

return "\<esc>gvze\<c-g>"
return "\<esc>" . vkeys . "\<c-g>"
endfunction


Expand Down

0 comments on commit ae4552b

Please sign in to comment.