diff --git a/README.md b/README.md index bc2b30f..65690c2 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1467 TILs and counting..._ +_1468 TILs and counting..._ --- @@ -1656,6 +1656,7 @@ _1467 TILs and counting..._ - [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md) - [Swapping Split Windows](vim/swapping-split-windows.md) - [Swap The Position Of Two Split Windows](vim/swap-the-position-of-two-split-windows.md) +- [Switch Moving End Of Visual Selection](vim/switch-moving-end-of-visual-selection.md) - [Tabs To Spaces](vim/tabs-to-spaces.md) - [The Vim Info File](vim/the-vim-info-file.md) - [Toggle Absolute And Relative Paths In BufExplorer](vim/toggle-absolute-and-relative-paths-in-bufexplorer.md) diff --git a/vim/switch-moving-end-of-visual-selection.md b/vim/switch-moving-end-of-visual-selection.md new file mode 100644 index 0000000..d891409 --- /dev/null +++ b/vim/switch-moving-end-of-visual-selection.md @@ -0,0 +1,17 @@ +# Switch Moving End Of Visual Selection + +When I go into character-wise visual selection mode, one end of the visual +selection is fixed while I move my cursor around to define the other end of it. + +Let's say I've arranged a visual selection that encompasses several lines of my +file. And then I realize that the fixed front-end of my visual selection is off +by a bit. Maybe I've selected an entire function definition and I just want to +inner part of the function. + +Instead of starting over with my visual selection. I can leave the right-end of +the visual selection where it is, hit `o` which will switch the moving end to +the other side, and then continue making adjustments from there. + +I can always hit `o` again to switch it back to the original side. + +See `:h v_o` for more details.