In the previous section we talked about the movement in vim, since it has been able to navigate between the screen and the cursor.So, let's talk about the insert command now.I do not know how many new vim novice and I was (last year), vowed to think
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
:e! EnterEliminate all of this editing, back to the original file look. However, this file is still open.:q! EnterEliminate all edits, return to the original file, and leave Vim.:w! FileName: w! NewfilenameIf the file exists, overwrites the existing
Now there is a situation:I am now under the Ubuntu user root directory-~I have a folder under the root directory blogs, this folder has two files: text1,text2.I now do the following from the ~ directoryVim ~/blogs/text1Then, I want to open the Text1,
When using vim for editing under the terminal, by default, the editing interface is not displaying line numbers, syntax highlighting, smart indenting, and so on. In order to better work under Vim, a configuration file needs to be set manually:.
Because the Linux teacher assigned the homework, so plan to take some time to put their own installation of the process in the blog park, convenient for later review (master bypass)The first:VIM installation: Open VIM's terminalAfter typing "vi" on
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,
First download the Ctags installation.To http://ctags.sourceforge.net/ download ctags source code ctags-5.6.tar.gzTAR-XVF ctags-5.8.tar.gzCD ctags-5.8./configureMake installIn the user's home directory, under the Vim profile. VIMRC, add "Set tags+=
Edit modeInput modeLast-line mode1: Cursor movement between charactersH: Move one character to the leftJ: Move the cursor down one characterK: The cursor moves up one characterL: The cursor moves one character to the rightIf you want the line to
When you download a lot of topics, but do not know that one is your favorite, there are ways to quickly browse:
Download: Color Scheme Explorer
Copy the Csexplorer.vim to the. Vim/plugin
Edit a file freely: Vim [file]
Input:
Vim mode:Edit mode (Command mode) (default)Input modeLast-line modeMode conversion:Edit ————) Input:I: Enter in front of the character where the current cursor is locatedA: Enter after the character of the current cursorO: At the bottom of the
Problems encountered with the use of cscope1. e568:duplicate cscope Database not addedAt the prompt, the Cscope database was added repeatedly, I am using the vim7.2 version, and this version is already supported Cscope, and the Cscope function is
Reposted Vim Delete duplicate rows2 related articles are included below1) posted from: http://kangzye.blog.163.com/blog/static/36819223201061705729933/Vim finds the same two rows, and deletes duplicate rowsTo find the same two rows, sort the
Inadvertently found the topic discussed in the Knowledge:What do you think is the best-looking Vim color scheme (color scheme)?User AnswerIn the first place is:Molokai Ah, the most classic colorSince Molokai is so classic, of course it will be
common skills in Vi/vim workrecently has been in the Linux system terminal using the Vi/vim to modify the code, because of the coding problems and Vim configuration file problems, so that the review code and modify the code is more laborious, not
1. Insert command1) A adds text after the cursor2) A add text at the end of A line3) I insert text before the cursor4) I start inserting text at the bank5) o Insert text at the next line of the cursor6) O Insert a line of text above the cursor2.
1. EditingNYW, copy n words to the rightNyl, copy n characters to the right, including the current character of the cursorNYH, copy n characters to the left, excluding the cursor's current characterNYJ, copy the n rows down, including the forwardNYK,
Some things, always meet, bow to see, but do not know what is used to do? Always make the heart itch, so be sure to learn a bit.In recent times, there has always been a word: VIM, I saw it here, I ignored him, and then I ran my eyes in a few moments,
Text editing tool vim
Chapter 9 Text editing toolVim
Vim is an essential tool in linux. A lot of work cannot be done without it. Early Unix systems used vi as the system's default editor. You may be wondering what is the difference between vi and
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