1, display line number: Setnumber2, cancel the line number; Setnonumber3, in normal mode (press ESC to enter) The key v into the visual mode, and then press the keyboard or h,l key to achieve the text selection.Other Related commands:V: Select by
Vim Format CodeRecently a CentOS, installed Nginx successfully configured Netcore, and then installed after the PHP configuration file promptThe first thought is the space coding problem, but in several times the file saved, encoded as Utf-8 also
First, the movement of the cursor0: Move to the beginning of the line.$: Moves to the end of the line.W:walk move to the next wordB:back move to the previous wordH or BACKSPACE: Move left one character; backL or Space: move right one character;
Extended mode: R file absolute Path # writes file contents to the next line of the current cursor W filename # writes the current contents of the current VIM open to the filename (new file filename, writes the content) w! FILE1 # Forces the current
Configuring the programming Environment: sudo apt-get install vimsudo apt-get install g++sudo apt-get install gdbVIM environment configuration: Set nocompatible "Vim than VI supports more features, in order to avoid conflicts, it is best to turn off
I. Introduction of VIMVim is an upgraded version of VIis the vi with color displayDivided into general mode, edit mode, command mode.yum install -y vim-enhancedInstall VimUse VIM to open passwd after installation is completevim /etc/passwdAnd before
Vim three modes set in the editor- Command efficiency, and users will feel quite handy after the habit. To manipulate the text efficiently, you must first understand the 4-1 ). ? Command mode: Control the movement of the cursor, you
Path:/ETC/VIM/VIMRCOpen Terminal: ctrl+alt+tInput: sudo vim or GEDIT/ETC/VIM/VIMRC (recommended with gedit for better operation)Here is my configuration:1 "My configuration2 "Show Line Numbers3 SetNu4 Set Number5 "Change Indent size6
First, the basic file operation
Create a file
Touch Vim.txt
Open File
Vim Vim.txtSecond, basic editing operations1. Normal mode
YY copies the current line of the cursor.
P Paste to the next line where the cursor
First, Vim common operation1. Insert commandA specifier insert in the word cursorA at the end of the line where the cursor is insertedI match either insert in the word cursorI insert at the beginning of the line where the cursoro Insert a new line
(not to be continued)From the first use of Vim's wits, to now use HJKL navigation has formed a muscle memory.Meet the most novice will be puzzled by the problem, here to organize down.Getting Started FAQs
IDE is very powerful, lightweight
Vim Introduction Vim is a powerful full-screen text editor, which is the most commonly used text editor on Linux/unix, and its function is to create, edit and display text files. Vim has no menu, only commands.For the pure novice, these three
The conventional idea is to open two vim and then do the YY and P operations, but the practice proves that it doesn't work at all. At this point, we need to split the window and then we can copy and paste. The steps are as follows:Suppose I want to
5.5vim entering edit mode5.6vim Command mode5.7vim Practice5.5vim entering edit modeEverything entered in edit mode is entered in front of the cursor.press the "I" cursor to enter the editing mode at the current position. Press the "I (shift+i)"
Follow the online tutorial to install the software, none of which is successful (or probably not). Oneself from the net patchwork, finally let own vim intelligent identification.1. Upgrade Vim: (Ubuntu)sudo add-apt-repository ppa:jonathonf/vimsudo
Three modes of 1:VIGeneral instruction Mode: VI opens (creates) a file by default in general instruction mode, you can move the cursor up or down, use shortcut keys to copy and paste, delete entire row of columns.Edit mode: In the general
I. Working mode switchingTwo. Vim Command small copyThree. Operation Commands1. command to enter VI:(1) VI filename: Opens or creates a new file and places the cursor at the beginning of the first line(2) VI +n FileName: Opens the file and places
Vim starts multi-window editing and vim starts window editing.Vim provides the multi-window editing function to simplify compound editing tasks. The multi-window mode of vim does not mean that multiple vim instances are started on the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.