Button operation:
Add Note: Ctrl + V to enter the column editing mode. Move the cursor down or up, mark the beginning of the line to be annotated, and press I in uppercase, then insert the annotator, such as "#", and then press ESC. All of them
At the beginning, after Ubuntu is installed, garbled characters will be displayed after you exit with vim. This is because Vim of Ubuntu is linked to/usr/bin/gnome by default, this is different from the usual vim, so if we need to use the usual vim
Vim 7.0 and later versions have built-in auto-completion, with the same shortcut key as omnicppcomplete.
CTRL + x Ctrl + O (Intelligent completion)
Or Ctrl + n
Or Ctrl + P,
Or Ctrl + x Ctrl + f (fill in the file name)
CTRL + X is to enter a
Do you often encounter this situation like me: you have edited a system configuration file in Vim, and you only need to save it to find that the current user has no write permission for the file. If you have made a lot of changes, it is really
1. Install gvimGvim72.exe address: ftp://ftp.vim.org/pub/vim/pc/gvim72.exe.
2. Install gvim Chinese help documentVimcdoc-1.7.0-setup.exe address http://prdownloads.sourceforge.net/vimcdoc/vimcdoc-1.7.0-setup.exe? Download
3. Garbled text on the menu
Anyone who has experience using and configuring Vim knows that Vim can be comparable to ide after configuration ~
However, it is also very troublesome to configure Vim. Many times, when we need to change the system or back up data to other
Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant
1. Delete)
DdDelete the row where the cursor is located
NDDDelete n rows from the row where the cursor is located and down
D1gDelete all rows from the row
1. Configuration File LocationUnder the/etc/directory, there is
VimrcFile, which is a public Vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file named"
. Vimrc".
Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from "Learn
Note:
In the following example, xxx indicates entering XXX in command mode and press Enter.
In the following example: XXX indicates entering XXX in extended mode and press ENTER
The commands in parentheses indicate related commands.
The command
In Linux, the vim editor has very powerful functions and many common shortcut keys are very convenient to use. Here, I will share some common shortcut keys that I learned when learning vim, and hope to help you.
This is what I sorted out from
Vim's general usage skills
Author: Geminis published on:
复制链接 -->
In each user's home directory, there is a VI Configuration File ". vimrc "or ". exrc ", you can edit it so that these settings are valid
When editing C ++ code or other code in Linux, copy, paste, and code formatting are common functions. However, Linux is a keyboard operation, therefore, you need to write down some tips. The following tips should be the easiest.
Press the I or
In ubuntu, the vim configuration file is stored in the/etc/Vim directory. The configuration file name is vimrc.
In fedora, the vim configuration file is stored in the/etc directory. The configuration file name is vimrc.
Enter the following command
I am not a fan of Linux/Unix, although I advocate the spirit of GNU.
I used to write C/C ++ programs on the Windows platform using VC,
It also uses editplus to write ASP/HTML, and occasionally uses sourceinsight to browse some
Large Project source
Vim auto indent1. Configuration File LocationUnder the/etc/directory, there is a file named vimrc, which is a public Vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private
Vim script. (Transfer)Remember that many ides in the window can annotate the entire code for testing. Restore it after testing. The corresponding functions are also implemented in Linux Vim today.Comment on a single row: ctrl_cComment on multiple
Fuzzyfinder plugin provides an interface to quickly search for files, buffer, bookmarks, commands, and tags.
You can preview the search results in real time and support fuzzy search of wildcard.
※Download
Http://www.vim.org/scripts/script.php?
Emacs said, I only need an editor, but you gave me an operating system. It is a hacker's editor. If I fail to make Emacs into an operating system, I need a pure editor.
The following are common commands of the vim Editor:
Insert mode: it refers to
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