Welcome to YDLIDAR 4ROS LiDAR repository
4.Ubuntu common editors
4.Ubuntu common editors
4.1Editor
4.1.1、vim
vim is an upgraded version of vi. The most common difference is that it can display some special information of system files in multiple colors.
- Installation command
sudo apt install vim
- Three main modes
Command mode (edit mode): Default mode, move cursor, cut/paste text (interface performance: file name is displayed in the lower left corner or is empty)
Insert mode (input mode): Modify text (interface performance: -INSERT– is displayed in the lower left corner) In insert mode, press the ESC key to return to command mode
Last line mode (extended mode): save, exit, etc. (Interface performance: -VISUAL– displayed in the lower left corner) In last line mode, press the ESC key twice in succession to return to last line mode.
- Mode switch
Switch command mode to edit mode
xxxxxxxxxxi # Insert mode to enter editing modea #Append mode to enter editing modeo # Start editing at the beginning of the next line of the current lineO # Start editing at the beginning of the line above the current lineSwitch command mode to last line mode