diff --git a/blog/2024-06-22-vim-tips.md b/blog/2024-06-22-vim-tips.md index c68bfe7..8a76573 100644 --- a/blog/2024-06-22-vim-tips.md +++ b/blog/2024-06-22-vim-tips.md @@ -37,6 +37,35 @@ or if multiple windows are opened close them all :qa ``` +### Navigatig + +Beyond normal vim movements like scrolling with +``` +ctrl + f +``` +and scrolling backward with +``` +ctrl + b +``` +there are several especially useful if you edit code + +*gd* or *gD* for go to definition of a function variable etc. + +After that you can use go back to last cursor position with + +``` +ctl+o +``` + +and forward to last position with + + +``` +ctl+i +``` + + + ### Split windows and navigate between them The magic command to split vertically is :vsplit command