Personal configuration has been put into the https://github.com/liown/vim-settings, mainly based on the configuration of Axiaoxin modified.Friends who need to put the. VIMRC directly into the ~/.VIMRC, into the vim execution: Plugininstall command
How to set it up:Keyboard by using the tools, options, and Settings in the VS menu bar.
Common shortcut keys:
Recommended keys
Edit. Go To Definition
Alt + G
A text editor under the command line of the Linux systemThree different modesGeneral mode: Opens the default mode for a documentEdit modecan be edited to enter edit mode from normal mode by pressing I-O-R lettersPress ESC to exit edit modeCommand
Reference https://www.fprintf.net/vimCheatSheet.html1. Exit Operation:: Q Exits when the contents of the file are not changed, and exits if there is a change in content: q! Force quit does not save: CQ forced exit does not save: Wq Save and exit: wq!
Reference links---------------------http://www.linuxidc.com/Linux/2015-12/126458.htmOnly normal mode can be toggled with edit mode, command line mode, edit mode and command line mode.One: General modeMove cursorLeft h←Right l→On k↑Lower j↓30j: Move
When you install Vim through the source, you are prompted for missing terminal libaryAfter installing ncurses, this problem still occurs.After finding the data found. Run the following command to install Vim as normalenv
This post was transferred from: Http://www.cppblog.com/runsisi/archive/2013/04/06/199152.html?Opt=admin12 The last day of the year configured the company Rhel vim, the company's network does not agree to upload things and outgoing mail. So sum up
First, IntroductionVim (vi[improved]) editor is an extended version of VI, more powerful than the VI function, is a powerful cross-platform text file editing tools, you can use it to create, modify text files and so on. Vim has three modes of
In the Linux environment Editor has VI, VIM, gedit and so on. After entering these editors, to make it easier for us to need the editor to display the current line number, the editor will not display the line number by default. There are two ways we
1) command-line mode: The typed content is interpreted as a command.2) Insert mode: The type of content is inserted into the file.3) Visual mode: Select, cut, and copy text from the keyboard.4) Ex mode: Use more commands (for example: storing files,
ObjectiveThis article summarizes the actual development of their own regular use of commands, not regularly updated to facilitate their own and other people to consult.If there are other use techniques to improve efficiency. Welcome message.This
Linux system look at the program or program, see a function often need to know the definition of the function, then Ctags comes in handy, the installation and use of the following methods:Installation method:sudo apt-get install ctags
Find
Replace
In normal mode1. If you want to replace only one letter, enter FA to find the next letter A, enter r and type the letter you want to replace a.2. If you want to go directly to edit a lot of letters, enter R, enter the REPLACE State,
Section Reference http://www.cnblogs.com/yangjig/p/6014198.htmlH Cursor moves leftJ Cursor moves down one lineK Move the cursor up one lineL MOVE the cursor right$ cursor to end of line^ cursor to the beginning of the first non-empty letterDW Delete
In normal mode:The% match parentheses move, move the cursor over the brackets, and press% to move the cursor to the matching brackets./string find the full-text string, press N to move the cursor to the first letter of the next string;? String to
1./forward lookup,? Reverse Lookup2. \v activates very magic search mode, writing regular expressions closer to Perl regular expressions, most characters do not need to be escaped3. \v activates Noverymagic mode and searches by word literals.4./E,
1. Displays the current time, the display format is HH:MM:SS, and is saved to the file Time.txt file.650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9C/5F/wKiom1lvZbPC311MAABCfFDDzjY186.png-wh_500x0-wm_ 3-wmp_4-s_647382095.png "title="
Vim Tips Summary-Find1. Find commands1.1 Performing a searchIn normal mode, the lookup prompt is called, and if the VIM scan to the end of the document still does not find the target, it will prompt "search hit BOTTOM, continuing at TOP". This means
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.