This vim tip may be useful
From COMMAND mode, to close a file discarding any changes type q!
| Postodon | https://github.com/BNolet/postodon |
| Creator | @brandon |
| Donate if you like vimtips | https://liberapay.com/BNolet/ |
| Fueled by coffee ☕ | https://www.buymeacoffee.com/linuxliaison |
This vim tip may be useful
From COMMAND mode, to close a file discarding any changes type q!
Quit vim by typing ESC, :q, ENTER. Also, try this:
From COMMAND mode, to save your changes to a file type w
Try this in vim
From COMMAND mode, to close a file discarding any changes type q!
Vim tip of the day!
From COMMAND mode, to search and replace globally type %s/<regex or search term>/<replace term>/g<optional nc for confirmation>
Vim Tips Bot says to try this:
Can't remember where you left off? Use `g;` to plop your cursor back to the last edit in the file