16. Use Vim to edit multiple filesUsage:Vim FILE1 FILE2 FILE3Switch between files:Last-line mode:: Next switches to the next file: prev Switch to previous file: Last switch to final file: first to switch to file oneExit: QA All exits17, split screen
Bash on Ubuntu in WIN10 is available in Windows, which provides an Ubuntu subsystem in win and can be used with bash. The system's own vim color scheme ColorScheme as the default, not very good, the following describes how to modify for their own
VIM commands are divided into two kinds, one is vim own, the other is ex, the ex command needs to enter a colon, the last return to execute, compared to the VIM command, the scope of the ex command more extensive, but also more powerful, the
The text object of Vim is made up of two characters, and the first character is always i or a . In general, text objects that start with the text i selected inside the delimiter, and the a text object that begins with the selection, selects the
I. Management input and OUTPUTin a Linux system, the correct output number is 1, the error output number is 2performed in the system with a normal user "Student"find/etc/-name passwd > fileBecause student does not have the right to view more
Vi/vimVi/vim commands for editing textCommand: VI test.txt, when test.txt does not exist, automatically create this file, execute VI test.txtThe red arrow marks the file name, indicating that it is now in command mode, and when VI is a file, most of
I. So how to install vim?Enter the Rpm-qa|grep vim command, and if Vim is properly installed, it will return the following three lines of code:[email protected] [~]# rpm -qa|grep vimvim-enhanced-7.0.109-7.el5vim-minimal-7.0.109-7.el5vim-common-7.0.10
Set TabStop=4set Numberset cul set CUC hi cursorcolumn ctermfg=3 ctermbg=2function insertpythoncomment () exe'Normal'.1.'G' Let Line= Getline ('.') ifLine =~'^#!. *$'|| Line =~'^#.*coding:.*$' returnendif normal O call Setline ('.','#!/usr/
1 pageCtrl+f, turn down to the new page.Ctrl+b, turn up to the old page.2 Vim configuration fileWhat are the configuration files for 2.1 vim?Personal User Scope profile: $HOME/.VIMRCSystem-wide configuration file:/USR/SHARE/VIM/VIMRCYou can also
Vim: Set Number: Set NonumberN Move Command key8l move eight characters to the right3j Move Down three rows3g: Move to the beginning of the third line10$: Move down to 10 rows and navigate to the end of the line: N1,N2S/WORD1/WORD2/GCReplace the
To set options in Vim, it is easy to understand the annotations:1 Set Laststatus=1 "2 always displays the last window's status line , 1 more than one window displays the last window's status line, 0 does not display the last
When Vim starts, the user directory is loaded by default. VIMRC configuration file, if it does not exist, the system configuration file is loaded/ETC/VIM/VIMRC~/.VIMRC file Configuration#避免中文乱码Set fileencodings=utf-8, ucs-bom,gb18030,gbk,gb2312,cp936
Add the following to the ~/.VIMRC file:
Set statusline=
Set statusline+=%7*\[%n] "Buffernr
Set statusline+=%1*\%
Set statusline+=%2*\%y\ "file type
Set statusline+=%3*\%{". ( &fenc!='? &fenc:&enc). "} "Code 1
Set statusline+=%3*\
#正常模式---------------------------------------DD DeleteDigital +DD multi-line deletionYY copyDigital +YY multi-line replicationP Paste/String search for the string (from top down)String search for the string (from bottom to top)N Show Next SearchN
In the process of learning vim, the following are recorded for common use tips:1,: w!sudo tee% when you use ordinary users do not have write permission is very useful.2,: Earlier 5s restore files to 5s before, you can m,h and so on3, you learned
The legend of Ubuntu is to develop the necessary, but also want to try hackers;ubuntu16.04 comes with python2.7 and 3.5 two versions and Vim editorOne, on-line check a lot of information is the Pydiction plug-in installation use, to achieve tab
The configuration file for Vim is/ETC/VIMRC, or the configuration file is created in the ~/directory:Touch. VIMRCHighlight settings in general, Vim for the recognition of the program is automatically set highlighting, if not can be added in the.
Install the Curl commandDownload: https://curl.haxx.se/download.htm l
Win64 x86_64 CAB
7.55.1
Binary
Ssl
Stefan Kanthak
Add CURL.exe to the Git directory and add to the environment variable,
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.