The encoding in VIM is mainly related to three parameters: ENC (encoding), fenc (fileencoding), and fencs (fileencodings)
Fenc is the encoding of the current file, that is, a file that has been correctly displayed in VIM (the premise is that your
Vim is a powerful editor that supports plug-ins. whether your system is Linux, UNIX, Mac, or windows, you can select it to edit files or perform engineering-level coding. If we can use Vim well, not only can the programming efficiency be greatly
The mutex/thread Implementation of GCC 4.6 may have some problems. As a result, when mutex/thread is used, the chrono compilation error may occur and the prompt cannot be prompted. after research, clang 3.1 supports libc ++ mutex/thread and switches
Vim completion method:
========================================================== ============================ Full line completionCTRL-X CTRL-LBased on the keyword in the current fileCTRL-X CTRL-NDictionary-based completionCTRL-X
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
(1) easy to forget but commonly used operations:
(1) mobile
W/W: Move to the beginning of a word, case-insensitive punctuation
E/E: Move to the end of a word. The case difference is the same as above.
B/B: Move to the beginning
H/m/L: Move to screen
[CTRL] + [f] the screen moves one page down, which is equivalent to a [Page Down] button (commonly used)[CTRL] + [B] The screen moves one page up, which is equivalent to a [page up] button (commonly used)0 or function key [home] This is a number "0":
Original article address:
Http://hqlong.com/2010/01/1254.html
Vim tips: Collapse shortcuts
I used it quite well before. I don't need it for a while, and I forgot the shortcut keys. I have to read the manual again. I have to sort it out
ArticleDirectory
(1) vimrc Introduction
(2). Vim folder
Environment Configuration
"If you think Vim is just a text editor, you lose"-from Vim
Vim provides a variety of configuration functions in a simple way. The main
Use Vim to write c ++CodeBasically, there are not many completion plug-ins to choose from. I use omnicppcomplete. This plug-in relies on tags for completion, and the effect is unsatisfactory.
Clang complete was found some time ago, and the effect
Vim is an excellent open-source text editor. It is a very common text editing tool for Linux/Unix users. After one year and five days of waiting, we welcome the stable version of VIM 7.1. The revised version fixes a security issue and causes crash
1. Move commands(1 ). h j k l, direction key, and memory tips: The left and right directions are the leftmost and rightmost, and j is checked downward, so it is the downward key, the remaining k is the up key.(2). B, before, last word (first word)W,
Document directory
Configuration
The most useful commands
Useful plug-ins
Configure Python
Technorati label: vim
I made a note by collecting the contents of the online hosts.Most common configuration
Set nocompatible "allows vim to avoid some
Vi/Vim
Picture copyright: lampbrother
Note: After Entering Vim/Vi, the command mode is used by default.
1) Basic commands
AAdd text behind the cursor
IInsert text before the cursor
: WqSave changes and exit
ZZShortcut Key, save the
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,
Anyone who has used VIM to edit Chinese documents knows that the command line mode is required after each editing.
If you forget to press SHIFT to switch the Chinese/English input, you will find that the commands after pressing ESC are all Chinese
Since VIM has been used for a long time, it has never been thought of as convenient and fast as VIM.
I thought for a moment, probably because I have always been dependent on the VIM editing mode.
This is no different from using other simple editors.
Nj/k/h/l
[Crtl] + f
[Ctrl] + B
0/Home
$/End
G
NG
Gg
N [Enter]
/Word
N
To continue searching for the next string named word.
N
: N1, n2s/word1/word2/g
For example: 1,100 s/man/MAN/g, search for man between 1 and 100 and replace it with
Why is it difficult to use vim's forced writing?
A beginner in Linux usually installs a graphical interface. When a graphical interface is installed, a common user is created, and this common user is usually used to log on to the system (note: this
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.