- 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!
- Apache Oozie Essentials
- Java應用與實戰(zhàn)
- SoapUI Cookbook
- Python 深度學習
- Java Web開發(fā)之道
- INSTANT Sinatra Starter
- 微服務架構深度解析:原理、實踐與進階
- Scala編程(第5版)
- SQL Server 入門很輕松(微課超值版)
- 貫通Tomcat開發(fā)
- Appcelerator Titanium:Patterns and Best Practices
- Python第三方庫開發(fā)應用實戰(zhàn)
- PHP+MySQL Web應用開發(fā)教程
- Leaflet.js Essentials
- C++ Data Structures and Algorithm Design Principles