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

Vim Command re-install

bz2

Author:headsen ChenDate:2018-05-11 09:50:23[[Email protected] ~]# which vim/usr/bin/Vim[[email protected]~]# rpm-qf/usr/bin/Vimvim-enhanced-7.4. the-1. El7.x86_64[[email protected]~] #rm-F/usr/bin/vim#-------------------> Delete vim command,

Personal VIM Configuration

"/*************************************************************************"> File Name:. VIMRC"> Author:lyucheng"> Created time:2018-01-14 14:39"> Description:" ************************************************************************/Syntax

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 commonly used and easy to forget commands

A good tutorial on the story:nohCancel Search highlightingxDeletes the character of the current cursor.:wqDisk + exitddDelete the current row and save the deleted row to the ClipboardpPaste Clipboarda→ inserted after the cursor/pattern→ searches for

Vim often forgets commands

1. Copy the specified line to the next line of the current cursor.#假设当前光标在10行, want to copy line 5th to line 11th: 5copy. #copy命令有2种简写 ' Co ' and 't', so you can also write the following format: 5co.:5t.Reference: http://liuzhijun.iteye.com/category/

Vim format code, coding problem?

Vim Format CodeRecently a CentOS, installed Nginx successfully configured Netcore, and then installed after the PHP configuration file promptThe first thought is the space coding problem, but in several times the file saved, encoded as Utf-8 also

The second week of Linux learning; Vim text editor

Extended mode: R file absolute Path # writes file contents to the next line of the current cursor W filename # writes the current contents of the current VIM open to the filename (new file filename, writes the content) w! FILE1 # Forces the current

Vim common plug-in installation and configuration method

Vundle Installationgit clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vimConfiguration VIMRC Header Add set nocompatible " be iMproved, requiredfiletype off " requiredset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()

vim--Terminal--use

Switch to root user: sudo su quits root user: ExitTerminal: Generate multiple terminals: Shift+t right-click Split Toggle ALT + Digital CTRL + up/down/left/right in different terminal keys Vim Installation plugin: Add

Some basic applications of VIM

Vim text CompilerVI is the default text compiler for Linux and Unix, and Vim is the enhanced version of VI1, about Vim, there are three modesCommand mode: The default mode after the file is opened, can only view the contents of the file cannot be

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

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, $ 意義是一樣的)

Installing Vim in a Docker container

? ? ? ? When using a Docker container. Sometimes there is no vim installed inside. When you tap the VIM command, you are prompted to say: Vim:command not found, this time you need to install VIM, but when you knock Apt-get install Vim command,

Very useful vim Plugin

CtagsC Program reading Auxiliary tool . It's a lot of trouble to have to jump between files when looking at C + + code, which is ctags to solve this problem. Ctags is a tool for Linux, but it is used to generate tags files for vim, VIM can be used

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

Linux uses Vim to play Python

The configuration file for Vim is the. vimrc file in the current user host directory by default. The following configuration is a common vim configuration for Python development."Highlight when moving forwardSet Cursorline"Set the tab to a width of

Enhanced Python color in Vim

I used to use putty with Unix server to open screen, and then use Vim to write Python. This recording improves the color of Python.Activating 256-Color terminalFirst, increase the available color to 256 colors, make sure Putty is the new version

Total Pages: 210 1 .... 199 200 201 202 203 .... 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.