Learn VIM
  • Vim Hands-On Tutorial (Learning Vi and Vims)
  • Vim Hands-On Tutorial(Learning Vim)
    • Chapter 1: Cursor Movement
    • Chapter 2: Opening Files, Finding Content
    • Chapter 3: Modifying and Saving Files
    • Chapter 4: Some Tips
    • Chapter 5: Splitting Windows and Tabs
    • Chapter 6: Block Operations
    • Chapter 7: Vim Macros
    • Vim Modes
    • Vim Plugins
    • plugins
      • Airline & Themes
      • EasyAlign
      • Plugin Recommendations
      • NERDTree
      • surround.vim
  • Vim 实操教程(Learning Vim)
    • 第一章:光标移动
    • 第二章:打开文件、查找内容
    • 第三章:文档的修改与保存
    • 第四章:一些小技巧
    • 第五章:分屏与标签页
    • 第六章:块操作
    • 第七章:Vim 中的宏
    • Vim 的模式
    • Vim 插件
    • plugins
      • Airline & Themes
      • EasyAlign
      • 插件推荐
      • NERDTree
      • surround.vim
Powered by GitBook
On this page
  • Intro
  • How to Use
  • Formatting Rules
  • Index
  • Basic operations
  • Additional content
  • Recommend a few Vim configurations
  • Recommends a couple of other excellent Vim tutorials
  • Cheatsheets
  • Star History

Was this helpful?

Vim Hands-On Tutorial (Learning Vi and Vims)

NextVim Hands-On Tutorial(Learning Vim)

Last updated 1 year ago

Was this helpful?

GitHub Repo stars
GitHub
GitHub contributors
GitHub commit activity (branch)

|

Intro

In my personal experience of learning Vim, it is very difficult to learn Vim by reading documentation or watching other people operate it. You have to be in the real world, in real scenarios, to familiarize yourself with the commands and master them.

Therefore, to meet the needs of learning and operating at the same time, all the files in the project are in Markdown format, which can be read as an explanation document, and can also be opened in Vim. You can read it as an explanatory document, and you can also use Vim to open the files for actual operation (the latter is recommended).

How to Use

  1. clone project to local

git clone https://github.com/dofy/learn-vim.git
  1. go to the project folder

cd learn-vim/en
  1. open the file chapter01.md in Vim

vim chapter01.md

Formatting Rules


## Major titles represent a large category

### Subtitles represent subcategories under this major category

Text without any formatting is a normal description for reading purposes only.

> The text embedded in the quoted block is an instruction to operate, and you
> can follow what is mentioned in it
>
> Also operators or commands are included in symbols like `:w`.

The < and > in commands such as f<X> do not need to be typed, <X> represents a
variable, i.e. you can type fa or fb or fC

_Note: Commands are case-sensitive (matters requiring attention appear in
symbols such as the current line)_

[!NOTE]

# Do not load the configuration file
vim -u NONE
# Load a specific configuration file
vim -u <filename>

Index

Basic operations

Additional content

[!NOTE]

  • In the tutorials, you can navigate to the next chapter or related chapters, and locate the file name to open it by executing gf (goto file). Related files

  • You may get a file not saved error when you exit the tutorial with :q or :qa, try adding ! to the end of the command!

Recommend a few Vim configurations

Recommends a couple of other excellent Vim tutorials

  • Run vimtutor on the console. This is the official hands-on tutorial for Vim.

Cheatsheets

Star History

Thanks again for your interest! If you love, please share. Love life, love VIM!

If you already have your own .vimrc file (refer to ) and have changed some of the defaults in it, it may cause some operations to not match the tutorial. In this case, you can run Vim with the following command:

You can always open the relevant chapter to view, and then use :bp to go back to the previous file (this command will (This command is covered in ).

Great tutorial to get started!

Frequently updated, a must-read for Vim.

30 articles, the content is more complete!

Another Learn Vim (English)

Interactive Vim Tutorials

Vim cheatsheet

Chapter 4
Chapter 1: Cursor Movement
Chapter 2: Opening Files, Finding Content
Chapter 3: Modify and Save Documents
Chapter 4: Some Tips
Chapter 5: Split Screen and Tabs
Chapter 6: Block Operations
Chapter 7: Macros in Vim
Vim Modes
Vim plugins
Plugin Recommendations
NERDTree
EasyAlign
Airline & Themes
surround.vim
Chapter 2
dofy / 7th-vim
kepbod / ivim
chxuan / vimplus
SpaceVim / SpaceVim
Concise Vim Practice Tips
Vim Galore
Daily Vim
A book for learning the Vim editor
Open Vim
QuickRef.ME/vim
Vim Cheat Sheet
A Great Vim Cheat Sheet
🇺🇸 English
🇨🇳 简体中文