Commands starting with ":" and "/" have historical records. you can first type ":" or "/" and then press the up or down arrow to select a historical command. Command History
Commands starting with ":" and "/" have historical records. you can first type ":" or "/" and then press the up or down arrow to select a historical command.Start vim
Enter the following comm
' t do. However, Vim lets you access shell commands and utilities without leaving Vim, and that lets you perform some amazing tric Ks.If you run :shell or just when you :sh ' re in the editor, Vim (or Gvim, if you ' re partial to Vim's GUI) would place your in An interactive shell. You can run whatever
the cursor on the line specified by the command count. For example, "33 GB" will place the cursor on the 33rd rows. If the command count is not specified as a parameter, "G" positions the cursor on the last line. The "GG" command is a quick way to jump to the first line.
11. display the row number
Use "set number" to display a row number before each row. Rather, use the command ": Set nonumber" to close the row number"
12. Simple search
The "/string" command can be used to search for a stri
line in Vim's view. In this case, you can type a G before H, J, K, or l, so that Vim will move as you wish on the screen. 3. move the cursor effectively in the current row
Many editors only provide simple commands to control the movement of the cursor (such as left, top, right, bottom, to the beginning/End of the line ). Vim provides many powerful
Vim command collection
Command history
Commands starting with ":" and "/" have historical records. You can first type ":" or "/" and then press the up or down arrow to select a historical command.
Start Vim
Enter the following command in the command line window:
Vim directly starts
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 and creates a file named filenameFile commandsOpen a single fileVim fileOpen multiple files at the same timeVim file1 file2 file3 ...Open a new file in the
display in general mode input ": Vsplit/root/2.txt"
Note: In general mode Press "CTRL+W" key combination, and then press the left or right, or up and down the direction of the key, you can switch between different windows if you enter ": only" in the general mode, only keep the currently editing window, all other closed
15. Case insensitive when vim looks up keywords
Enter ": Set IC" In general mode and enter ": Set Noic" If you want to cancel
[Keywords] Vims command g command file format encoding method [abstract] This article summarizes Vim's s command and g command, as well as file line feed format and edit format conversion command. 1. s command if a text editor does not support regular expressions, what you can do may be like notepad, copy, paste, and complete in Windows, slightly more complex operations [keywords] Vim s command g command file format encoding method
[Abstract] This art
If my latest post on this topic doesn't remind you, I'm definitely a fan of Vim. So before some of you throw rocks at me, I'm going to show you a series of "little-known Vim commands." I mean, some of the commands you might not have met before, but it might be useful for you. As a second disclaimer, I don't know which
Linux basic commands-text editing vimGuideThis article describes the general usage of vim (version 7.4,Vim is a powerful text editor and enhanced version of vi.The most common commands for editing a file using vim are:
Vim file is
First, vim command:1. Label command: Tabe fn Edit the file fn in a new tab pageGT Switch to next tab pageGT Switch to previous tab page: TABR Switch to First label page: tabl switch to the Last tab page: TABM [n] Moves the current tab to the Nth tabYes, as you might imagine, a label page with Eclipse, UE, and so on, is a meaning.
2. Window commandctrl+w s horizontal Split windowCtrl+w W Toggle WindowCtrl+w Q exits the current window (this command does
Differences between vimgs replace and global commands are one of Vim's most powerful commands (I think it is No. 1). If you are familiar with them, you can get twice the result with half the effort. This article summarizes some classic problems of the version, based on your own usage and understanding, I try to introduce its usage in detail through the instance. The examples are difficult. Some examples are
Development in linux, even management and maintenance work, is indispensable for Vim. As a newbie, I am new to this topic. in this section, I will record the commonly used Vim commands I use or collect.
Development in linux, even management and maintenance work, is indispensable for Vim. As a newbie, I am also new to t
Vim Command Collection 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 and creates a file named filenameFile commandsOpen a single fileVim fileOpen multiple files
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 and creates a file named filenameFile commandsOpen a single fileVim fileOpen multiple files at the same timeVim file1 file2 file3 ...Open a new file in the
specified by the file name Filename.txt.: W, then enter (enter: W, then enter, save the file without exiting): Wq, then enter (enter: Wq, then enter, save and exit): q!, and then enter (enter: q!, and then enter, do not save the mandatory exit VI): e!, discard all changes, and open the original fileMoveHJKL, control the cursor to the left, bottom, top, and right one grid, or you can use four arrowsThe above four commands can be used with the number,
File 1.
: Scriptnames: displays vimrc loaded by VIM.
Fixed mode of VIM commands: operator commands + displacement commands
: Version: displays VIM version information, including features, compilation methods, and configuration fi
This article mainly introduces two commands to create Vim as PythonIDE. You can refer to the following two commands to configure Vim (including plug-ins) as Python IDE. Currently, MAC and Ubuntu are supported.
curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.shbash vim.sh
Example
What have yo
Executing shell commands in the VIM editor
The 11th Chapter VI and VIM text editors for Linux commands, editors, and shell programming, this chapter will briefly describe how to edit text using the VI and VIM editors. This section describes the execution of Shell
Vi (Vim) keyboard chart and its basic commands
Vi (Vim) keyboard chart and its basic commands:
Go to vi
Vi filename open or create a file and place the cursor at the beginning of the first line
Vi + n filename open the file and place the cursor at the beginning of line n
Vi + filename open the file and place the curso
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.