- CentOS 7 Linux Server Cookbook(Second Edition)
- Oliver Pelz Jonathan Hobson
- 267字
- 2021-07-23 14:28:51
Introduction to Vim
In this recipe, we will give you a very brief introduction to the text editor, Vim, which is used as the standard text editor throughout this book. You can also use any other text editor you prefer, such as nano or emacs, instead.
Getting ready
To complete this recipe, you will require a working installation of the CentOS 7 operating system with root privileges.
How to do it...
We will start this recipe by installing the vim-enhanced
package, as it contains a tutorial you can use to learn working with Vim:
- To begin, log in as root and install the following package:
yum install vim-enhanced
- Afterwards, type the following command to start the Vim tutorial:
vimtutor
- This will open the Vim tutorial in the Vim editor. To navigate, press the up and down key to scroll up and down single-line wise. To exit the tutorial, press the Esc key, then type
:q!
, followed by the Return key to exit. - You should now read through the file and go through the lessons to get a basic understanding of Vim, to learn how to edit your text documents.
How it works...
The tutorial shown in this recipe should be seen as a starting point from which to learn the basics for working with one of the most powerful and effective text editors available for Linux. Vim has a very steep learning curve, but after dedicating about half an hour to the vimtutor guide you should be able to do all the common text editing tasks without any problem, such as opening, editing, and saving text files.
- Django+Vue.js商城項目實戰
- HTML5移動Web開發技術
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Linux環境編程:從應用到內核
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- AutoCAD VBA參數化繪圖程序開發與實戰編碼
- Python編程:從入門到實踐
- UVM實戰
- 第一行代碼 C語言(視頻講解版)
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- 圖數據庫實戰
- Mastering Git
- Kubernetes進階實戰
- PHP 8從入門到精通(視頻教學版)
- Python編程入門(第3版)