Multi-line Comments:In normal mode, enter ctl+v;visual block mode, Press and hold the upper and lower keys to select the line to be commented , enter uppercase I; in insert mode, Enter//, Press the ESC key at the end. Cancel multiple lines of
Progress bar principle: Data is growing from 0%~100%, but does not change lineImplementation code for the progress bar:650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/2E/wKiom1eHjzmQTBK-AABy_zCJji8892.png "title=" Stdout2.png "alt="
(Disclaimer: This article is for Linux users such as Ubuntu)Three modes used by VIM:1. General Instruction Mode2. Edit mode3. Instruction-column Command modeVim's easy steps to walk:Simple command: (I think it's better for beginners to put it in
Vim operation modeCOMMAMD Mode-Command modesInsert mode-Input modesLast line mode-bottomI,o: Enter input modeEXC: Enter the bottom row modeIn command mode DD: Delete the current line where the cursor is located "Other reference vim common"H,J,K,L:
1. Temporary modificationin the vi ,set tabstop=4 or Set ts=42. Permanent modificationVI--version Viewing the files to be modifiedif it is vim words, modify ~/.VIMRCif it is VI, modify ~/.EXRCPlus: Set tabstop=4Set nu//Display line numberSet
1, when the VI is opened by default command mode, to enter the input mode, you need to press A or I key.Command mode:: Wq Save and exit: W only save does not eject: Q Do not save exit: q! Do not save forced exits: wq! Save and Force exit2 . FindIn
Common settings and actions in Vim:Under the Linux system:Open VI File:0 number 0, jump to beginning of line ^ jump to row first non-null character $ jump to end of lineVim brackets match Jump actions:Ctrl +] jump to function or variable
The VI editor has 3 modes: Command mode, input mode, and last line mode. It is important to master these three models:Command mode: VI starts after the default entry is the command mode, any mode, press the [ESC] key can return to the command mode.
Morning OrderLess abc.txt Viewing the ABC file can be turned upside downLS--help | More (view the file in more ways)Cat abc.txt View ABC fileHead-5 abc.txt View Top Five ElementsTail-5 abc.txt View Tail Five Elementshead-10/etc/passwd | Tail-4 view
The recent return to vim found that occasionally vim can not be entered, but the cursor in the case of motion, once suspected is spf13 problem, later after searching, only to find out is because vim, shortcut key Ctrl+s function is to stop the input
installation and use of Vim plugin ctags2013-11-19 20:47 17064 People read comments (0) favorite reports Classification:Development Tools (3)Linux Programming (9)C + + programming (one)Copyright NOTICE: This article for Bo Master original article,
The VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions. Because the VIM editor is the
Ctrl + F scroll down one screenCtrl + B scrolls up one screen/text find text, press N to find the next, press N to find the previous one.? text find text, reverse lookup, press N to find the next, press N to find the previous0 (number 0) move to the
The difference between G (global) and% in Vim:G: The Globals/pattern/replacement/: Replace each pattern that appears in the lineG/pattern/s/pattern/replacement/g: The G at the beginning is a global command, which means that all rows that match the
Cases: QA some vim command QThis macro only records the VIM command to register a, which can be executed with the command:@aYou can also add the number of executions:[Email protected]Performed 10 timesOnce you have performed a @a, you can
Now the Linux system is generally installed by default vim editor, if there is no VIM editor installed, there will be a VI editor, the VI editor produced more time than the mouse to come earlier, although the function is very powerful, but I
1.Vim is an advanced version of the Vi,vim can not only display text content in different colors, but also can do such as Shell Script,c program editing functions.The difference: VI is the teacher's word processor, but the function is very complete,
Command mode (move cursor, copy, cut D, paste p, delete x, Undo U, Redo Ctrl+r, replace R)Insert mode (write new data) A (post-word insert) I (insert before word) O (Insert new line)Last-line mode (save File W, Save as W filename, open file o, read
This article mainly shares the simple configuration of vim in Linux ★ Location of configuration Files In the directory/etc, there is a file named VIMRC, which is the public vim configuration file in the system and is open to all users. In each user'
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.