Linux--vi, VIM editor command base __linux

VI is a command-line interface under the text Editing tool, Vim is an enhanced version of VI. Vim or VI commands can start the VIM editorVim + Destination file path Open file with vimIf the destination file exists, Vim opens the fileIf the

Vim multi-line indent and advanced commands

Vim Multiple Line Indent tips 1. Enter the visual state by V, select multiple lines and indent or indent with > or 2. Automatic indent typesetting is usually used according to language features: in the command state = = Two for the current line, or

Implement one of the simplest vim text editors (there may be bugs, write a random one)

Simple to write a text editor, the function is very simple, but enough to the file IO related operations familiar with the possible function or the size of the allocation is not perfect. Please refer to the reference: #include #include #include #

Linux cat text File Normal, vim garbled solution __linux

Always avoid coding problems this pit, when creating a text file, uses the Utf-8 encoding. But put on Linux, vim Open or garbled. Cat looks at the content is normal. So my code should be correct, but Vim does not use Utf-8 to open the text. Add

Use vim like using the IDE

http://download.csdn.net/download/litao0976/6325921 Recently configured with Vim, you can quickly build projects like Sourceinsight, find files, sign jumps, function lists, and auto-complete. Moreover, the symbol update is automatic, and from now

shell+vim--05

ln--->link links, there are two types of links:Soft Connect ln-s source file: Equivalent to create a shortcut, the source file is damaged after the link is invalidLn-s a.text a.text.soft//Create a soft link named A.text.soft for A.textHard Connect

How to find and replace in vim

"%s//second/g"People with vim know that this is to replace all the "most" with the meaning of "second". In fact, Vim's search and replace function is very powerful, good use can greatly improve efficiency.The Find and replace command for VIM is as

Vi/vim operation

Vi/vim is a text editor under the Unix/linux operating system.Due to the nature of unix/linux files, Vi/vim can edit any file in any format.The following are common knowledge points, for informational purposes only: Editing mode: Vi/vim + file

Basic operation of Vim

vim Normal mode, insert mode, command mode switchVIM open, cursor Movement, edit mode, normal mode, command mode toggle commandThe cursor can be moved in the screen text using either the left or right arrow keys on the keyboard or the HJKL letter

Linux Vim Common commands

(iv) General mode common operation"H (or left ARROW key)" Cursor moves left one character"J (or DOWN arrow)" Cursor moves down one character"K (or Up ARROW key)" Moves the cursor up one character"L (or right ARROW key)" Cursor moves right one

Vim edit mode, command mode, and practice

Press I to enter edit modePress I (I in uppercase) to enter edit mode and the cursor jumps to the beginning of the cursor positionPress O to start editing from the next line of the cursorPress O (capital O) to start editing from the previous line on

Common command shortcuts for VIM tools

First, the movement of the cursor0: Move to the beginning of the line.$: Moves to the end of the line.W:walk move to the next wordB:back move to the previous wordH or BACKSPACE: Move left one character; backL or Space: move right one character;

Vim multi-line cut, copy, and delete

How to cut shortcut keys:dd:剪切光标所处当前行n + dd:剪切光标所在行及以下共 n 行按 p 粘贴在光标所在行Command line mode:例如剪切1到10行,并粘贴在12行处:1,10 m 12How to copy shortcut keys:yy:复制光标所处当前行n + yy:复制光标所在行及以下共 n 行按 p 粘贴在光标所在行Command line mode:例如复制1到10行,并粘贴在12行处:1,10 co 12To delete a

Copy content between two different vim

The conventional idea is to open two vim and then do the YY and P operations, but the practice proves that it doesn't work at all. At this point, we need to split the window and then we can copy and paste. The steps are as follows:Suppose I want to

Text Editing tools Vim

VIM has 3 modes: General mode, edit mode and command modeGeneral mode[Email protected] ~]# Cp/etc/dnsmasq.conf/tmp/1.txt[Email protected] ~]# Vim/tmp/1.txtH left, L right, J down, K upPress X once and remove an O backwardsX, remove one character

Linux Beginner-Edit File tool vim

"Vim" is a very powerful and widely used editing method in Linux. Here are some basic uses of "Vim". Take "/etc/passwd" as an example.1. Vim Command modeEnter ": Set Nu" To add the line number as shown in. ": Set Nonu" To cancel the line number. ":

Linux Vim Common options

Vim command Three different modes Command mode Insert mode Last Linemode Bottom line mode Bottom-line mode common commands : W Save : Q exit :! + command

Vim Multi-file operation

[Vim]vim Learning Notes--Multiple files open, toggle, off one case is to open multiple files in the shell with vim, and open multiple files in the Vim editor while opening multiple files vim file1 file2 Open the file and display the horizontal

Turn Vim for efficient operation

This tutorial describes some of the basic techniques for using VIM in different modes of operation-insert mode, command mode, access to files, and so on. The goal is to help newcomers who have just touched vim to use this excellent editor more

Vim Smart Tip Plugin Javacomplete Installation

Download Javacomplete from the Https://github.com/vim-scripts/javacomplete websiteCreate a new Javacomplete-master folder and copy the Javacomplete-master.zip to this foldermkdir javacomplete-master && cp

Total Pages: 210 1 .... 114 115 116 117 118 .... 210 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.