June 21 Task5.5 Entering edit mode5.6 VIM Command mode5.7 Vim PracticeExtendedSpecial usage of vim http://www.apelearn.com/bbs/thread-9334-1-1.htmlVim Common shortcut key summary http://www.apelearn.com/bbs/thread-407-1-1.htmlVim quickly deletes a
CycleForWhileUntil for 变量 in 列表; do 循环体 doneE.g for I in ' seq 1 $FILE '; Doecho "Hello, ' head-n $I/etc/passwd | Tail-1 | Cut-d ', '-f1,7 ' "Done Vim Editor: Edit mode input mode last line mode edit-Input:
There are a plethora of commands in vim, and learning on demand is the only way out. Here is a summary of several commonly used cursor jump commands.Basic movement:H (toward left) J (down) K (UP) L (Small letter L, toward right)Move between
"set to automatically load when files are changedSetAutoread"line number on the leftSetNu"tab length is 4Settabstop=4 "do not back up when overwriting filesSetNobackup"Auto IndentSetsmartindent"Highlight Current Line"Set Cursorline"lower right
A good tutorial on the story:nohCancel Search highlightingxDeletes the character of the current cursor.:wqDisk + exitddDelete the current row and save the deleted row to the ClipboardpPaste Clipboarda→ inserted after the cursor/pattern→ searches for
1. Need to install vim under the shell command to knock command Vimtutor IDE integrated development Environment 1.vim Three modes of operation A. Command mode B. Edit mode C. Last-line mode1. Command mode-execute command In this mode, you can enter
1. Install Vimsudo DNF install vim2, plug-in managementChoose Vim-plug,vim-plug is Korean Junegunn (Junegunn Choi) wrote, the fastest plug-in manager, whether it is the update, installation, are all concurrent (https://github.com/junegunn/vim-plug )
Method OneComments:"Ctrl" + "V" enters the column editing mode, moves the cursor down or up, marks the beginning of the line to be annotated, then presses the uppercase I ("Shift" + "I"), and then inserts an annotation, such as "//", and then ESC,
When using vim to write code, I like to look at the definition of the structure in the header file while writing the implementation code, so that it is often used in multiple windows to edit, view the document.1. Open multiple files at the same time
VI has 3 modes: insert mode, command mode, low line mode.Insert mode: You can enter characters in this mode and press ESC to return to command mode.Command mode: You can move the cursor, delete characters, and so on.Low-line mode: can save files,
Linux Vi/vimAll UNIX like systems will be built into the VI document editor, and other document editors will not necessarily exist.But at the moment we use more of the Vim editor.Vim has the ability to edit the program, can be active in font color
"Vim" is a very powerful and widely used editing method in Linux. Here are some basic uses of "Vim". Take "/etc/passwd" as an example.1. Vim Command modeEnter ": Set Nu" To add the line number as shown in. ": Set Nonu" To cancel the line number. ":
Substitution and revocation of characters (undo action) 1. Replace and revoke (undo) commandBoth the Replace and undo commands are for normal mode operations
Command
Description
r+
Replace the
When installing vim using the Yum install Vim command on FEDORA20, the package conflict is indicated as follows:Transaction Check error:file/usr/share/man/man1/vim.1.gz from install of vim-common-2:7.4.475-2.fc20.i686 conflicts WI Th file from the
Exit Save: WqExit and force Save: wq!Force quit, do not save: q!Cursor moves to the last line of the file GCursor moves to the first line of the file GGMoves the cursor from the cursor position to the beginning of the current line ^ 0 homeMoves the
This tutorial describes some of the basic techniques for using VIM in different modes of operation-insert mode, command mode, access to files, and so on. The goal is to help newcomers who have just touched vim to use this excellent editor more
How Vim artifacts are built
[Font: Big Small]
Vim is an ancient artifact, this article will continue to summarize the use of vim to understand some of the instructions and considerations, and continue to share
Multi-file Mode:Vim FILE1 FILE2 FILE3 ...: Next Next:p Rev A previous: First One: Last One: Wall Save All: Qall Quit allWindow-delimited mode:Vim-o|-o FILE1 FILE2 ...-O: Horizontal split-O: Vertical splitSwitch between windows: Ctrl+w then arrow
Open the host file with the VIM command[Email protected]/]# vim/etc/hostsPress "I" key to enter edit modePress "ESC" key to exit Edit modePress "Backspace" key to delete the previous character of the cursorPress "Delete" key to delete one character
Look at the C + + code, lack the right editor, and tinker with Vim.
Installing the Vundle for plug-in managementgit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim --depth=1
Install Youcompleteme, code completioncd ~/
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.