Vim’s Visual mode allows us to define a selection of text and then operate upon it.
ways to enabling visual modes:
1 2 3 4 | |
the ‘gv’ command isreselects the range of text that was last selected in Visual mode. No matter whether the previous selection was character-wise, line-wise, or block-wise, the gv command should do the right thing. The only case where it might get confused is if the last selection has since been deleted.
if there is a html tag, like “three”, type vit in normal mode, will get you put your cursor into the ‘h’ character of the word “three”. vit means “visually select inside the tag”