Add comments to multiple lines in vim and delete comments

Button operation: Add Note: Ctrl + V to enter the column editing mode. Move the cursor down or up, mark the beginning of the line to be annotated, and press I in uppercase, then insert the annotator, such as "#", and then press ESC. All of them

Garbled characters appear after saving and exiting Vim

 At the beginning, after Ubuntu is installed, garbled characters will be displayed after you exit with vim. This is because Vim of Ubuntu is linked to/usr/bin/gnome by default, this is different from the usual vim, so if we need to use the usual vim

Vim auto-completion and auto-Prompt

Vim 7.0 and later versions have built-in auto-completion, with the same shortcut key as omnicppcomplete. CTRL + x Ctrl + O (Intelligent completion) Or Ctrl + n Or Ctrl + P, Or Ctrl + x Ctrl + f (fill in the file name) CTRL + X is to enter a

Vim saves read-only files

Do you often encounter this situation like me: you have edited a system configuration file in Vim, and you only need to save it to find that the current user has no write permission for the file. If you have made a lot of changes, it is really

Install Vim on Windows

Source: Http://hi.baidu.com/ramboisme/blog/item/063509a71a791490d1435805.html Required installation package: (Http://www.vim.org /)1. gvim71.exe ( Ftp://ftp.vim.org/pub/vim/pc/gvim72.exe )2. exuberant ctags 5.0 (

Vim-gvim environment setup

1. Install gvimGvim72.exe address: ftp://ftp.vim.org/pub/vim/pc/gvim72.exe. 2. Install gvim Chinese help documentVimcdoc-1.7.0-setup.exe address http://prdownloads.sourceforge.net/vimcdoc/vimcdoc-1.7.0-setup.exe? Download 3. Garbled text on the menu

Vim plug-in management bundle

Anyone who has experience using and configuring Vim knows that Vim can be comparable to ide after configuration ~   However, it is also very troublesome to configure Vim. Many times, when we need to change the system or back up data to other

Vim practice manual (4) frequently used editing operation buttons

Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant 1. Delete) DdDelete the row where the cursor is located NDDDelete n rows from the row where the cursor is located and down D1gDelete all rows from the row

Vim configuration highlight and automatic indent

1. Configuration File LocationUnder the/etc/directory, there is VimrcFile, which is a public Vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file named" . Vimrc".

Concise Vim leveling strategy

Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from "Learn

Advanced use of VIM

Note: In the following example, xxx indicates entering XXX in command mode and press Enter. In the following example: XXX indicates entering XXX in extended mode and press ENTER The commands in parentheses indicate related commands. The command

[Linux] Vim common shortcut keys

In Linux, the vim editor has very powerful functions and many common shortcut keys are very convenient to use. Here, I will share some common shortcut keys that I learned when learning vim, and hope to help you. This is what I sorted out from

Vim's general usage skills

Vim's general usage skills Author: Geminis published on: 复制链接 --> In each user's home directory, there is a VI Configuration File ". vimrc "or ". exrc ", you can edit it so that these settings are valid

Copy, paste, and small tips for code formatting edited by VIM

When editing C ++ code or other code in Linux, copy, paste, and code formatting are common functions. However, Linux is a keyboard operation, therefore, you need to write down some tips. The following tips should be the easiest. Press the I or

Vim settings for displaying row numbers, syntax highlighting, and automatic indentation

In ubuntu, the vim configuration file is stored in the/etc/Vim directory. The configuration file name is vimrc. In fedora, the vim configuration file is stored in the/etc directory. The configuration file name is vimrc. Enter the following command

How to obtain the powerful functions of VIM

I am not a fan of Linux/Unix, although I advocate the spirit of GNU. I used to write C/C ++ programs on the Windows platform using VC, It also uses editplus to write ASP/HTML, and occasionally uses sourceinsight to browse some Large Project source

How to Set automatic indent in VIM

Vim auto indent1. Configuration File LocationUnder the/etc/directory, there is a file named vimrc, which is a public Vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private

Vim sets the multi-line comment shortcut

Vim script. (Transfer)Remember that many ides in the window can annotate the entire code for testing. Restore it after testing. The corresponding functions are also implemented in Linux Vim today.Comment on a single row: ctrl_cComment on multiple

Vim search tool: fuzzyfinder

Fuzzyfinder plugin provides an interface to quickly search for files, buffer, bookmarks, commands, and tags. You can preview the search results in real time and support fuzzy search of wildcard. ※Download Http://www.vim.org/scripts/script.php?

Vim editor notes

Emacs said, I only need an editor, but you gave me an operating system. It is a hacker's editor. If I fail to make Emacs into an operating system, I need a pure editor. The following are common commands of the vim Editor: Insert mode: it refers to

Total Pages: 210 1 .... 142 143 144 145 146 .... 210 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.