Requirements:
Find a batch of HTML files from the current directory and use an HTML file to express their addresses with hyperlink so that other pages can be accessed through this page in the browser.
1. Find.-INAME "* Valid *. *"> valid.txt
1. Use Vim's comparison mode to open two files:Vim-D file1 file2OrVimdiff file1 file2
2. If the file file1 has been opened, open another file file2 for comparison:: Vert diffsplit file2If the vert command is not used, diffsplit will split up and
Recently I am learning to use gvim. The operating system is ubuntu. gvim has many useful plug-ins, such as taglist, bufexplorer, and winmanager. These plug-ins can be downloaded from www.vim.org. Copy these plug-ins (*. Vim) ~ /. Vim/plugin
1) Some Common Vim configurations, in ~ /. Syntax on in vimrc supports syntax highlighting set nu to display row numbers
Set Nonu does not display the row number set AI sets automatic indent set shiftwidth = 4 sets automatic indent 4 spaces,
1 shiftwidth
This is usedProgramIndicates the white space length used for automatic indent. In general, to keep the program beautiful, it is best to be consistent with the following parameters. It is also the setter of the symbol shift length. 2
Common Vim operations, plug-ins, and vimrc files
First:
My custom color scheme:
The evening color scheme of the system:
1. Common OperationsVim, as a text editor, is powerful. In my opinion, it is quick editing, and rich extension plug-
-- To do good things, you must first sharpen the tool.Vim is VI improved. VI is an excellent text editor on Unix-like systems. It is better to use gvim on various platforms.Vim's official website is: gvim inside the http://www.vim.org Program Free
I. Basic concepts of viBasically, VI can be divided into three states: Command mode, insert mode, and last line mode. The functions of each mode are as follows:A) Command Line Mode)Controls the movement of the screen cursor, the deletion of
SourceProgramFiles (usually plain text files) Comparison and merging tools have always been an important part of the software development process. Many powerful dedicated comparison and merge tools on the market, such as beyondcompare. Many ide or
In vim, there are four encoding-related options:Fileencodings,Fileencoding,EncodingAndTermencoding. In actual use, any option error may cause garbled characters. Therefore, each Vim user should clarify the meaning of these four options. The
==> Compressing manual pages for VIM-7.3.121
==>> Registering installation for VIM-7.3.121
==> Cleaning for libXt-1.0.9, 1
==> Cleaning for intltool-0.41.1
==> Cleaning for pkg-config-0.25_1
==> Cleaning for atk-2.0.1
==> Cleaning for glib-2.28.8_4
=
After entering VI, insert the lower-case "I" key after the cursor; insert the lower-case letter "O" key under the cursor; insert a lower-case letter "a" before the cursor.
For example, to copy 5 rows of data under 6th rows (including), put them
Vim-move cursor
H, J, K, L → left, bottom, top, right. → flip down. → page up.% → Move the cursor to the matched {}.W → start of the next word.W → same as W.E → end of a word.E → same as E.B → the first word.B → same as B.0 → the beginning of the
Author: gnuhpc http://blog.csdn.net/gnuhpc/
1. move the cursor
Move the cursor effectively in the current row. Note that these letters can be used with deletion, movement, and other operations.FX: move the cursor to the next X of the current row.
In vim, there are four encoding-related options: ''fileencoding'', ''fileencoding'', ''encoding'', and ''terencoding ''. In actual use, any option error may cause garbled characters. Therefore, each Vim user should clarify the meaning of these four
--------------------------------------------------
In ubuntu, how does one right-click the terminal?Right-click the terminal and add a menu. Sudo apt-Get install Nautilus-open-Terminal
--------------------------------------------------
Install
Well, what I'm talking about here is not how to use tabnew in the terminal to open a new tag, but how to use gvim to open a new file in windows, it is opened on the gvim tab by default.
Here there are two main methods, in fact, the principle is the
The simplest way to convert a string of decimal numbers to hexadecimal numbers using Vim is as follows:
: % S/\ D \ +/\ = printf ("% x", submatch (0)/g
The principle of this command is to replace a string of numbers with the output of the printf ()
Register
The editor usually has a clipboard to store the copied and cut content. A similar concept in VIM is called register ). Besides an anonymous register, VIM also has a bunch of well-known registers. You can use "(see": Help "") or "Ctrl-R"
If you like vim and write JavaScript at ordinary times, this article will write for you :) if you like JavaScript but haven't found a proper editor yet, please give Vim a try.
The following assumes that you have some knowledge about vim, and all
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