Vim simple and practical & write code with VIMVI 1.c set up 1.c to enter terminal instruction modePress ESC to enter instruction modePress ESC and press: Enter command line modePress I to enter edit mode (Press I to enter, the cursor does not move.)
Vim's common mode is divided into command mode, insert mode, visual mode, Normal mode. In this tutorial, you only need to use Normal mode and insert mode. Switching between the two can help you to complete this guide's learning.
Normal
To search up from the current cursor position, use the following command:/pattern EnterWhere pattern represents a specific sequence of characters to search for.To search down from the current cursor position, use the following command:? pattern
Vim is the next powerful text editor for Linux, so let's take a look at some of the most common usage examples below.Vim has three modes of mode editing, last line mode, and input mode.The edit mode is used primarily for copying, pasting, and
(Disclaimer: This article is for Linux users such as Ubuntu)Three modes used by VIM:1. General Instruction Mode2. Edit mode3. Instruction-column Command modeVim's easy steps to walk:Simple command: (I think it's better for beginners to put it in
When you turn off the VIM editor (such as shutting down the terminal or powering off the computer), a. swp file is created, which is a temporary swap file used to back up the contents of the buffer.It is important to note that if you do not modify
If you've just started using vim and run vimtutor a few times, will it feel good vim is too clumsy to understand why it's so crowded, and even Visual Studio provides vim plugins. That's because you're still not getting rid of the mouse dependency,
March 2016 recordcommand line editing systemDD Delete a rowNDD Delete multiple linesDW Delete a WordNDW delete multiple wordsDaw Delete a word, cursor in any positionDGG Delete all previous wordsDG Delete all the words behindU undod^ Delete to the
(. 1.): s/vivian/sky/Replace the current line the first Vivian is sky: S/vivian/sky/g replaces the current line all Vivian are sky(. 2.): N, $s/vivian/sky/the first Vivian of each row in the beginning of line N to the last row is sky: N,
"An example forA VIMRCfile. "Author Holen" Data .-6"Use Vim settings, rather than Vi settings (much better!)." This must is first, because it changes other options asa side effect.Setnocompatible "Allow backspacing over everythinginchInsert
Some of the most common Vim editor shortcut keys:h","j","k","l", respectively, control the cursor left, bottom, up, and right one grid.Press "ctrl"+"b": The screen moves one page to the back.Press "ctrl"+"f": The screen moves one page to the
Edges byThe keyboard operation under Vim is remembered when operating under the Sublime Text 2. I was happy to find it on the Internet, and found out that Sublime text 2 supports the VIM-like keyboard operation.Configure the process in this
To open multiple files:1.vim has not started yet:Enter in terminalVim file1 file2 ... filen can open all the files you want to open2.vim has startedInput: Open FileA file can be opened again, and the contents of the file will be displayed in Vim at
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.To meet the user's requirements, it became popular to configure the Vim interface
Chinese Installation ManualInstallation method:Download the Chinese Help package on the following website:$wget http://nchc.dl.sourceforge.net/sourceforge/vimcdoc/vimcdoc-1.5.0.tar.gzafter decompression, there is a Doc folder, the contents of which
Objective:for the configuration of vim, I also saw a lot of methods on the Internet, touched a lot of walls, so I know the pain. So let's share some of the ways I can configure vim below. Configuring the EnvironmentFirst of all, the description of
Vim is a text editor developed from VI that is more powerful. And Vim.tiny is a lite version of Vim, so it's imperative to install Vim. At the same time, many programmers in Windows like sourceinsight This tool to look at the code, various syntax
工欲善其事, its prerequisite, we need to use VIM first to configure it handy, this can greatly improve our work learning efficiency1. Jump Command CTAGS1Download ctags from the address below and copy the Ctags.exe to the Vim directory, such as E:\Vim\vim7
Article turned from: http://www.netingcn.com/vim-%E5%88%86%E5%B1%8F%E6%93%8D%E4%BD%9C.htmlStart vim to open multiple files and split screen display:vim-on file1 file2o for lowercase letters, up and down, N is the number of split screen, followed by
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