blog icon indicating copy to clipboard operation
blog copied to clipboard

Vim Basic

Open qingquan-li opened this issue 2 years ago • 0 comments

Vim Configuration

References:

  • https://vimconfig.com/
  • https://www.shortcutfoo.com/blog/top-50-vim-configuration-options/
  • https://www.freecodecamp.org/news/vimrc-configuration-guide-customize-your-vim-editor/

My Vim configuration:

https://gist.github.com/Qingquan-Li/b4eae570d054fd48495d73efa04d6a86


Vim commands

References:

  • https://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/
  • https://www.shortcutfoo.com/app/dojos/vim/cheatsheet
  • vim_cheat_sheet_for_programmers_print

Copy all text to system clipboard:

Use : % y + command to copy

  • % to refer the next command to work on all the lines
  • y to yank those lines
  • + to copy to the system clipboard

Another way is g g " + y G

qingquan-li avatar Jan 01 '23 22:01 qingquan-li