Vim has no menu, only commands.VIM Exit command "reprint":Note: These commands have a colon before them:When you are finished editing the document, you are ready to exit VI when you return to the shell, you can use one of the following methods.In
1. Vim often uses functionsVim's regular use function. Contains the selection of blocks. Copy, multi-file editing. Multi-form and other functions.2. Vim Block SelectionBlock selection is the ability to select a piece of the document to be copied,
1, Vim ~/.VIMRC Enter the configuration fileIf you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI? #设置自动缩进Syntax on?? #高亮?2. BasicSPACEBAR to move one cell to the rightX Delete the
Vim+makefile Getting started editing, compiling, error instance vimmakefile compilingWrite code, generally in vim after editing, input: Wq, in the command line input g++ Hello.cc-o Hello, there is a problem, open vim, find the corresponding line
Why use VIM? Because of the feature of color display, and also support many program syntax, VIM can help you to debug the program directly. But after the SECURECRT connection Linux display is black and white, feeling very uncomfortable!!What to
Turned out a long time ago written by Vimnote.txt"Vim Practical Skills" This book has been read from beginning to end two or three times, because the memory is too bad, wrote this document to record some common instructions, use ripe later to
n represents a number, words represents a string1. Set line number: input: Set Nu2. Jump to a line: Enter NG. First line 1G, tail line g3. Delete successive n rows: Skip to the row you want to delete, then enter: NDD4. Delete successive characters
Several editing modes of Vim
Normal mode: You can use the shortcut key command, or press: To enter the command line.
Insert mode: You can enter text, in normal mode, press I, A, O and so on can enter the insertion mode.
Visual mode:
The color theme of Vim is in the/usr/share/vim/vim74/colors folder.After you open vim, enter ": ColorScheme" in normal mode to view the current theme, modify the theme using the command ": ColorScheme mycolor", where MyColor is you/usr/share/ The
DW: Delete the wordd$: Delete from current cursor to line trailerDe: Delete from the current cursor position to the end of the word (including the last character)d$: Delete from current cursor current position until end of current lineDD: cut when
Click Esc the key,; Vim enters command mode. Then enter:
:qExit (this is :quit the abbreviation)
:q!Do not save exit (this is :quit! the abbreviation)
:wqWrite the file and exit; (This is :writequit the abbreviation)
:wq!(If the file
1. Click the ESC key, which means Vim is ready to accept the order.2. Then directly tap the keyboard input command.This step requires that you do not attempt to use the mouse to find anywhere on the screen where you want any input commands.You just
Try::vert sb NWhich would open a left vertical split (by default, unless to have modified some options).To open a split-to-the right, on the other hand::vert belowright sb NYou can use and to divide the current area into the windows with the :split :
For learning Python programming, a good IDE is essential, Python has a high requirement for code indentation, typically 4 spaces indented.For VIM, we just need vim. VIMRC plus the following 2 lines of code:Set ts=4Set ExpandtabFor sublime, you need
Compilation Example: g++-o hello hello.cpp-std=c++11, where-std=c++11 represents support for c++111 new featuresCommand mode execution after ESC is pressedA after inserting a letterI insert the current cursor------------------------------------------
Vim in Linux, what is vim, vim is actually the Word document inside windows, almost the biggest advantage of Windows is the humanization But Linux is not the same, the biggest disadvantage of Linux is not enough human Vim Zhang the command is to
I. BACKGROUNDFor the operation of the Linux server, we often use vim, and sometimes I use the vim is not so skilled and deep, this week in-depth study of the use of vim, including the introduction and advanced, first share to you, but also
First put the Exvim. Then modify the. vimrc file.1. Automatic line wrapping. Takes two steps:Set textwidth=70 for Word countSet Wrap sets Automatic wrappingSet linebreak "word wrapping, with the use of automatic line wrapping, the effect is very
YCM is known as the best use of vim in the plug-ins, can't help but want to try, follow the installation steps, go to this step of the timeAlways appearsYour C + + compiler does not support c++11The errorGo to GitHub ycm issue, found someone met
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
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service