This article mainly teaches you how to use the Vim split screen function.Split screen start vim
Use the uppercase O parameter to split the screen vertically.vim -On file1 file2 ...
Use the lowercase o parameter to split the screen
1. Under Vim paste a large piece of Python code, but from a line start all more back a tab, there are more than 100 lines, one by one, I manually adjusted, tired half dead.Solution:In Vim, it's best to go to paste mode before pasting the code, which
As a program ape under Linux, if you don't know how to use vim, it's not really a program ape (if not in a graphical interface). But Vim is the kind of steep learning curve tool, only you really long time to learn the command of vim you can really
VimI: InsertI: Insertion at the beginning of the lineA: Insert after cursorA: End of line insertionO: Next line InsertO: Previous Row insertX: Delete one character afterX: Delete the previous characterU: UndoU: Undo All actionsShift+d: Deletes all
Today, Adobe's brackets,sublime text and other editors were used under Linux, and it was still inappropriate to find out. So I thought of vim.First of all, I'm using the derivative version of Ubuntu: Linux Mint 17.Then start installing Vim,linux
Before the array, just install the Ubuntu , the problem of installing vim , now some to share.Apt-get Install VimReading Package List ... CompleteAnalyzing Dependency tree for PackageReading status information ... CompleteSome software packages
Scope of application: a beginner who has some knowledge of vim.1 General Mode
Move cursor
H or ←
The cursor moves one character to the left
J or ↓
Move the cursor down one character
K/
Using Vim to edit files is very convenient and vim is the most common tool for modifying system configuration. But sometimes we take care of the convenience and forget that we have permission to edit the file. It is often found that they do not have
Sometimes we modify some code, and the tab setting in this code is not the same as our own setting. For example, our own setting is to replace tab with two spaces, while the code to be modified uses tab. So, how do we quickly convert the tab to a
Horizontal cutting:: Split: Split xxx (file name to open): New (creates a file in a fresh window) K: Jumps to the upper window (if uppercase K, the current window is moved to the top) J: Jump to the following window (similar to the above)Vertical
Reference:http://blog.csdn.net/longxibendi/article/details/38276847The VIM editing program has three modes of operation, called edit mode , insert mode , and command mode, respectively. Note: Some instructions cannot be executed on my machine.
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
Tiger, wrote a function, and added a shortcut key for the Octopress article to add some specific content, in the article list and the first page to display the article introduction or summary, and to create a directory of the article.The reason to
Problem Description: After installing the system, just want to start to write the program, found that Vim has not been installed, with Su-switch to root afterRun Apt-get install vim directly, prompt to insert disc source, then enter, into an
The common configuration of all users is in/ETC/VIMRC or/ECT/VIM/VIMRCZ, and there may be other configuration files, such as Vimrc.tiny, which are described in the specific scenario file.Vim configuration for a particular user in ~/.VIMRC
Vim
2014-11-22 UpdateFile ABC1, you need to edit the third line of ABCVIM +3 ABC2, you need to query the test character in the ABC fileVIM +/test ABC3, create three files AA bb ccVim AA bb cc: N switches to the next file: N switch to previous file can
Vi and vim Editor (15): main improvements to vi by vim, vivim
Vim has made a lot of improvements to vi. This chapter will discuss the main functions added to vim: includes built-in help functions, startup and initialization options, new mobile
Fedora vim cannot be highlighted, and Fedoravim cannot be highlighted.Installation version: Fedora 20By default, run the rpm command to check whether vim is installed.Try to install with # yum install vimPrompt conflict with current versionReason:
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.