Skip to content

Instantly share code, notes, and snippets.

@mopp
Created December 21, 2013 19:19
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 mopp/8073672 to your computer and use it in GitHub Desktop.
Save mopp/8073672 to your computer and use it in GitHub Desktop.
let s:right = 1
let s:left = 2
function! s:slide(direction)
let store_registor = @"
execute "normal yi, W"
let source = @"
execute "normal yi,"
let dist = @"
let @" = source
execute "normal _i, bbb"
let @" = dist
execute "normal _i,"
let @" = store_registor
endfunction
function! s:mop(name, mpp)
endfunction
command! SlideParam call s:slide(s:right)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment