GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fratcn/learn-vim: Vim 实操教程(Learning Vim)Vim practical tutorial.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

148 Commits
148 Commits

Folders and files

NameName
Last commit message
Last commit date
plugins
plugins
 
 
README.md
README.md
 
 
SUMMARY.md
SUMMARY.md
 
 
_config.yml
_config.yml
 
 
file-five.md
file-five.md
 
 
file-four-demo.js
file-four-demo.js
 
 
file-four.md
file-four.md
 
 
file-one.md
file-one.md
 
 
file-seven.md
file-seven.md
 
 
file-six.md
file-six.md
 
 
file-three.md
file-three.md
 
 
file-two.md
file-two.md
 
 
plugin.md
plugin.md
 
 
vimrc.vim
vimrc.vim
 
 

Repository files navigation

Vim 实操教程(Learning Vim)

以我个人学习 Vim 的经验来看,通过看文档或看其他人操作其实是很难真正学会 Vim 的,你必须在实际 应用中,进入真实场景才能逐渐熟悉并掌握相关命令。

因此,为了同时满足学习和操作的需求,项目中的文件都采用了 Markdown 格式,既可以当作说明文档来 阅读,也可以用 Vim 打开文件进行实际操作(建议采用后者)。

如何使用

  1. 进入控制台
  2. clone 项目到本地

git clone [email protected]:dofy/learn-vim.git

  1. 进入项目文件夹

cd learn-vim

  1. 用 Vim 打开文件 file-one.md

vim file-one.md

排版规范

## 大标题表示一大类

### 小标题表示该大类下的小分类

没有任何格式的文本为正常描述,只有阅读功能。

> 嵌入到引用块中的文本为操作指示,你可以按照里面提到的内容进行操作
>
> 同时操作符或命令会包含在类似 `:w` 的符号中

命令中形如 f<X> 中的 < 和 > 不需要打出来,<X> 代表一个变量,即你可以打 fa 或 fb 亦或 fC

_注意:命令区分大小写(需要注意的事项会出现在当前行这样的符号中)_

导航

基础操作

  1. 光标的移动
  2. 打开文件、查找内容
  3. 文档的修改与保存
  4. 一些小技巧
  5. 分屏与标签页
  6. 块操作
  7. Vim 中的宏

附加内容

  1. Vim 插件
  2. 插件推荐
    1. NERDTree
    2. EasyAlign
    3. Airline & Themes
    4. surround.vim

Tips

  • 教程中会有下一章或相关章节的导航,定位到文件名执行 gf(goto file)就可以打开相关文件
  • 你可以随时打开相关章节查看,然后用 :bp 回到之前的文件(该命令会在第二章中讲到)
  • 当你用 :q 或 :qa 退出教程时可能会收到文件未保存的错误提醒,试试在命令后面加上 !

TODO

  • vimdiff
  • more settings
  • other mode
  • text object
  • plugins

推荐几个 Vim 配置方案

  • dofy / 7th-vim
  • kepbod / ivim
  • chxuan / vimplus
  • SpaceVim / SpaceVim

推荐另外几个出色的 Vim 教程

  • 控制台运行 vimtutor 这是 Vim 官方实操教程
  • 简明 Vim 练级攻略 很不错的入门教程
  • Vim Galore 更新频繁,Vim 进阶必读
  • 每日一Vim 共 30 篇,内容比较全
  • Vim 教程网 一个女生维护的 Vim 中文教程网站,持续更新中
  • A book for learning the Vim editor 另一个 Learn Vim (英语)

Cheatsheets

https://vim.rtorr.com

002

003

004

再次感谢您的关注!如果爱,请分享。爱生活,爱 VIM!

About

Vim 实操教程(Learning Vim)Vim practical tutorial.

dofy.gitbook.io/learn-vim/

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.