Marco <netuse@lavabit.com> a écrit:
> Hi,
>
> I often need to uncomment or copy a C function and I wonder if
> there's a motion for that. What I do at the moment is
>
> [[{v][y
>
> which seems rather verbose and a lot to type for just "copy this
> function".
You can use an omap to do the same (with linewise visual mode to include the
closing brace):
onoremap af :<C-U>normal! [[{V][<CR>
Then yaf yanks the current function.
Best,
Paul
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, March 22, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment