Skip to content

Instantly share code, notes, and snippets.

@TerryFunggg
Last active May 13, 2021 06:38
Show Gist options
  • Save TerryFunggg/d439afb4967b8b7d2f1e8bff7d57e21e to your computer and use it in GitHub Desktop.
Save TerryFunggg/d439afb4967b8b7d2f1e8bff7d57e21e to your computer and use it in GitHub Desktop.

Keymaps

change content quickly

let say you are doing web development:

<a href="www.google.com">link</a>

we want to change the google link to github link. we use h j k l move to href, and then press "v" to select the google link, press "c" to change it to 'www.github.com" Instead, we can just type below at the line any position

c i "

it will move the google link and in the insert mode.

open files

vim $(ls | tail -1)

This command can open the last file without type the name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment