Skip to content

Instantly share code, notes, and snippets.

@tobihans
Forked from jasonngpt/vim_f_key
Created February 3, 2023 09:55
Show Gist options
  • Save tobihans/31799ae510e972d78bd373bcc37c8068 to your computer and use it in GitHub Desktop.
Save tobihans/31799ae510e972d78bd373bcc37c8068 to your computer and use it in GitHub Desktop.
Vim F key
If you press the "f" key in normal mode, Vim will move the cursor forward to whatever character you input after "f" is pressed. As an example, consider the following line:
a quick brown fox
If the cursor was at the absolute beginning of the line, and you pressed "fb" in normal mode, Vim would move the cursor so that it was positioned over the "b" in "brown".
If you press "F", Vim will move the cursor backwards instead of forward. Given the previous sentence, if pressed "Fq", and the cursor was at the end of the line, it would move to the "q" in "quick".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment