vim 使用介绍

频道

❤❤ Vim 中文社区:github 频道Vim 中文社区:官网

文章

  1. Learn-Vim-Progressively
  2. Learn Vimscript the Hard Way: https://github.com/sjl/learnvimscriptthehardwayhttps://www.w3cschool.cn/vim/ljkpbozt.html(中文版:笨方法学 Vimscript)
  3. ❤ VIM 用户手册(中文):http://vimcdoc.sourceforge.net/doc/usr_41.html
  4. Rust:vim 环境配置
  5. 【知乎专栏】VIM学习笔记:https://www.zhihu.com/column/learn-vim
  6. 十多年用户对比 vim 和 emacs:https://phaazon.net/blog/editors-in-2021

    编写插件

    视频:

  7. Create Neovim Plugins with Lua:https://www.youtube.com/watch?v=wkxtHV1hzEY

    cheat sheet

    vim:使用记录 - 图2

    src: http://people.csail.mit.edu/vgod/vim/vim-cheat-sheet-en.png
    vim:使用记录 - 图3
    src: https://cdn.shopify.com/s/files/1/0165/4168/files/preview.png
    vim_cheat_sheet_for_programmers_screen.png
    src: http://michael.peopleofhonoronly.com/vim/vim_cheat_sheet_for_programmers_screen.png
    vim:使用记录 - 图5
    src: https://www.rosipov.com/images/posts/vim-movement-commands-cheatsheet.png
    vi-vim-cheat-sheet.png
    vi_tutorial-QWERTY-Color.pdf
    vi-vim-tutorial-svg.zip
    src: http://www.viemu.com/vi-vim-cheat-sheet.gif
    vi-vim-cheat-sheet-sch.png
    src: http://blog.ngedit.com/vi-vim-cheat-sheet-sch.gif

零碎的命令

ci( 改变括号内的文本,读做 change inner parentheses
dap 删除整个段落的内容,读做:delete around paragraph
C-F 向下翻页
C-B 向上翻页
Vim 自带一个交互式的教程,内含你需要了解的最基础的信息,你可以通过终端运行以下命令打开教程:

  1. $ vimtutor

image.pngimage.png
image.png

工具

  1. vim 插件大全:https://vimawesome.com/
  2. vimgolf:vim 使用测试
  3. vim-terminal-help:国人写的 vim 内置终端小工具
  4. asyncrun.vim:异步终端执行
  5. http://yyq123.github.io/learn-vim/learn-vim-plugin.html

vundle 安装本地 git 插件:

  1. Plugin 'file:///home/gmarik/path/to/plugin'