My Linux system is Ubantu14.04, the default is the VI compiler, now install the VIM compilerOpen terminal input: sudo apt-get install vim-gtk generally yes, but I have an error message:Reading Package List ... Completing the dependency tree for the
You can use the: s command to replace a string in Vi/vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query.: s/vivian/sky/replaces the current
I. Three modes of VIMThere are three modes in vim: edit mode, input mode, last line modeWhen you open a file by using the VIM command, it is in edit mode by default.1. Edit mode--Input modeI: Convert to input mode before the current cursor
Character test:= = Test whether equal, want to wait for true, not equal to False! =: Test whether unequal, not equal to true, and so falseLoop: Enter condition, exit conditionForWhileUntilfor variable in list;Loop bodyDoneFor I in 1 2 3 4
At the command line, enter switch to open vim, press I to enter edit mode, start editing text, press ESC to enter command mode. Initial use : Open in the graphical interface open vim, press I built, enter the editing mode, edit the text, press ESC
Set auto indent: Set autoindentSet indentation Level: Set Shiftwidth=n (n=1,2,3 ...) Indent several spaces.Turn off Auto indent: Set noautoindent1. How to editPressing the ESC key at any time will enter normal mode. In normal mode you can press: to
Vim file Editor Common operations Summary:CopyYY Copy a row10yy Copy from the current cursor line to the following 10 linesY1G Copy all data from the row to the first row of the cursorYG copies all data from the row to the last row of the
First enter the following directoryCd/usr/share/vimThen open VIMRC.sudo vim VIMRCInsert the following code in the "Set backspace=2" line in VIMRC:Set AI "Auto indentingset history=100 " keep lines of Historyset ruler
Recently has been configured Vundle, has been not configured, always a variety of errors, side dishes in which also learned some knowledge, how to completely uninstall vim, the various unloading methods on the Web can not be uninstalled, here to
9. vim Editor the enhanced version of the Vi editor supports multiple language scripts, file type plugins, text completion modes, and many other options. Command mode: For file navigation, cut and paste both simple commands. Undo recovery and other
1. In order to display line numbers, execute one of the commands in the Vi/vim editor: Set NumberOr: Set Nu2. In order to close the line number, execute the following command in the Vi/vim editor: Set nu!If you want to start vi/vim each time,
Tonight with the Ubuntu 12.04 vim to edit the page code, found that the above Chinese display garbled. This HTML file is I previously edited with Gedit, in gedit inside display normal, but in vim under the display is garbled.How to solve the problem
One, the cursor movesWe do not think that the cursor movement is not important, in fact, it is the foundation, better cursor movement, copy, paste, delete, etc. to be more handy, into the editor inside, the mouse can not be used.
Vim,visual interface Improve is a powerful, highly customizable text editor, full-screen editor, and modal editor. One, VIM has three modes : edit mode (also called command mode) is the default mode of VIM, insert mode, text modification editing,
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
Different versions of Vim:1.vim-minial provides VI and related commands. In the minimum installation of Rhel 72.vim-enhanced provides VIM commands. Provides features such as syntax highlighting, file type plug-ins, and spell checking3.VIM-X11
Vim Learning the third day1./string: Find a string, find special characters need to add \, for example, find. , /\.2./enter: Find the next string, or command n3. Press/and press the up and down keys to get the most recently searched content4.:set
Vim Advantages and application scenariosThe advantages of Vim pure text editing and the perfect fusion of Linux provide the command line . Only assume that the SSH to the server to operate, then this situation can only use VIM. Vim is also one of
Using VIM to compile the projectEnvironment configuration1.MAKEPRG variable, which can be used to set the compiled command, simple command assignment to it both, with SET syntax2. Execute: The make command executes the compile command.3. The better
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.