The following picture, a look to understand, from now on, learning becomes no longer difficult!Fill in the note:There is no search and replace in the figure, which should be used below.Top-down lookup operations/word lowercase n and NBottom-up
With the depth of study, we see the code is more and more large, which makes us in the search for a function of special headache, down we study together under the Vim will also be built:Ctags AdvantagesCtags can create tags tags for files, to
The VIM editor in Linux is detailedVim:visual Interface improved also called full screen editor, modal editorThere are four modes of VIM:Edit mode (Command mode)Input mode (insert mode)Last-line modeReplacement mode1. Mode conversion:Edit mode to
1. Hit two times the letter D removes the cursor from the row2.vim + filename Open file positioning cursor at the end of the beginningVIM +n filename cursor positioned on nth rowVim +/xxx filename navigates to string xxx first occurrence line3.vim
Vim-instant-maRkdown Plug-inThis plugin supports vim when editing markdown files in real-time preview, do not need to do anything manually!Using VIM to open a xxx.md file, the browser will automatically open a preview page, in the process of editing
My Linux system is Ubantu14.04, the default is the VI compiler, now install the VIM compilerOpen terminal input: sudo apt-get install vim-gtk generally yes, but I have an error message:Reading Package List ... Completing the dependency tree for the
Simple settings for VIM themes:Call pathogen#infect () syntax on"turn on syntax highlighting"Chinese support set fileencodings=UTF-8,CP936,BIG5,EUC-JP,EUC-KR,LATINL,Ucs-bomset ambiwidth=double "prevents special symbols from being output ColorScheme
Verb
The verb represents what we intend to do with the text. For example:D means delete deletesR indicates replacement replaceC means modify changeY means copy YankV indicates that the visual select is selected
Noun
Nouns
1. Install VimYum-y Install Vim2. Install the Vundle plugin Managergit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vim3. Edit Personal VIMRC# VI ~/.VIMRCSet nocompatible ' be improved, requiredfiletype off ' required ' set
First, learn the VIM native shortcut keys and related commands before adding plugins. (When used to record, temporarily will be chaotic, irregular sorting)Ps:ctrl+s means stop output to terminal; The ctrl+q resumes to the terminal output stream.
1. Open the file and create a new file if it does not exist:Vim file name2, entered after the general mode, unable to enter the textInput I in edit mode, you can directly edit the contents of the fileInput: Enter command mode, you can type a new
Vim in the work of a tab width is too large, not changed before the width is 8 characters, want to change to 4, using the following command:CD ~vim. VIMRCAdd the following lines: (in parentheses is the command meaning, do not write)Set shiftwidth=4 (
Three basic modes: default in edit mode when openEdit mode: Also called command modeInput mode: InsertLast-line mode: Built-in command-line interfaceOpen File:# vim [OPTION] ... FILE ...+#: After opening the file, the cursor is directly at the
1."Download"vim-7.4 :ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz22."Unzip"Tar jxvf vim-7.4.tar.bz2after that, the source file is under the compression package src directory insideIt's best to do it in this directory only . Configure , Make and
The default vim does not support NESC syntax highlighting, which brings inconvenience to reading source code. However, you can solve this problem by loading Nesc Syntax highlighting plug-ins, as follows:Step one: Download pluginsDownload NesC Syntax
Vim,virtual Interface Improvement is a full-screen, modal editor editor.
Mode
Edit mode (Command mode):Input mode:Last-line mode:
Mode conversion
Edit mode, Input mode:I: Turns into input mode before the character of the
VimI haven't felt much more efficient than using sublime text on my Mac at the moment.Installationsudo apt-get install vimCommon configuration In the Linux environment, VIM's initialization configuration file is. VimRC, usually two, system version
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