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
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
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
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
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 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
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
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
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
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
? ? ? ? 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,
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
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
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
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
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