Linux system Vim Editor and find command related knowledge

Text editor, word processor Ascii Nano, SED Vi:visual Interface Vim:vi improved Full screen editor, patterned editor Vim mode: Edit mode (Command mode) Input mode Last line mode ------------------------------Mode conversion: Edit--> Input:

Linux VI, VIM command Daquan

one or one-like mode: Delete, copy and paste Class command X,x x to delete one character backwards, X to delete a character previously NX (n represents number) Delete n characters backwards DD Delete when forward D Delete all characters in the

The garbled solution of vim under Windows

The method is simple enough to add the following code to the _VIMRC:""""""""""""""""""""""""""""""Solve the Chinese garbled problem under windows The code is as follows Copy Code """""""""""""""""""""""""""""Set Encoding=

How many times does the Vim editor match a string appear

Vim combines regular expressions to achieve complex functions, such asCommon find substitution%s/matching strings/replacement strings in vim/gIf you want to match only the number of strings:%s/string/&/gnN, which represents only the number of

Ruby Learning Notes II help generate VIM Add the Code _ruby topic of the dock

The scripting language is really strong. My goal is to add my default dock function to Vim. /****************************************************************************** * Copyright NOTICE * Copyright (c) 2014 All rights reserved *----Stay

Text objects and related plug-ins in Vim

Recently on personal blog http://foocoder.com will introduce a vim plug-in every day, think of the garden has not been updated for a long time, but also to update an article. Today, according to the request of the reader, introduce the next text

The text of the modified column pattern in Vim is the increment ordinal of ABCD or 1234

Add in VIMRCVnoremap : call addcharofcursor () "Incrementing characters in column modefunction! S:addcharofcursor ()Let C = col ('. ')Let L = line ('. ')Let L0 = line ("' Let L1 = line ("' >")Let char0 = Strpart (Getline ('. '), c-1,1)for k in range

Common basic commands for Linux VI vim

Vim Install yum install-y vimVim View basic information vim--versionVim Open and new file vim [filename]Vim operation after entering the fileNote: There are several modes of vim first1, shortcut key mode: Vim can only move the cursor up or down

Vim Entry-level use

1. Just enter command mode2. I enter insert modeYou can only enter content in insert mode, if you want to delete the content, you need to switch to the command line mode and move the cursor to delete.3. ESC exit Insert mode to enter command line

Vim paste code format is scrambled

Sometimes you copy and paste code from the editor into Vim, and the code format is completely messed up. The reason for this is that vim turns on smartindent (smart reduction) or autoindent (auto align) mode. In order to maintain the format of the

Vim for full Select function

have been looking to see if there are quick ways to Select all , but many of the web is repeated, and the wrong, such as:1, $y, what is this? To write also written: 1, $y, but I tell you, write: 1, $y is all copied, not a full selectionDG, this is

How Docker containers install vim

Mv/etc/apt/sources.list/etc/apt/sources.list.bak && \echo  "deb http://mirrors.163.com/debian/  Jessie main non-free contrib " >/etc/apt/sources.list && \      echo  "deb http://mirrors.163.com/ Debian/ jessie-proposed-updates main non-free contrib "

Use of the Linux base vim

1. Introduction of VIbasically , VI is divided into three modes:Command mode Open a file with VI directly into the command mode. In this mode, you can use [up or down ] keys to move the cursor, delete characters to process the contents of the file,

How to get out of the VIM editor in a Linux system, methods and differences

In the Linux family, the Vim editor is the system's own text editor, which is powerful and self-contained.I have small white, just contact with Linux, to modify a text file, it is not possible to operate like windows, and, worse, into the VI editor,

Supplement: About Man about see ALSO (see) in code and VIM under common commands

1. when looking up the/etc/issue file, use man issue to find manual in See also appears MOTD (5), Agetty (8), Mingetty (8). And what issue (5) means at the beginning of the document.Man man is explained after:1 executable programs or shell commands--

VIM environment variable configuration, background color configuration

When we use VI or VIM, if we want to display line numbers, we may do this: switch to command mode, then enter set Nu, then press ENTER to display, and we are writing programs, sometimes we would like to press ENTER, the cursor is not always at the

Linux VI (VIM) Common command Summary

1 find/xxx (? XXX) means searching the entire document for a string matching xxx,/means looking down,? It means looking up where xxx can be a regular expression, not much about regular typing. Generally case-sensitive, if you want to be

Makefile rules writing &c language string copy &vim introduction

Makefile Rules:[email protected]: target file$^: All dependent files$-C: Output target code, do not output executable file-G: Compile the compiler to provide information later on the program debuggingTarget:rulesGcc-o [email protected] $^InstallCP

Solve the problem of using vim to write Python's indentation incorrectly in Linux

The first step:Open terminal, enter on terminal, vim ~/.vimrc return.Step Two:Input:set helplang=cn "Chinese help document (if the Chinese package is down) syntax Enablesyntax on" Automatic syntax highlighting set number Show line number

How to use the vim multi-window function

Generally, editing software provides the "cut window or freeze window" function, so that one or more files are displayed in multiple windows. Vim also has this function.The following is a summary of the multi-window operations in Vim.I. Opening and

Total Pages: 210 1 .... 103 104 105 106 107 .... 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.