Linux Tips--vim Multiple lines of comments and uncomment multiple lines

Multi-line Comments:In normal mode, enter ctl+v;visual block mode, Press and hold the upper and lower keys to select the line to be commented , enter uppercase I; in insert mode, Enter//, Press the ESC key at the end. Cancel multiple lines of

Vim progress bar

Progress bar principle: Data is growing from 0%~100%, but does not change lineImplementation code for the progress bar:650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/2E/wKiom1eHjzmQTBK-AABy_zCJji8892.png "title=" Stdout2.png "alt="

Linux VIM Editor

1. Working modeCommand mode (A,i,o and other keys)--"Input modeInput mode (ESC key)--"Command modeCommand mode (: Key)--end-of-line modeLast-line mode (ESC key)--"Command mode2.vim using commands1) Cursor MovementCursor direction move ↑, ↓, ←, → top,

vim--'s beginner to take a few steps

(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

Linux-vim Text Editor

Vim operation modeCOMMAMD Mode-Command modesInsert mode-Input modesLast line mode-bottomI,o: Enter input modeEXC: Enter the bottom row modeIn command mode DD: Delete the current line where the cursor is located "Other reference vim common"H,J,K,L:

Modify the Vim editor to automatically display line number indentation

1. Temporary modificationin the vi ,set tabstop=4 or Set ts=42. Permanent modificationVI--version Viewing the files to be modifiedif it is vim words, modify ~/.VIMRCif it is VI, modify ~/.EXRCPlus: Set tabstop=4Set nu//Display line numberSet

VIM Common Commands

1, when the VI is opened by default command mode, to enter the input mode, you need to press A or I key.Command mode:: Wq Save and exit: W only save does not eject: Q Do not save exit: q! Do not save forced exits: wq! Save and Force exit2 . FindIn

Vim Daquan Usage

Common settings and actions in Vim:Under the Linux system:Open VI File:0 number 0, jump to beginning of line ^ jump to row first non-null character $ jump to end of lineVim brackets match Jump actions:Ctrl +] jump to function or variable

Vim Quick Guide

The VI editor has 3 modes: Command mode, input mode, and last line mode. It is important to master these three models:Command mode: VI starts after the default entry is the command mode, any mode, press the [ESC] key can return to the command mode.

3, Grep,vim, compression function detailed

Morning OrderLess abc.txt Viewing the ABC file can be turned upside downLS--help | More (view the file in more ways)Cat abc.txt View ABC fileHead-5 abc.txt View Top Five ElementsTail-5 abc.txt View Tail Five Elementshead-10/etc/passwd | Tail-4 view

Vim cannot input problem resolution under terminal

The recent return to vim found that occasionally vim can not be entered, but the cursor in the case of motion, once suspected is spf13 problem, later after searching, only to find out is because vim, shortcut key Ctrl+s function is to stop the input

Installation and use of Vim plugin Ctags

installation and use of Vim plugin ctags2013-11-19 20:47 17064 People read comments (0) favorite reports Classification:Development Tools (3)Linux Programming (9)C + + programming (one)Copyright NOTICE: This article for Bo Master original article,

Vim usage Daquan

The VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions. Because the VIM editor is the

Vim Common commands

Ctrl + F scroll down one screenCtrl + B scrolls up one screen/text find text, press N to find the next, press N to find the previous one.? text find text, reverse lookup, press N to find the next, press N to find the previous0 (number 0) move to the

Vim g and% difference

The difference between G (global) and% in Vim:G: The Globals/pattern/replacement/: Replace each pattern that appears in the lineG/pattern/s/pattern/replacement/g: The G at the beginning is a global command, which means that all rows that match the

Vim--macro

Cases: QA some vim command QThis macro only records the VIM command to register a, which can be executed with the command:@aYou can also add the number of executions:[Email protected]Performed 10 timesOnce you have performed a @a, you can

Linux:vim Simple Start

Now the Linux system is generally installed by default vim editor, if there is no VIM editor installed, there will be a VI editor, the VI editor produced more time than the mouse to come earlier, although the function is very powerful, but I

Tenth chapter VIM Program Editor Learning

1.Vim is an advanced version of the Vi,vim can not only display text content in different colors, but also can do such as Shell Script,c program editing functions.The difference: VI is the teacher's word processor, but the function is very complete,

Bash command/file Management-vim operation

Command mode (move cursor, copy, cut D, paste p, delete x, Undo U, Redo Ctrl+r, replace R)Insert mode (write new data) A (post-word insert) I (insert before word) O (Insert new line)Last-line mode (save File W, Save as W filename, open file o, read

Simple configuration of Vim in Linux

This article mainly shares the simple configuration of vim in Linux ★ Location of configuration Files In the directory/etc, there is a file named VIMRC, which is the public vim configuration file in the system and is open to all users. In each user'

Total Pages: 210 1 .... 180 181 182 183 184 .... 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.