Skip to content

Instantly share code, notes, and snippets.

@voyeg3r
Last active January 28, 2018 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voyeg3r/191f3af088d0e314aeae1c0ecc396aac to your computer and use it in GitHub Desktop.
Save voyeg3r/191f3af088d0e314aeae1c0ecc396aac to your computer and use it in GitHub Desktop.
getreg -> usado para pegar o valor de um registro
setreg -> usado para setar um registro
let @0 = substitute(@0,'\d\+','\=submatch(0) + 1','g') -> usado para incrementar os números do clipboard
normal yip ...... copia o bloco em modo normal
exec "normal }O\<Esc>p" -> cola o trecho incrementado abaixo do paragrafo atual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment