Tuesday, June 10, 2014

Having trouble grokking the g family of commands

Every time I discover a new command with a g prefix it makes me realize that I don't really understand the g prefix at all. I assume that the "g" means "go," like in gd it means go to declaration, or gg is go to top of file, and I've done :help g, but there is also g~, which is swap case for a motion, or ga which prints the ascii value of the character under the cursor.

Can anyone explain the language of the g family of commands to me? It seems like there are a lot of random, really useful things in there that I just can't discover because it doesn't seem to follow a pattern to me.

Thanks,
Chris

--
--
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/d/optout.

No comments: