Guest User

Untitled

a guest
Jun 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. let g:surround_no_mappings = 1
  2. function! SurroundOp()
  3. if v:operator ==# 'd'
  4. return "<plug>Dsurround"
  5. elseif v:operator ==# 'c'
  6. return "<plug>Csurround"
  7. elseif v:operator ==# 'y'
  8. return "<plug>Ysurround"
  9. endif
  10. return ''
  11. endfunction
  12. omap <expr> s '<esc>'.SurroundOp()
Add Comment
Please, Sign In to add comment