In Linux, Vim is a compiler, there are two modes
Vim initial mode is command mode, there are many kinds of commands in command mode
GG: Move the cursor to the first of the programG: Move the cursor to the end of the program8G: Move the
Reference from: http://www.cnblogs.com/itech/archive/2009/04/17/1438439.htmlITechSource: http://itech.cnblogs.com/Re-editing, only keep the usual commands, and add a little understanding and experience.1, VI of the basic conceptBasically, vi can be
1. What is the difference between VI and VIM, and what is the relationship between them?Vim is an improved version of VI, which adds a lot more functionality than VI2. How do I view the current system vim version? : Version3. What do I do if I want
10 + Tips to save time for vim novice2016-04-28 Linux Enthusiasts(Click the public number above for a quick follow-up)
from: Specs ' blog-love PHP
Links: http://9iphp.com/linux/time-saving-tips-for-unix-vim-beginners.html
Vim is the
[2016-04-12] [Vim common Commands]
Esc //退出编辑模式
i //进入编辑模式,光标停留在当前位置
o //进入编辑模式,在当前行之后新建一行,光标停留在新行行首
dd //删除当前光标所在行,在命令前加数字可以删除多行,如 5dd 将删除从当前行开始向下5行
yy //复制当前光标所在行,在命令前加数字可以复制多行,如 5yy 将复制从当前行开始向下5行
p
Vim's Column editing operations Delete Column 1. Position the cursor where you want to operate. 2.ctrl+v into "visual block" mode, select how many rows this column operates. 3.d deleted. Insert Column insert operation knowledge slightly different.
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
Watch video tutorial: Brother even Linux cloud computing Video tutorial 5.1 text editor Vim-5.2Insert commandA: Insert the word specifier in the cursor position;A: Insert at the end of the line where the cursor is located;I: Insert the word match
I. Source of the problemAfter the Ubuntu system is installed, enter the command in the terminal: sudo apt-get install vim, and after you type the root password, the system prompts you not to install Vim errors. Then follow the error prompts, change
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
Ctags (Generate tag files for source code) is a handy code reading tool under Vim. Although Ctags can also support other editors, it officially supports only vim. And Ctags is already installed by default in Vim, which can help programmers navigate
Vim is a very powerful editor, especially for the programmer population.Switching efficiency is often not high in various editors, and various features are easily confused. Vim is a good choice if you are only allowed to pick an editor.The direct
First,GCC compilation : preprocessing---> Compiling---> Assembly---> Link---> Executable file1.GCC-E xxx.c preprocessing the source file (XXX.I): The conditions beginning with # will be resolved in the preprocessing phase;2.gcc-s xxx.i compiling a
vim mode of OperationCommand modeInsert Mode inputEnd Line Mode VIM ABC if the file exists open, if it does not exist then createvim is in command mode by default when it startsThe command mode starts at the start of the cursor position, press A to
1, VIM Tutor enter--into the VIM tutorial Study 2, VIM filename return--Into the Vim editor 3, : q! Enter--Exit the Vim editor to save, then: Wq4, i--Normal mode, inserts text at the cursor position, into the text insertion state. return to normal
Delete Column 1. Position the cursor where you want to operate. 2.ctrl+v into "visual block" mode, select how many rows this column operates. 3.d deleted. Insert Column insert operation knowledge slightly different. For example, we insert "()"
Let's look at the color configuration scheme provided by the VIM editor:First enter the VIM's color directory (/usr/share/vim/vim74/colors, different system directories, it is recommended to set up in ~/. Vim directory, and then in some directories
Create a basic file and directory structure" Set up Vim's basic setup file vim ~/. vimrc" to create a plugin directory, all plugins have their own folders exist. Vim directory under mkdir ~/ . Vim ; Let the vundle take over. Vim plugin management
Vim configuration file (my favorite style)
In the/etc/vimrc File
If v: lang = ~ "Utf8 $" | v: lang = ~ UTF-8 $"
Set fileencodings = UTF-8, latin1
Endif
Set nu
Set tabstop = 4
Set nocompatible "Use Vim defaults (much better !)
Set bs = indent, eol,
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