Wiki

by yszheda

View project onGitHub

Tip 3: Take One Step Back, Then Three Forward

Return to the top: <<Practical Vim>>

  • f{char}: look ahead for the next occurrence of the specified character and then move the cursor directly to it if a match is found.
  • ;: repeat the last search.
  • s: deletes the character under the cursor and then enters Insert mode.

Example: padding each + sign with spaces

References:

# If you open the vimwik file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h f