Installation and basic usage
1. Log in to Ubuntu with the root account, enter vim in the command line, and get the following prompts if not installed:
The program "Vim" is already included in the following packages:
* VIM
* Vim-gnome
* Vim-tiny
http://top.jobbole.com/1370/
The Sublime Text Editor has a very powerful "multiple selection" feature that supports "one edit, multiple changes". Since the vim-multiple-cursors this plugin, VIM users no longer need to envy Sublime Text users.
Vim is a very powerful text editor in the Linux system, with the ability to use the Vim editor to produce scripts and edit text.The VIM editor has three modes:Command modeBy default when using Vim to edit text, the direct entry is the command mode,
In the author's opinion, the biggest difference between VI and VIM is that when editing a text, vi does not display color, and vim displays the color. Display colors are easier for users to edit. There's no difference in other features. So under
Commands entered in edit mode or Visual mode are noted separately.1. Find/xxx (? xxx) means searching the entire document for a string matching xxx,/means looking down,? SaidLook up. where xxx can be a regular expression, about the formal type is
To open multiple files: 1.vim has not started yet: Enter in terminal Vim file1 file2 ... filen can open all the files you want to open 2.vim has started Input : Open File A file can be opened again, and the contents of the file will be displayed in
Today I was installing with the CentOS 7 Yum command with the following error:[[email protected] ~]# yum install vimLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: mirror.hosting90.cz* extras: mirror.hosting90.cz*
1, Vim is the ancient artifact of Linux programmer programmingVim is the most famous text/code Editor on the Linux system, and it is also an enhanced version of the VI editor of the early years, known as the best classic ancient artifact in the text/
Ext.: http://blog.chinaunix.net/uid-22548820-id-3477464.html1. Use the VIM comparison mode to open two files:vim-d file1 file2OrVimdiff file1 file22. If you have already opened the file File1, then open another file file2 to compare:: Vert diffsplit
1.Vim#在命令行中输入vim, enter the VIM editor2.I#按一下i键, lower display--insert--#插入命令, any character may be useful in vim3.Esc#退出i (insert) command for other commands to use4.: R filename#读入一个文件内容, and writes to the current editor5.: w
A. Linux common Commandsmkdir dirname New FolderCD ~ Go to your home directoryCD dirname into the directory named dirname;• Displays the file and folder names under the current folder;Myrm filename to delete the file named filename;Myrm–r dirname
http://www.tinylab.org/linux-terminal-and-paste-copy-under-vim/Under the GUI interface, we are free to copy and paste. But in the character interface, we have to use the mouse to select, and then click on the right, select Copy, and then go
Vim Common techniques:Change the carriage return from the default 8 spaces to 4 spaces:Command:set sw=4Modify tab to 4 spaces:Command:set ts=4Set the indent length for each level:Command: Set shiftwidth=4Encoding of the settings file:Set
Vim refers to the "VI improved", that is, the improved version of VI. Currently, Vim is probably the most widely used type of VI.Overview:Author and Brief History:Vim is written by Bram Moolenaar, and is also developed by other people. So vim can
Zhanhailiang Date: 2014-10-20Today read EXT/SESSION.C source code when you want to use Ctrl +] to find the definition of Php_session_start function, error: "E257:cstag:tag not Found", such as:Workaround:[Root@~/Wade/Codereview/php-5.3.29/Ext/Session]
DemandC99 introduces the "//" single-line annotation method, so C and C + + are bouncing in comments!For program apes often make "necessary" comments in the source code. To meet the special needs, such as debugging, code additions and deletions, and
It is troublesome to annotate multiple lines of Python code in Vim, mainly by following several methods:(1) Render the code that needs comments as a document string(2) render the code that needs comments as a function(3) Use Vim's own shortcut
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.