1.centos7.0 comes with vim that supports python2.x. (: Version after see python+ support, python-is not supported) if not supported, uninstall VIM after the source code compilation installation.Yum Install
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current
After adding the following code to the. VIMRC, restart Vim to create 4 spaces by pressing TAB:Set ts=4 (Note: TS is the abbreviation for TabStop, set tab width 4 spaces)Set ExpandtabFor a saved file, you can use the following method to replace the
Vim is a powerful editor that I use mostly with her as an edit file, and also has a cow who makes her play the Super IDE. But... It always feels like this is a powerful brain to use, such as my little rookie or just be honest with a dedicated IDE.
1. In edit mode: Ctrl+w undo the last edited content2. In command mode: CTRL+W cursor switch to another window3.vim-on file1 file2 ... The horizontal split screen, n is the number, represents divided into several screens, the command input succeeds,
Single-line copy: Move the cursor to the desired copy line yy move to paste line pMultiRow copy: Some people say Nyy P Forgive me I don't know if this is blowing ratio or my vim is sick, it is not good to make[Start line],[end Line] Co [copy to
Here is a summary of the usage of the shortcut keys that you encounter with vim in peacetime.
How do I jump to the position of the last or next cursor?Ctrl ++ I #跳转到下一次光标的位置
How to open another file in a vim program?: Open file1 file2 file3
Adding Plugin ' valloric/youcompleteme ' using bundles in. VIMRC when installing with Vundle is not an unknown cause of installation failureYCM compile-time additional options --system-libclang to use the system's Clang packageMy VIM
Some time ago the company project aimed at the company to use Linux, so, the next effort on Linux.Seriously, Windows development and deployment habits, Linux is a little strange, but as a developer, Siege Lion, Linux How can you miss it? So, under a
1. Replace the contents of the current line:: s/from/to/ (S is substitude): s/from/to/ : Replaces the first from, in the current row, with a to. If the current row contains more than one from, only the first
to replace text in VIM:1. Replace the contents of the current line:: s/ from/to/(S is substitude): s/ from/to/: Replaces the first from, in the current row, with a to. If the current row contains more than one from, only the first one is replaced. :
1. Delete all whitespace characters from the beginning of lines in the/etc/grub2.conf file that begin with whitespace[[email protected] ~]# sed-r ' s/^[[:space:]]+//g '/etc/grub2.cfg # # do don't EDIT this file## It's automatically generated by Grub2
Vim's work-characteristic customizationExtended mode: Current VIM process is validChange profile: Permanently validGlobal:/ETC/VIMRCPersonal: ~/.VIMRC (can be created on its own without this file)1, line numberSet Nu:set number Displays line
Vim's common mode is divided into command mode, insert mode, visual mode, Normal mode. In this tutorial, you only need to use Normal mode and insert mode. Switching between the two can help you to complete this guide's learning.
Normal
Failure phenomena:Use Vim to modify the file error, the system prompts the following:E37:no write since last change (add! To override)Cause of failure:The file is a read-only file and cannot be modified.Workaround:Use the command: w! to force the
Vim under the automatic completion, the best tool is youcompleteme, official documents here http://valloric.github.io/YouCompleteMe/The installation is slightly more complicated and the following records my process.1. Installing VundleVundle is a
Vim Open file is, the default line number is not prompt.As for the purpose of displaying the line number, it variesLinux The next host may have n accounts. There are two types of configurations: Configure only the current account, configure all
After a break from source insight, decide to take the time to properly configure and learn the following VIMSo I found the great God's configuration HTTPS://GITHUB.COM/HUMIAOZUZU/DOT-VIMRCAccording to the introduction of the page, the following
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.