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
1. Make sure to see the color in the Linux terminal, configure ~/.BASHRC the following uncomment:
# Uncomment the following lines if you want ' ls ' to be colorized:
Export ls_options= '--color=auto '
Eval "' Dircolors '"
Alias ls= '
A. Mobile: h,j,k,l: Left, bottom, top, right. W: The first word of the next word. W: Next word (without punctuation). E: The ending of the next word. E: Punctuation is not included. B: The word head of the previous word. B: Punctuation is
VIM InstallationTo install vim under Unbuntu, enter the command:sudo apt-get install vimVim ConfigurationWhen using vim for editing under the terminal, by default, the editing interface is not displaying line numbers, syntax highlighting, smart
When Vim starts, the user directory is loaded by default. VIMRC configuration file, if it does not exist, the system configuration file is loaded/ETC/VIM/VIMRC~/.VIMRC file Configuration#避免中文乱码Set fileencodings=utf-8, ucs-bom,gb18030,gbk,gb2312,cp936
Add the following to the ~/.VIMRC file:
Set statusline=
Set statusline+=%7*\[%n] "Buffernr
Set statusline+=%1*\%
Set statusline+=%2*\%y\ "file type
Set statusline+=%3*\%{". ( &fenc!='? &fenc:&enc). "} "Code 1
Set statusline+=%3*\
The vi Editor, the full name of visual interface, can perform numerous text operations such as output, delete, find, replace, and so on. VI is not a typesetting program, it is not possible to arrange fonts, formatting, paragraphs, and other
Problem:Ubuntu does not have Vim installed by default and appears:[email protected]: ~$ vim test.cThe program ' Vim ' can is found in the following packages:* VIM* Vim-gnome* Vim-tiny* Vim-athena* VIM-GTK* Vim-noxTry:sudo apt-get Install
Last-line mode focuses on (this is the basis for learning the SED)1) Address delimitation: Start_pos[,end_pos]#: Specific # lines, e.g. 5 for line fifth.: When moving forward$: Last line#,#: Specifies the row range, the left is the start row#,#+:
Text processing in Windows has Notepad, so how do you do text processing on Linux systems? That's using VIM.Understanding VIMPractice: Use VIM to create a new text file in the current directory with the command testvim.txtVim mode1, insert modeIn
Detailed reference http://www.runoob.com/linux/linux-vim.htmlI insertI Line Header InsertionA Line End InsertionFN +←, beginning of the lineFN +→, end of linefn +↑, PAGE upfn +↓, PAGE Down
[Ctrl] + [f]
Screen "Down" to move one
Reference: Https://github.com/yangyangwithgnu/use_vim_as_ideHttps://github.com/Valloric/YouCompleteMeThere are several issues with the installation of the full install step in Https://github.com/Valloric/YouCompleteMe:(1) in executingCmake-g "Unix
Vim Command modeVim can be configured to work in Vim's command mode: Set nu line number added650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9C/29/wKioL1lszNOjo3V-AAGGfA_ifkw114.png-wh_500x0-wm_ 3-wmp_4-s_649828243.png "title="
Vim Editor basic commands (top)Three modes:Edit mode, input mode, last line modeDefault to edit modeMode conversion:Edit mode--Input mode:I:insert, enter at the cursor positionA:append, enter at the rear of the cursorO: Opens a new line below the
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi Improved:vi the basics plus some useful pluginsFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In
When using a CentOS host, -bash:vim:command not found appears when using Vim. Only VI. So how to install vim?Enter the Rpm-qa|grep vim command, and if Vim is installed correctly, it will return the following three lines of code:[Email protected]]#
The configuration file for Vim is/ETC/VIMRC, or the configuration file is created in the ~/directory:Touch. VIMRCHighlight settings in general, Vim for the recognition of the program is automatically set highlighting, if not can be added in the.
After creating a Python file with vim, such as pw.py, the file header will be filled in automatically, such as: 1 #!/usr/bin/env python 2 #-*-Coding:utf-8-*- 3 # Pw @ 2013-04-15 17:26:33Add the following code to the/ETC/VIM/VIMRC file:function
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