Remote login to the server using Vim to edit and view files on the terminal often encounter various Chinese garbled characters.Make the following settings to basically solve the problem of VIM Chinese garbled characters
First, check the system's
Bram moolenaar, creator of the open-source text editor vim, has released a new
Programming LanguageZimbu, a straightforward and experimental programming language. Moolenaar indicates zimbu combines the advantages of existing languages and avoids
I have been using Vim for some time, but I still have some knowledge about it.I accidentally found an article on the InternetArticleIt feels good, hoping to bring it to friends like meSome help.
Because there are too many content to copy, I will
1
, Configuration file location Under the/etc/directory, there is
Vimrc
File, 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"
.
If you have written a little bit of code, you will be able to know how convenient the integrated development environment (IDE) is. Whether it is Java, C, or Python, it is much easier to write code when ide will help you check the syntax, compile in
Search for characters
Command F is used to search forward within the row. For example, FX searches for the forward letter X. The command F searches backward (backward. For example, FX searches backward for the letter X. Similar to F and F, they are
Lsof-I: 6789
Check which processes occupy port 6789
1.
Suppose there is such a sentence # include "sockettask. H"
If you want to view the file content, place the cursor above and enter the command GF ~ Note
2.
: Q: Quit. Q: What? Is to view the
I don't know if you have encountered such a need. When you use two windows (in Emacs or windows in VI) to write two files, you suddenly think that the content of the two forms (buffer) should be) swap it for easy viewing. In gvim, you can use ctrl-w
For vimist, neocomplcache is a plug-in that is both love and hate. The main feature is powerful, complex configuration, and like to conflict with various plug-ins.
I was also overwhelmed by him. During this period, you searched countless times, but
The help entry for the commands used in this section:
:help quickfix:help :make:help 'makeprg':help 'errorformat':help 'switchbuf':help location-list:help grep:help :vimgrep:help :grep:help starstar-wildcard
I used to read martial arts novels and
1. Download The ctags file from the following address and copy the ctags.exe file to the gvim directory, for example, E: \ Vim \ vim73 \ ctags.exe.Http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags58.zip/download
After that, you 'd better
Delete unnecessary Spaces
End of line: $Beginning of line: ^Space: \ s
Space at the end of the line: \ s \ + $Space at the beginning of the line: ^ \ + \ s
Some people think that the space at the end of a row is useless and ugly. To delete
Successfully transformed Vim into a powerful ide Series II
"Plugin Introduction 』
Taglist is a Vim plug-in that provides a structured view of source code symbols.
(Directly using others' images. On my machine ~)
"Download and install 』
1) from
Previously, vimrc was changed to solve the problem of syntax brightening. Then, the mouse was suddenly ready to use, and the cursor located at the point.
However, we later found that Ctrl + Shift + C is not available, and the right-click Copy
Vi7.0 comes with the automatic completion function omni-completion.
So how does Vim find matching words? By default, VIM performs the following steps when searching for a word:
1. Search the current file.
2. Search in other windows
3. Search for
Summary:Install vim --> Configure the/etc/vim/vimrc FileThis enables vim to support syntax highlighting, automatic indentation, and other functions. Currently, the content of the vimrc configuration file is as follows, and basic c/c ++ programming
Some advanced editors will contain macro functions, which are certainly not missing in vim. It is very convenient to use Macros in vim:
: QxStart recording macros and store the results into Register xQ exit record mode@ XMacro commands for playing
I learned some simple mobile shortcuts for vim last time and used them for a period of time.
You are already familiar with these shortcut keys.
Continue learning now
This time, we will summarize some shortcut keys for inserting, searching,
Sometimes copy and paste the code from the editor to vim, and the code format will be completely messy. The reason is that vim has enabled the smartindent or autoindent mode. To maintain the code format, you can stop the above two modes before
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