Today, I would like to share with you my vim configuration, just a personal habit. If you want, you can replace content copy with the contents of ~/.VIMRC:
01.if v:lang =~ "utf8$" | | V:lang =~ "utf-8$" 02. Set Fileencodings=utf-8,latin1
Command 1: [VYDC] [IA] [Pair_char]
The above command means that the command consists of three parts, each part of which can be any one of the characters inside []
The first section specifies the action type
The second and third sections specify
Enter into input mode in command-line mode to tap I, A, O, S, I, A, O, SThe difference between them makes a memo:
I: Start insertion at the cursor position match either
A: Start inserting in the word specifier the cursor
o: Insert a
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
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
Vim settings display line numbers by defaultVIM Displays the line number when it is opened by default, so that you can display the line number manually in command mode without having to edit it each time.To create a configuration file for a.
Open the Vim installation directory of the _VIMRC, with a few words in the head configuration statement can be done://Set default encodingSet Encoding=utf-8Set Fileencodings=utf-8,chinese,latin-1if has ("Win32")Set Fileencoding=chineseElseSet
XShell under the use of vim editing a file, save the time habitually press the CTRL+S structure tragedy. The screen was locked dead. Pressing other keys does not respond, exc also not. After asking the degree of Niang only know.The original ctrl+s
Article Original address: http://geek.csdn.net/news/detail/34295I have always wanted to configure VIM with Vim has always felt that there is no visual use of the cool, but considering so many people use, that there must be a configuration of the
Edit the build file with the vi text editor****** most basic usageVI somefile.41, first will enter the "General mode", this mode only accept a variety of shortcut keys, can not edit the contents of the file2, press the I key, will be from the
linux-vim File Editing exception problem handlingProblem Description:Each time the code is copied, if the code contains//or # Such comments are easy to let the format out of order, the content displayed is not neat, not the desired display
Using the cat command with the output character > to output multiple lines of text in a bash script is the most straightforward approach.Cat >out.file Start a line......A line againEofNote that EOF, as an identifier, marks the beginning and end of
The P key is pasted after the cursorThe P key is pasted before the cursorV to enter line visual mode, after which you can select text by rowM key to place tag, followed by A-Z to name tag' Key (reverse single quotation mark, above Tab key) followed
1 Vi/vim keyboard diagram2 text commentary6 ways to enter edit mode:I insert before the cursorI insert at the beginning of the lineA after the cursor is insertedA inserts at the end of a rowo Insert in next lineo Insert in previous lineDelete
with vim, there are two common causes of errors:(1) when you use multiple programs to edit the same file. (2) non-regular exit. The following information is prompted:E325: attentionfound a swap file by the name ". Old.txt.swp"
Why should I learn vim?
All Unix like systems have their own VI editor
Some software's editing interface will automatically adjust the VI
As an upgraded version of VI, VIM has the program editing function, but also has the code
Multi-line Comments:1. Enter command-line mode, press CTRL + V to enter Visual block mode, then press J, or K to select multiple lines to mark the lines that need comment2. Press the capital letter I, then insert the comment, for example//3. Press
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
Today colleague small partner suddenly told me that he used the editor Sublime3 cause the notebook suddenly lag, look at that time memory ate 30G, and his notebook total 8G memory, suspect is memory leak, decisive change back to the original used
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.