- Mastering Vim
- Ruslan Osipov
- 203字
- 2021-06-10 18:51:25
Changing text
By default you're in Vim's normal mode, meaning that every key press corresponds to a particular command. Hit i on your keyboard to enter an insert mode. This will display -- INSERT -- in a status line (at the bottom), (and, if you're using gVim, it will change the cursor from a block to a vertical line), as can be seen in the following example:

The insert mode behaves just like any other modeless editor. Normally, we wouldn't spend a lot of time in insert mode except for adding new text.
Let's create our Python application by typing in the following code. We'll be navigating this little snippet throughout this chapter:

To get back to normal mode in Vim, hit Esc on your keyboard. You'll see that -- INSERT -- has disappeared from the status line. Now, Vim is ready to take commands from you again!
- scikit-learn Cookbook
- 零起步玩轉掌控板與Mind+
- Spring Cloud Alibaba微服務架構設計與開發實戰
- Learn Programming in Python with Cody Jackson
- 高級C/C++編譯技術(典藏版)
- Learning ELK Stack
- Azure Serverless Computing Cookbook
- JSP程序設計實例教程(第2版)
- Vue.js應用測試
- App Inventor 2 Essentials
- 零基礎學C語言(升級版)
- App Inventor少兒趣味編程動手做
- Angular Design Patterns
- Java并發實現原理:JDK源碼剖析
- C/C++代碼調試的藝術(第2版)