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
Or the previous XENIX system, as a place of the Public Security Department of the Household Registration inquiry and management system, records more than 500,000 of the basic information of the population. The system was developed in 1989 and was
VIM provides the ability to edit multiple windows to simplify complex editing tasks. Vim's multiple windows are not meant to start multiple vim instances on a terminal.
Start multiple window edits
Vim's multiple windows are dynamic, you can open
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
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
Ubuntu under the use of VI for editing files, pressing the next key around, will enter a, B, C, D, which is inconvenient to use. The reasons for this problem are:Ubuntu system comes with VI incomplete result, solution: Install the Complete VI$ sudo
The VI in CentOS only installs the vim-minimal-7.x by default. So whether the input VI or VIM to view the file, the syntax function is not enabled properly. It is therefore necessary to install the other two components with Yum: vim-common-7.x and
' + ' characters are invisible characters, the Vim editor uses the ' ^@ ' character to display the ' \ S ' character. Look at the following code: #include #include int main ( ) { char buf[] = "hello world!";
Regular expressions consist of two basic character types: literal (normal) text characters and metacharacters. Metacharacters enable regular expressions to have processing power. A meta-character is a special character in a regular expression that
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
Full Screen text editorVI:Vim:vi ImproveModal editor Edit mode (Command mode) Last-line mode Insert modeReplacement modeVisualization mode1 VI2 Vim file3 Vim + Number file If the number of rows positioned is greater than the maximum number of
First, why should we learn the VIM editor?There are a lot of text editors under the command line interface of Linux. For example, there are Emacs, Pico, Nano, Joe and VIM, etc. that are often heard. Vim can be seen as a premium version of VI. Why do
1.sudo Apt-get Install VIM-GTK2. Configure VIM:Open the VIMRC file with sudo vim/etc/vim/vimrc and then modify it:Then Save:VI Three modes of operationCommand mode, for entering commandsInsert (insert) mode, for inserting textVisual (visual) mode,
W Key to move the cursor to the beginning of the next wordb Key to move the cursor to the first word$ move cursor to end of line^ Move the cursor to the first non-whitespace character of the bank0 keys to move the cursor to the beginningThe F key is
have been looking to see if there are quick ways to Select all , but many of the web is repeated, and the wrong, such as:1, $y, what is this? To write also written: 1, $y, but I tell you, write: 1, $y is all copied, not a full selectionDG, this is
Vi/vim open mode, open the interface directly
How to turn vim off: Q: Direct close not saved
: q! Force close but not save: w Save changes: Wq Save and exit
In VIM mutation mode, move cursor KJHL: up or down
Inline jump 0 Beginning
Vim has four modes of normal Mode,insert Mode,commond mode and visual modeI key into insert mode, insert the character before the cursor coverA key enters insert mode, which is inserted after the character that is covered by the cursoro key into
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
Phenomenon:Gvim after installation, open Chinese Utf-8 encoded file Chinese display garbledProcessing:1. Start gvim8.0, Menu "edit", "Start setting"Add the following two lines at the beginning of the fileSet Fileencodings=utf-8,ucs-bom,cp936,big5Set
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