PracticalVim Tip104 - yszheda/wiki GitHub Wiki

Tip 104: Compile Code Without Leaving Vim

Return to the top: <>

References:

Don't Lose the Place

When we run the `:make` command, Vim automatically jumps to the first error (unless there are none). If we prefer that our cursor remain where it is, we can instead run this:

The trailing `!` character tells Vim to update the quickfix list without jumping to the first item.

⚠️ **GitHub.com Fallback** ⚠️