VI Editor: Full-screen text editorVi:visual Interface, visual interface;Vim:vi improved, equivalent to VI upgrade version of the tool;The new features of Vim with respect to VI: syntax coloring display, more commands, and historical records;Vi/vim:
Because very little command line, old despised, so today record a common command line:CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory
One, what is vimThe VI command is the most versatile full-screen plain text editor in Unix operating systems and UNIX-like operating systems. The VI editor in Linux is called Vim, which is the enhanced version of VI (VI improved), fully compatible
Note content:L 5.5 into edit mode L 5.6 VIM Command mode L 5.7 Vim Practice Note Date:2017.8.45.5 into edit mode The so-called editing mode is to enter the state of the contents of the file can be edited, and into the word document into Notepad
what is VIM? Vim has the ability to edit the program, can be active in font color to identify the correctness of the grammar, convenient programming.Vim is a text editor developed from VI. Code completion, compilation and error jumps and other
Since 1970, VI and Vim have become one of the programmers ' favorite text editors. It was copied from other bloggers and it was very practical.Basis
: E filename
Open filename for edition
: W
Save file
Use of Vi/vimBasically, Vi/vim is divided into three modes, namely, General mode, edit mode and command-column mode. The three modes of action are:
General mode:Open a file with VI directly into the general mode (this is the default mode).
Software vim requiredhttp://www.vim.orgCode_complete.vim Plug-inhttp://www.vim.org/scripts/script.php?script_id=1764Ctags generally installed after vim will have, Ubuntu seems to be not supported, need to download. A VIM configuration reproduced
Recently intends to map caps lock into a button, it is more cool to press, now there is a small problem, how to quickly enter capital letters,Use this keyboard mapping to get it done.Inoremap guiwaYou have a chance to test this combination,
1. Mode switchVim mode $ VI filename goes into normal mode, which is the command mode used to perform most common editing commands and cannot be enteredKnock I into insert mode, this is normal editing mode, press ESC to return to normal modeEnter in
Vim is a common text editor under the Linux system, which can be used to find and replace multiple files by using a variety of shell commands. The following small series to introduce you to the Linux system vim multi-File search and replace
1.Vim#在命令行中输入vim, enter the VIM editor2.I#按一下i键, lower display--insert--#插入命令, any character may be useful in vim3.Esc#退出i (insert) command for other commands to use4.: R filename#读入一个文件内容, and writes to the current editor5.: w
Text editor Vim:Vim/vi is a powerful full-screen text editor that is the most commonly used text editor on Linux/unix. Its role is to create, edit, display text files.Vim/vi no menus, only commands.Insert Command
Command
Role
Original address: Http://lsong17.spaces.live.com/blog/cns!556C21919D77FB59!603.entryContent:With vim so long, and always do not know how to use the system in vim in the Clipboard, usually to copy a piece of code on the Internet is the first gedit
Requires software vim http://www.vim.org Code_complete.vim plugin http://www.vim.org/scripts/script.php?script_id=1764 ctags After the general installation of Vim will have, Ubuntu seems to be not supported, need to download. A VIM configuration
VI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. VI is the abbreviation for "Visual Interface", Vim is
To open multiple files:1.vim has not started yet:Enter in terminalVim file1 file2 ... filen can open all the files you want to open2.vim has startedInput: Open FileA file can be opened again, and the contents of the file will be displayed in Vim at
Use
Vim View and edit a binary file
VimYou can easily edit binary files. I personally think it is better than Emacs's binary editing method.VimBinary files are edited by externalProgramXxd to dump the file into its binary text form, then you can
1. Open a new tabRun "vim-P filename..." when starting vim ...": Tabe [dit]*: Tabe * *: Tabedit * *: Tabnew *: Tabnew opens a new tab with an empty window after the current tab.: Tabe [dit] [++ opt] [+ cmd]{file}: Tabnew [++ opt] [+ cmd]{file}Open
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