Reset all changes to a file
Using tpope’s Fugitive plugin, you can easily reset a file back to it’s checked-in state with :Gread
.
Using tpope’s Fugitive plugin, you can easily reset a file back to it’s checked-in state with :Gread
.
A very common practice when refactoring code is deleting entire methods or code blocks en masse. One might be tempted to use visual select mode to select multiple lines, or simply to mash dd
. But Vim makes deleting code blocks easy with dap
. You can remember this as “Delete A Paragraph”.