This chapter describes the use of the VIM editorThe Vim editor is an enhanced version of the VI editorVim is a full-screen editor, a modal editor, called a modal editor, because Vim has multiple modes.The following are the main three modes of
CentOS6.5 enable vim for Python support, configured as follows:1, inspection system has installed the RPM package vim-enhenced;2. Copy the default. VIMRC initialization file:# Cp/usr/share/vim/vim70/vimrc_example.vim ~/.VIMRC3. Configure the. vimrc
When debugging code, you can easily comment out or cancel code comments in batches. Many ides use shortcuts to comment out or uncomment selected code blocks in batches, how can this function be completed in Vim?Method 1 selection mode Batch
Because the newly installed Vim/VI does not enable the code highlight configuration by default, we can see that some friends go online again and again to find various configurations. In fact, VIM only copies the configuration file samples by default.
vimball is a Vim plug-in that can help you easily install the plug-in VBA format. install vimballfirst, download it, and decompress it to the same directory as gvim.exe. It seems that Vim has vimball, so that the installation can overwrite the old
View help input: tab help, which can be opened on a new tab. jump to a topic: place the cursor over a label (e.g. | bars |) and press Ctrl-] to jump back: Type A CTRL-T or CTRL-O (repeat to continue backward) copying and deleting a Text object is a
Time: 2014.06.28 Location: Base Bytes -------------------------------------------------------------------------------------- Note: To illustrate how to call the. Command in VIM as a point command I. Brief introduction to some commands The Vim
1. Disable the VI consistency mode.
set nocompatible
2. How to configure backspace
set backspace=indent,eol,start
3. display the row number
set number
4. Set to display the cursor row and column information in the lower right corner of the editing
VI/Vim basic usageThis article introduces the basic usage of VI (Vim), but it is enough for common users! The differences between I and Vim are simple. They are all multi-mode editors. The difference is that Vim is an upgraded version of vi. It is
The script language is too strong.
My goal is to add my default code header function to vim.
1 /****************************************************************************** 2 * COPYRIGHT NOTICE 3 * Copyright (c) 2014 All rights
1. Split screen to start Vim1. Use uppercase o parameters for Vertical Split screenVim-on file1 file2...2. Use lower-case o to split the screen horizontallyVim-on file1 file2...Note: N indicates a number, which indicates several screens.2. Disable
First of all, it is worth mentioning that the PDF version of my vim tutorial has been completed. You can download it here, which is csdn: Click here to download it. If the download on the left fails, you can also enter the following address in the
It took a long time to sort out and shared it easily.
My Vim configuration has the following advantages:
1. Press F5 to directly compile and execute C, C ++, Java code, and shell scripts. Press F8 to debug C and C ++ code.
2. the file header is
There is no doubt that Vim is profound and profound. Here we will share some tips about vim, which I discovered today, because I just switched to VIM soon, I am not familiar with many functions of VIM, but I still have some configuration items on
Vim (vi) is a commonly used editor on Linux. By default, VI (Vim) is installed in many Linux distributions ). There are many VI (Vim) commands, but if they are used flexibly, the efficiency will be greatly improved. VI is short for "Visual Interface"
Tag: Use the AR string of the strong file app
* Locate the specified row N:Enter "NG ".Or enter "ngg ".Or enter ": N"Here, n is the row number of the specified row. Note that sometimes G = GG.* Jump to the top of the screen:Enter "H ".This is the
Method 1Go to the vim official website under the CVIM plug-in (http://www.vim.org/scripts/script.php? Script_id = 213). If not, go to the vim official website and enter the CVIM keyword to search.Decompress the package directly to your. Vim folder
1. Navigate to 1.1. view the row number
: Set numberShow row number
:. =Display the current row number at the bottom
: =Display the total line number at the bottom
1.2. move the cursor
0^Move the cursor to the beginning of the
Use vim (3):. viminfo and. vimrc, vim. viminfo1. viminfoVim automatically records the operations performed in vim and stores them in ~ /. Viminfo file. In this way, the cursor is automatically displayed at the last exit when vim opens the file. The
Xin Xing deeply analyzes vim's automatic complementing function and vim ing
In the past, all the auto-completion functions of vim were downloaded from the Internet when needed, and copied to their own vimrc. I didn't know what it meant, the results
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.