Vim Recipes
vim.runpaint.org
Vim Recipes
1–10 of 28 posts
Re: Vim Recipes
#2- ggVG: highlight the whole file
- jj: escape (this is in my .vimrc, not standard)
- xp: swap letters
- vab: highlight an s-exp (inluding the parens)
- gt: go to the next tab to the right
- gT: go to the next tab to the left
- :tabnew: open a new tab (you can also add a file after that)
- daw: delete a word
- das: deletes the sentence under the cursor
- dap: deletes the paragraph under the cursor
- vas: selects the sentence under the cursor
- ci(: deletes the inner content of a parens, puts you in insert mode
- q[key][whatever]q: records a macro
- @[key]: plays back the macro
- ZZ: save and close the current window
Re: Vim Recipes
#3This is pretty nice! My wish for these types of things - can you just put out a big list key combos to browse through? I know the basic concepts of vim but I just want to see how the commands can be strung together. Something like: - ggVG: highlight the whole file - jj: escape (this is in my .vimrc, not standard) - xp: swap letters - vab: highlight an s-exp (inluding the parens) - gt: go to the next tab to the right…
Then go to your nearest vim and do an
:he navigation
and
:he change.txt
to get a fantastic overview.
Re: Vim Recipes
#4This is pretty nice! My wish for these types of things - can you just put out a big list key combos to browse through? I know the basic concepts of vim but I just want to see how the commands can be strung together. Something like: - ggVG: highlight the whole file - jj: escape (this is in my .vimrc, not standard) - xp: swap letters - vab: highlight an s-exp (inluding the parens) - gt: go to the next tab to the right…
Re: Vim Recipes
#5Re: Vim Recipes
#6This is pretty nice! My wish for these types of things - can you just put out a big list key combos to browse through? I know the basic concepts of vim but I just want to see how the commands can be strung together. Something like: - ggVG: highlight the whole file - jj: escape (this is in my .vimrc, not standard) - xp: swap letters - vab: highlight an s-exp (inluding the parens) - gt: go to the next tab to the right…
Read this: http://stackoverflow.com/questions/1218390/what-is-your-most... Then go to your nearest vim and do an :he navigation and :he change.txt to get a fantastic overview.
Re: Vim Recipes
#7This is pretty nice! My wish for these types of things - can you just put out a big list key combos to browse through? I know the basic concepts of vim but I just want to see how the commands can be strung together. Something like: - ggVG: highlight the whole file - jj: escape (this is in my .vimrc, not standard) - xp: swap letters - vab: highlight an s-exp (inluding the parens) - gt: go to the next tab to the right…
Re: Vim Recipes
#8Earlier quoted context omitted.
Read this: http://stackoverflow.com/questions/1218390/what-is-your-most... Then go to your nearest vim and do an :he navigation and :he change.txt to get a fantastic overview.
Honestly, just reading through the help system in general is fascinating.
Re: Vim Recipes
#9Earlier quoted context omitted.
Read this: http://stackoverflow.com/questions/1218390/what-is-your-most... Then go to your nearest vim and do an :he navigation and :he change.txt to get a fantastic overview.
Honestly, just reading through the help system in general is fascinating.
1. Amazingly the documentation covers that odd topic!
2. Just knowing where to search is a big enough task a whole chatroom has essentially devoted itself to it.
3. No one thinks it odd that vim is a big enough, esoteric enough space that being a fancy search bot doesn't bother people.
:)
Re: Vim Recipes
#10This is pretty nice! My wish for these types of things - can you just put out a big list key combos to browse through? I know the basic concepts of vim but I just want to see how the commands can be strung together. Something like: - ggVG: highlight the whole file - jj: escape (this is in my .vimrc, not standard) - xp: swap letters - vab: highlight an s-exp (inluding the parens) - gt: go to the next tab to the right…