On the Linux platform, there are many good shell command combinations to do multiple file lookups/replacements, such as these commands: Find,sed,grep,awk,perl. But other platforms such as windows are less convenient, and Vim's built-in multiple file
Multi-column windowYou can divide the current window horizontally into two columns by using the following command
: NewCreate a new column blank window
: SplitDisplays the current file in two columns
Similarly, you can use the following command
1 find/xxx (? /means look down,? indicates that the look up where xxx can be a regular expression, about the formal type is not much to say. Generally case-sensitive, to be case-insensitive, you must first enter: Set ignorecase Find later, then
In Linux without a desktop environment, the command-line mode terminal operation is inevitably a bit difficult, but learning to use some shortcuts will do more with less. Common shortcut keys under the Linux command line are:Delete:CTRL + D deletes
View file encodings in vim: Set fileencodingYou can display the file encoding format.If you just want to see other encoded files or to solve the problem of using Vim to view files garbled, thenAdd the following to the ~/.VIMRC file:Set encoding=utf-8
Summary of the first lecture1. The cursor can be moved in the screen text using either the arrow keys or the HJKL letter key.H (Shift left) J (downlink) K (upstream) L (shift right)2. To enter the Vim editor (from the command line prompt), enter:
/************************************************************************* * Ubuntu Vim Copy to System Pasteboard * Description: * The content of Vim is copied to another application, before the general use of the mouse, now or instead of using the
Introduction to a VIM modeThe following introductory content is from the Wikipedia vimThere are many modes of vim from VI, this unique design is easy to confuse the beginner. Almost all editors have two modes of inserting and executing commands, and
Paste a self-used vim configuration file, the personal feeling that these configurations are not bloated, for the operation is basically enough.Set Shortmess=atiSyntax enableSyntax on "SET syntax highlightingSet NuSet rulerSet autoindent "Setting
9.Vim editor the enhanced version of the Vi editor supports multiple language scripts, file type plugins, text completion modes, and many other options. Command mode: For file navigation, cut and paste both simple commands. Undo recovery and other
Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
A mobile class1. Move to the first line of the file GG2. Move to the last line of the file G3. Move to the top line of the current screen H4. Move to the last line of the current screen LTwo editing classes1. Replacement character R2. Delete
collect the usage of simple VIM split screen display function:Split screen start vimvim-on file1 file2 ... Use the lowercase o parameter to split the screen up and down.vim-on file1 file2 ... Use the uppercase O parameter to split the screen left
Vim Editor Usage rules
The Vi Editor has 3 usage modes: General mode, edit mode, and command mode.
$SHELL: View the current default SHELL type
$BASH _version: View the current Shell version3. General Mode:
Cursor
Recently transferred from the IDE to vim, a lot of habits inconsistent, specially configured a vim environment. On the Internet to find the great God's post, afraid to forget, hereby commemorate.Portal Http://www.cnblogs.com/ma6174/archive/2011/12/10
Record your own youcompleteme installation steps:Vim does not have the code auto-completion function is very uncomfortable.1, first clear: The MAC comes with Vim is 7.3 version, and Youcompleteme installation requires more than 7.3 version of Vim.
Vi:linux text editor, all Linux distribution will be taken by default.Vim:vi's enhanced version, it can automatically call the program's syntax judgment based on the file's suffix or the information at the beginning of the file to determine the
Experimental system version and VIM version System: CentOS6.3 vim:7.2 Plug-in introduction (Attach a photo) Nerdtree (plugin for navigating the directory structure on the left side of the window) Solarized (a vim theme that you think is more
The multi-line comments and multi-line Delete commands in Vim, which are also frequently used tips, can greatly improve productivity. 1. Multi-line Comment: 1. First press ESC to enter command line mode, press CTRL + V to enter the column (also
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.