Preparation Before installing SPF13:To install Git:sudo apt-get install gitsudo apt-get Install CurlInstall and execute Https://github.com/spf13/spf13-vim using the official methodCurl Https://j.mp/spf13-vim3-L > spf13-vim.sh && sh spf13-vim.shYou
1. Select chunks, replace or deletePress v First, enter the visual editing state, select the replacement area, then CTRL + V, and then press C to remove the selected area.2. Delete by line or by wordd$: Removes all characters from the position of
There is a. VIMRC under the user's home directory (/home/username)./etc There is also a VIMRCGenerally only the user home directory under the. VIMRC this profile is valid only for usersUse Su-username for configuration to take effect after change (e.
The previous log has been documented in step by step how to configure the Vim development environment on a native Mac with a variety of plugins.With a certain experience, the configuration of the VIM environment to the lab remote server centos6.4
Vim and VI usage are basically the same, Vim is more powerful, and there are color markers. Vim is used, VIM has three modes are general mode, edit mode, command mode.
General mode: Delete, copy, and pasteX: Remove BackwardX: Delete
The configuration file for vim in CentOS is stored in the/etc/vim directory with the configuration file named VIMRCin the terminal, enter the following command to edit the VIMRC configuration file:sudo vim/etc/vim/vimrcor sudo gedit/etc/vim/vimrc1,
Vim+ctags can easily access the Linux kernel source code. Ctags, Cscope, tlist several tools can be shared.First, ctags!. In fact, it is only used to generate a tags file, that is, the source code objects found, and recorded, put into the tags file.
First, move the cursor1, left shift H, right shift L, Move down J, move up K2. Page Down CTRL + F, PAGE up Ctrl + B3. Turn down half a page Ctrl + D, turn up half a page Ctrl + U4, move to the end of the line $, move to the beginning of 0 (number),
Take the Tomcat profile Service.xml as an example to record and learn the most common operations of VI.> What is VI or vim?Mans VI VIM (1) VIM (1) NAME - Vi Improved, a
Brief introduction:Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI. Vim is purely free software.Three modes General mode:Vim opens a file and goes into general
Have a certain VIM basis can read this article, can quickly query common commands.Use VIM to install the following three packagesvim-minimal only provides VI and related commandsvim-enhanced provides VIM commandsvim-x11 offers GvimVIM has three
1. Create a new. vimrc file.2. Add content to the file.Set tabstop=4 set softtabstop=4 set shiftwidth=4 set Noexpandtab set Nu 3.TabStop: Indicates the length of the number of spaces that a tab displays, by default it is 8.Softtabstop: Indicates
Matchit This plug-in, is Vim comes with, but the default is not installed. In Vim, you can use% to achieve jumps between parentheses, but with this plugin you can set any tag that you want to jump.Knocking VI in Linux open a blank file: Help Matchit-
Linux system directory/usr/share/vim/vim74/autoload The following are some of the plugins that are available after Vim is installed, if you need to enable these plugins to be configured in ~/.VIMRC, such as: Configure the Python plugin to be enabled,
I. Substitution and revocation of characters (undo action) 1. Replace and revoke (undo) commandBoth the Replace and undo commands are for normal mode operations
Command
Description
r+
Replace the
Why use VIM? Originally use sublime to do foreground development, but with want to learn node, side to use command station, side to switch back, in Mac Ben really not so convenient. So start learning vim. For a brief introduction, the Congo enters
Often forget the sudo directly with vim edit/etc files, and so on editing, save time only found no permissions.OK, the way to save the curve is to first keep a temporary file, exit and then sudo CP back. However, in fact, the process can be done
CD ~Ls-al will find a. vimrc fileOverwrite the following code with the. VIMRC contentMap : Call Saveinputdata () func! Saveinputdata ()Exec "Tabnew"exec ' normal ' +GP 'Exec "w! /tmp/input_data "Endfunc"ColorScheme Torte"ColorScheme
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