Vim Editor Optimization problem

Use the Xhell to connect the server using the optimized Vim editor cannot appear option Set nocompatibleSet history=100FileType onFileType plugin onFileType indent onSet AutoreadSet Mouse=aSyntax enableSet CursorlineHi cursorline guibg= #00ff00

Initial knowledge of vim and regular expressions

1, the Replication/etc/skel directory is/home/tuser1, requires/home/tuser1 and its internal files belong to the group and other users do not have any access rights.~]# mkdir /home/tuser1~]# cp -r /etc/skel /home/tuesr1~]# chmod -R go-rwx /home/tuser1

Some tips for using the Find command and VIM

Find and copyFind/boot-size 1m-exec cp-r {}/mytest/\;Vimd^ Delete from cursor to beginning of lined$ Delete from cursor to end of lineSave As: W/temp/mycp.txtRead: R/temp/mycp.txtReplace All%s/root/temproot/gReplace cursor at the beginning of

Linux Command 2 and VIM editor

1. Find permissions are not sufficient before adding Sodu find--help2. TarPack TAR-CVF Xxx.tar xxx.xxUnpacking TAR-XVF Test.tar (original package not deleted)Packaged compression TAR-ZCVF xxx.tar.gz xxx.xxTAR-JXVF xxx.tar.bz2 xxx.xxZip Zzz.zip

Vim General mode

Introduction to Vim Yum install-y vim-enhanced installation package Vim is an upgraded version of VI Vim is color-displayed Sub-general mode, edit mode, command mode Vim color display and move cursor in general mode The same

Vim Edit and Command mode

Vim edit mode I enter edit mode from where the cursor is located I enter edit mode from the beginning of the cursor position O Enter edit mode from below the line where the cursor is located O Enter edit mode from the line where the

Set tab and wrap in vim

Today when using the Vim editor to find the default tab key is 8 characters, so think of it set to four spaces, after Baidu, got the following methods:First Enter/ETC/VIM/VIMRCThen add the following code at the end of the document:Set tabstop=4

Basic use of VIM

Vim three modes set in the editor- Command efficiency, and users will feel quite handy after the habit. To manipulate the text efficiently, you must first understand the 4-1 ). ?  Command mode: Control the movement of the cursor, you

Vim Search Substitution function

VI's search substitution language format is roughly as follows: [Range]s/[string]/[replace string]/[g,c,i]Areas:範圍表示法為開頭 , 結束 假如我要從第 1 行到第 150 行,可以這樣下: 1, 150 假如我要從第 1 行到最後一行,可以這樣下: 1, $ 假如我要設定全部範圍,可以這樣下: % (其實跟 1, $ 意義是一樣的)

Vim Common operation

Vim is a very useful text editor for Linux, and people who develop under Linux are familiar with VIM commands.1. Open on line 143thVim +143 filename.txt2. Read-only mode openVim-r/tmp/a.txt3. Force SaveCommand mode wq!4. Go to the end of the current

Linux VIM Environment configuration

Under the user directoryCreate User Profiles ~/.VIMRC1. Command descriptionVSP Vertical Paging2. Basic ConfigurationSyntax on " syntax highlighting turn on set tabstop=4 "tab width set to 4set Expandtab " tab

Vim Simple Operation---learning essays

Delete Cut X ---> Delete the character of the current cursor DD ---> cut the current line (delete the current row) P ---> Paste the current line (paste the next line) p -- -capital P paste yy in current line ---> Copy

Vim Usage Tips

First, Vim common operation1. Insert commandA specifier insert in the word cursorA at the end of the line where the cursor is insertedI match either insert in the word cursorI insert at the beginning of the line where the cursoro Insert a new line

Vim Text Editor

vim编辑器三种工作模式: 命令模式 输入模式(插入模式) 末行模式 1, 光标跳转 Home 键、数字 0 跳转至行首 End 键 跳转到行尾 PgUp 键、PgDn 键 向上翻页、向下翻页 1G 或 gg 跳转到文件的首行 G 跳转到文件的末尾行 2,复制/粘贴/删除 yy、4yy 复制光标处的一行、4行 p 粘贴到光标处之后、之前 x 或 Delete键 删除光标处的单个字符 dd、6dd 删除光标处的一行、6行 d^ 从光标处之前删除至行首 d$ 从光标处删除到行尾 C

Linux command line shortcut keys and vim shortcuts

Linux command line shortcut keysShortcut keys: Tab Auto-complete path directory name, +l (lowercase) Clear screen, CTRL ++ + +e (lowercase) to command line end shortcut: Ctrl+k Delete/ cut the contents of the cursor to the end of

Compiling vim problems with MinGW

lua

Compiling VIM reference: 1190000005820066One, storage size of ' st ' isn ' t known (reference: https://www.cnblogs.com/davytitan/p/4452895.html)Willtypedef struct _STAT64 stat_t;Change totypedef struct _STAT64 stat_t;  Second, undefined reference to

Vim Editor---Bulk comments and anti-annotations

Reminder: VI Edit does not support multi-line comments, be sure to use vim1. Multi-line Comment:1. First press ESC to enter command line mode, press CTRL + V to enter the column (also known as block) mode;2. Use the upper and lower keys at the

Vim Configuration python development environment

Posted on November 7, 2011 by Sam This time has been in Python with the idle editor, but this idle code indentation really hurt, when you use the If:elif:, the Elif: not automatically aligned, which makes me often in the debugging time only to find

Python Learning record--ubuntu (v) Vim

I. Working mode switchingTwo. Vim Command small copyThree. Operation Commands1. command to enter VI:(1) VI filename: Opens or creates a new file and places the cursor at the beginning of the first line(2) VI +n FileName: Opens the file and places

Vim starts multi-window editing and vim starts window editing.

Vim starts multi-window editing and vim starts window editing.Vim provides the multi-window editing function to simplify compound editing tasks. The multi-window mode of vim does not mean that multiple vim instances are started on the

Total Pages: 210 1 .... 196 197 198 199 200 .... 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.