How to Use the column editing mode of Vim?
* Windows
I have been using Vim for windows. I have heard that Vim has a column editing mode and has never been used. I tried it several times and failed. Today, I went to the Internet to check my work
I really don't want to install a VPC on my limited-memory machine, so it is a good choice to install cygwin. But I don't know why Vim cannot be used after I install it. The cursor is always at the beginning and does not go forward at all. I am still
I wrote the first csdn log today to commemorate it. Haha, start your own technology path. Haha ~~
1) gedit
. Run gconf-editor, modify the automatic detection encoding settings of gedit, and add several gb18030, gb2312, and GBK (gb18030 is
When editing with vim, you often needCodeFor example, indent, delete, and copy. For example, if you use the YY command, you need to calculate the number of rows, which is inconvenient. If you can mark the position, the code of a large segment can be
To try the English version, you need to solve the problem of Chinese support in many software programs. Vim has been used for a long time. When gedit is used occasionally, there is a problem in Chinese. Today, it cannot be solved simply.
In fact,
I used to use the editor in windows. Today I used vim and accidentally pressed Ctrl + S. As a result, VIM does not work when I press any key. in the past, we also encountered this problem. The solution was to directly shut down the SSH client
To replace a string with vim, use the "S" command in VI/vim. In the past, we used only one format to replace the full text. Today we found that there are many ways to write this command (VI is really powerful, and there are still a lot to learn).
Display Settings
SSH background settings: Edit-> setting-> color
Linux background settings:
Text Size: Ctrl +/-zoom in and out
Edit-> Configure the current file-> color
A simple. vimrc
CD/etc VI vimrc
It mainly implements automatic indentation, line
After entering VI, insert the lower-case "I" key after the cursor; insert the lower-case letter "O" key under the cursor; insert a lower-case letter "a" before the cursor.
For example, to copy 5 rows of data under 6th rows (including), put them
For binary file editing, Windows has a very good software winhex, which will make your life very simple. However, there seems to be no dedicated binary editor in Linux, but don't forget vim.Although Vim is not designed for Binary editing, it also
Author: gnuhpc http://blog.csdn.net/gnuhpc/
1. move the cursor
Move the cursor effectively in the current row. Note that these letters can be used with deletion, movement, and other operations.FX: move the cursor to the next X of the current row.
1. In securecrt, when securecrt uses vim, syntax highlighting is not actually a function of securecrt, but a function of vim.
Settings: Options-> session options-> terminal-> in emulation, select ANSI or Linux or xterm for terminal. ANSI colour must
[Translation]
/Joe/E:Cursor set to end of Match
Position the cursor at the last letter of the matching word
/Joe/e + 1:Cursor set to end of match plus 1
Position the cursor at the next letter matching the last letter of the word
/Joe/S-2:Cursor
Source: success,
1) the view of all windows is saved in the session information, and global settings are added.
2) The viminfo information contains the command line history, search string history, input line history, and non-empty register content),
Note! Networking
In Centos, only vim-minimal-7.x is installed by default. Therefore, whether you enter vi or vim to view files, the syntax function cannot be enabled normally. Therefore, you need to install two other components with yum: vim-common-
Today I saw vimer's blog, which recorded a bunch of plug-ins that made vim an IDE. I tried to install it myself. It is really easy to use. Record the plug-in name and function.1. ctags generate program tags and auto-completion functions.2. In
Note: A simple method to determine whether a flag is of type is to observe it. If there is a space behind the flag and a flag behind the space, in C/C ++, it must be a type. So you can use a regular expression to determine.
After testing, the syntax
1 screen
A install screen through ports
B $ screen
C $ vi file1.c
D CTRL + a c (hold down CTRL and a at the same time, release and then click c, the same as below) to create a new window
E $ vi file2.c
F move the cursor to the Starting Point
G CTRL +
Vim installation Analysis
Vim Configuration
Http://linux-wiki.cn/wiki/zh-hans/%E7%94%A8Vim%E7%BC%96%E7%A8%8B%E2%80%94%E2%80%94%E9%85%8D%E7%BD% AE %E4%B8%8E%E6%8A%80%E5%B7%A7
Self-configured vim
Winpos 5 5 set lines = 30 columns = 100 set nuset go =
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