Advertisement
Guest User

Untitled

a guest
Jul 5th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.46 KB | None | 0 0
  1. function! s:BlankUp(count) abort
  2.   :norm mz
  3.   put!=repeat(nr2char(10), a:count)
  4.   silent! call repeat#set("\<Plug>unimpairedBlankUp", a:count)
  5.   :norm `z
  6. endfunction
  7.  
  8. function! s:BlankDown(count) abort
  9.   :norm mz
  10.   put =repeat(nr2char(10), a:count)
  11.   silent! call repeat#set("\<Plug>unimpairedBlankDown", a:count)
  12.   :norm `z
  13. endfunction
  14.  
  15. nnoremap <C-Enter>   :<C-U>call <SID>BlankDown(v:count1)<CR>
  16. nnoremap <C-S-Enter> :<C-U>call <SID>BlankUp(v:count1)<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement