- 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!
- 機器學習系統:設計和實現
- Visual Basic 6.0程序設計計算機組裝與維修
- 算法精粹:經典計算機科學問題的Java實現
- Vue.js 3.0源碼解析(微課視頻版)
- 前端架構:從入門到微前端
- Oracle從入門到精通(第5版)
- Java EE 8 Application Development
- Instant Ext.NET Application Development
- Go語言底層原理剖析
- C語言程序設計實訓教程與水平考試指導
- Python程序設計開發寶典
- Python自然語言理解:自然語言理解系統開發與應用實戰
- JavaScript從入門到精通(視頻實戰版)
- 你真的會寫代碼嗎
- Laravel Design Patterns and Best Practices