You have to admit that whenever you see someone using Vim, you wonder if he knows something you don't know. Why else would he use such an outdated editor, or open source trash?
You won't like it unless you spend at least one months a day using the
June 21 Task5.5 Entering edit mode5.6 VIM Command mode5.7 Vim PracticeExtendedSpecial usage of vim http://www.apelearn.com/bbs/thread-9334-1-1.htmlVim Common shortcut key summary http://www.apelearn.com/bbs/thread-407-1-1.htmlVim quickly deletes a
To move from one file to anotherCopy and paste between different files
Edit another file:edit foo.txt 关闭当前文件,打开指定文件,当前文件未保存会出现错误信息:e! foo.txt 缩写,强制打开指定文件错误有对应的 ID 号, :help E37 查看错误帮助Open multiple files at the same timevi a.ts main.lisp:files
Day5 python full stack s3 the last Class review
S3 Python full stack day5 file merge and file archive
S3 Python full stack day5 file archive with two compression methods
Python full stack S3 day5 Vim Editor
Python full stack S3 day5
I. Introduction of VIMVim is an upgraded version of VI (Vim config file in/ETC/VIMRC)Vim is a color-displayYum Install-y vim-enhancedGeneral mode, edit mode, command modeSecond, Vim color display and move the cursorVim View/etc/passwd
Completor.vim of Vim PluginVundle Installation:plugin ‘maralla/completor.vim‘If you want to complete a python complement: (My VIM supports Python3, so to:)pip3 install jediThen enable the completion function, .vimrc adding:let
1. Install Vimsudo DNF install vim2, plug-in managementChoose Vim-plug,vim-plug is Korean Junegunn (Junegunn Choi) wrote, the fastest plug-in manager, whether it is the update, installation, are all concurrent (https://github.com/junegunn/vim-plug )
VI has 3 modes: insert mode, command mode, low line mode.Insert mode: You can enter characters in this mode and press ESC to return to command mode.Command mode: You can move the cursor, delete characters, and so on.Low-line mode: can save files,
Set shiftwidth=4 "This amount is the indentation depth per line, generally set to the same width as tabstop" set tabstop=4 "sets the width of the tab display, Python is recommended to set to 4" "just said tab and space is different, Although you
Vim tip: How do I delete/keep a particular line in the text?Show InvisiblesOne World One DreamTask 1: Keep only the headings in the tab and delete the other lines: g/re/dKnowledge points: Using: Global with: Delete commandRun the command:/\v\:
YYP Copy the current line to the next lineDDP cuts the current line to the next lineCW: Deletes the current word and enters insert modeXP: Swapping current and right charactersS: Delete the character of the cursor and enter insert modeI: Enter text
v Character selection, the cursor will go through the place of the anti-white selection! V (uppercase) line selection, will be the cursor through the line anti-white selection!
Linux system look at the program or program, see a function often need to know the definition of the function, then Ctags comes in handy, the installation and use of the following methods:Installation method:sudo apt-get install ctags
One, permission mask:For directory: Permission Mask 0022Maximum permissions rwxrwxrwx 777 minus the permission mask three bits is the directory permission 755For files:Highest privilege rw rw RW 666 minus permission Mask 644command to modify a
If you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI #设置自动缩进Syntax on #高亮2. BasicSPACEBAR to move one cell to the rightX Delete the following character x delete the previous
Vim ~/.VIMRCVim student.ccFirst of all. The Mac system already has Vim installed by default. Open terminal, input vim, enter.You can see, for example, the following interface, which means that Vim is already installed. Enter ": Q" in vimOn the
first of all, it's worth mentioning. My Vim tutorial PDF version number has been written. Everyone can go to download, here is csdn: csdn download , assume that the left side of the hanging off, you can also enter the browser below such as the
1 SetNu2 SetWrap3 Settabstop=44 Setsofttabstop=45 SetShiftwidth=46 Syntax on7FileType on"turn on the Vim file type Auto-detect feature8 Setautoindent9 SetsmartindentTen Setscrolloff=Ten One SetRuler A SetHlsearch - Sethistory= - - the "Set
Xshell Client in vim Edit file save exit, still display text content instead of back to Shell terminal terminal.The solution is as follows:
User1 is a using term=xterm, in this case when you exit vim it'll clear the terminal.
User2 is a
Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
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