Some students in the Debian system Input VI or VIM of the command to edit the text, it is found that press the keyboard up and down the arrow keys, into the display ABCD character, the backspace bar also failed. Yes, that's right. The default editor
"General Settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Set default decoding
Set Fenc=utf-8
Set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
"Do not use VI keyboard mode, but vim own
Set nocompatible
"Number
Why should I use vim to edit the py file?
Because Ide,vim is the best text editor in the Linux command line, the lack of a graphical interface configures vim for better editing of the py text.
1. Install the full version of Vim
What is the
VI and Vim Editor and its shortcut keys1. The difference between VI and VIMThey are multi-mode editor, the difference is that Vim is the upgrade version of VI, it is not only compatible with all VI directives, but also some new features inside.These
Three common modes of VIM
General mode
Move cursor Position
Delete, copy, paste
Enter edit mode
"I" current word match either insert
"I" is inserted at the beginning of the line where the
One, what is vimThe VI command is the most versatile full-screen plain text editor in Unix operating systems and UNIX-like operating systems. The VI editor in Linux is called Vim, which is the enhanced version of VI (VI improved), fully compatible
This application scenario:Because the default bash is not used now, it is zsh, so the error zsh: command not found: adb is due to the update. Bash_profile but ZSHRC there is no way to increase the ADB. So we need to copy from the former to the
Linux Vi/vimAll Unix like systems will be built into the VI document editor, and other document editors will not necessarily exist.But at the moment we use more of the Vim editor.Vim has the ability to edit the program, can be active in font color
(i) Beginner's personalized configuration your vim1. What is VIM?Vim is VI improved, an enhanced version of Editor VI, an extremely powerful editor for it engineers (programmers, OPS) habits. If you are a professional SE, be sure to look for an
Linux Vi/vimAll Unix like systems will be built into the VI document editor, and other document editors will not necessarily exist.But at the moment we use more of the Vim editor.Vim has the ability to edit the program, can be active in font color
To view the encoding of a fileMethod One:1. The file encoding can be viewed directly in vim: Set fileencodingYou can display the file encoding format.Note: If you just want to see other encoded files or if you want to solve the problem of viewing
Press ESC to enter command mode1. Replace:%s/str1/str2/g replaces all str1 in each row as str2: S/str1/str2/g replaces all str1 in the current line as str2: N1,n2s/str1/str2/g replaces N1 line to N2 row in all str1 to STR2Note: Removing/g means
First thing to say: I do not update this series of tutorials this weekend, but other content will be updated, I will organize this week's various contents of the weekend to my public number, to provide to you!long-awaited Linux operations, Oracle
Command cursor movementH or ^h moves one character to the leftJ or ^j or ^n move down one lineK or ^p move up one lineL or space move one character to the rightG move to the last line of the fileNG moves to the nth row of the fileW moves to the
Indentation tab or space, this is not a problem, just like python with four spaces to indent, this is to see a person's preferences. In Vim, it is convenient to set the Tab tab or space according to different file types, and also to set the length,
Say in front--a byte of Vim is the best book I've ever seen about vim, someone who wants to learn about the powerful vim, or someone who is already using VIM and intends to learn more about it, I think I should look at this, the content is refined
VIM InstallationCommand: sudo apt-get install vimConfiguration:Configure the VIM,/ETC/VIM/VIMRC file just fine, (I found a more powerful vim configuration file on the Internet, copied to the/ETC/VIM/VIMRC inside, the effect is good)Configuration
Http://easwy.com/blog/archives/advanced-vim-skills-omin-complete/
Return to vim and use advanced: Directory
The help entry for the commands used in this section:
: Help ins-completion: Help compl-Omni: Help 'osmnifunc ': Help I _CTRL-X_CTRL-O:
Linux system Introduction Vim encoding and font details
Like all popular text editors, VIM can well edit a variety of character encoding files, which of course include popular unicode encoding methods
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