First, the current file name
We know that Vim has 48 registers, where the current file path is kept in the% read-only registers. For example /home/harttle/ , at the bottom open src/main.cpp , we print the% value:
: Echo @% file path
The scripting language is really strong.
My goal is to add my default dock function to Vim.
/****************************************************************************** * Copyright NOTICE * Copyright (c) 2014 All rights reserved *----Stay
First, vim updates to the latest version yum -y install vim , and install Vim's enhanced version vim-enhanced to install support color componentsyum -y install vim-enhanced
Second, configure the Vim configuration file to vi /etc/vimrc add a
One, vim python automatic complement full plugin: pydiction
You can implement automatic completion of the following Python code:
1. Simple python keyword completion2.python function Complement full bracket3.python Module Completion4.python module
In the Linux family, the Vim editor is the system's own text editor, which is powerful and self-contained.I have small white, just contact with Linux, to modify a text file, it is not possible to operate like windows, and, worse, into the VI editor,
Frm:http://www.linuxidc.com/linux/2013-05/84031p2.htm
Before the official use of vim, a little appetizer, learn some of the common commands in vim, with these basic commands, so that we can use vim more handy, speed up the efficiency of the
"2017-02-04"First put a few better information, look at this information is good:1.Vim Primer Foundation Http://www.jianshu.com/p/bcbe916f97e12.vim Configuration http://blog.csdn.net/g_brightboy/article/details/142291393. The concise Vim practice
1. when looking up the/etc/issue file, use man issue to find manual in See also appears MOTD (5), Agetty (8), Mingetty (8). And what issue (5) means at the beginning of the document.Man man is explained after:1 executable programs or shell commands--
Environment: Window can be used Gvim editing software learning is mainly in the UBUNTU15 percussion commandLearn videos from Zhipu education vim using video1. sudo apt show vi to view the installed version of VI, of course, my Ubuntu two can see the
Original address: http://www.libenfu.com/vim-shortcut key Finishing
As a back-end code farming, the most commonly used is vim , then vim the common shortcut keys, you know how much?Move cursor1. Move left, h right l , Move down, move j upk2.
In this section we take a look at the delete, delete command is relatively simple, but to make the deletion more efficientYou need to match the various move commands we've talked about in the first section.Character deletionx Delete the
When we use VI or VIM, if we want to display line numbers, we may do this: switch to command mode, then enter set Nu, then press ENTER to display, and we are writing programs, sometimes we would like to press ENTER, the cursor is not always at the
Because the daily work often uses the corresponding tool, grasps the corresponding shortcut key will greatly enhance the work efficiency, the collation record, facilitates the inquiry;##### pycharm daily shortcut keys- cmd + b jump to the
The% address range symbol, which represents all lines in the file, is equivalent to the address range 1,$. Matches any single-character (except for newline characters), such as Y.S can match yas Y.s or Y S, and so on.* Matches 0 or more occurrences
1. Mode switchThree modes: Command mode, input mode, bottom line modeSwitch between command mode and input mode: I ESCSwitch between command mode and bottom-line mode: SHIFT +: ESC2. InsertI: Insert on the left of the current characterI: Inserting
Vim mode:Edit modeInput modeLast-line modeMode conversionEdit-InputI: Switch to input mode before the current cursor characterA: After the current cursor is in the same character, switch to input modeo: Insert a row below the current cursor line,
You can use the common arrow keys under VIMBut there are other keys that will allow you to reach your goals faster.HJKL this is a substitute for the arrow key functionH M L Jump to the top middle of the screenW jumps to the beginning of the next
Reference:http://blog.csdn.net/lingdxuyan/article/details/4993868Http://www.cnblogs.com/softwaretesting/archive/2011/09/23/2185851.htmlAbout SWP files using VI, often can be seen. SWP this file, how is this file generated, when you open a file, VI
These two days and vim more retwist, summed up in fact is very meaningless toss, wasted a lot of precious time!The thing is this, inadvertently found vim in the Win10 console window without parameters to display the "Ugandan Children" interface (in
Edit the. vimrc fileVim ~ /. Add the following code to vimrc: The code is as follows:Copy code Function CompleteSymbol ()Inoremap () IInoremap [[] IInoremap {{} IInoremap <> IInoremap "" IInoremap ''' I Endfunction is called below the
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