Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vimtutor #28

Open
wangbinyq opened this issue Nov 12, 2018 · 0 comments
Open

vimtutor #28

wangbinyq opened this issue Nov 12, 2018 · 0 comments
Labels

Comments

@wangbinyq
Copy link
Owner

  • move: hjkl
  • delete: d
  • replace: r
  • change: c
  • undo: u
  • redo: ctrl+r
  • go to line: # gg
  • go to bottom: gg
  • go to top: G
  • back to last position: ctrl + o
  • forward to next position: ctrl + i
  • search: / or ?
  • match parenthesis: %
  • replace: :s/old/new/
    • replace line: :s/old/new/g
    • replace between line :#,#s/old/new/g
    • replace in whole file: :%s/old/new/g
    • replace in whole file with prompt: :%s/old/new/gc
  • external command: :!command
  • save part of file: v + w
  • retrieving and merging from external
@wangbinyq wangbinyq added the note label Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant