"VundleSetNocompatible"Be improved, requiredFileType off"Required"set the runtime path to include Vundle and initializeSetrtp+=~/.vim/bundle/vundle.vimcall vundle#begin ()"Alternatively, pass a path where vundle should install plugins"Call
Open the edited text of Windows under Linux, and there will be an issue with content formatting that is inconsistent with line breaks. The most common is the appearance of ^m.my problem is: in Windows edited files, uploaded to Linux and then opened
By default, VIM is not installed in Debian. APT-Get install vim-y is required. By default, the highlighted syntax is also annotated. You need to cancel the annotation in the configuration file:Vim/etc/Vim/vimrcCancel the following comments:; Syntax
When the cursor inside a function is located in Vim, The talist column displays the current function. However, by default, the refresh takes a long time and is inconvenient. Original link: Www.newsmth.net/nforum /#! Article/Vim/39368 Solution:
How to Use Vim to find and replace In VI/vim, you can use the: s command to replace the string. This command has many usage methods for different details, which can implement complex functions and record several types here for future query
I haven't written it for a while. Make a simple note.
Download from http://www.vim.org/scripts/download_script.php? Src_id = 1, 6738
Decompress the package and add javacomplete. Vim java_parser.vim In the autoload folder
The current job is on the UNIX platform. It is usually written using the FTP function of UE.CodeSometimes the file size is too large, the transmission is very slow, and it is often not very stable.I made up my mind to learn Vim (no one should use
"Configuration file for vimset modelines = 0" CVE-2007-2438 "normally we use vim-extensions. if you want true vi-compatibility "Remove change the following statementsset nocompatible" use Vim defaults instead of 100% VI compatibilityset backspace = 2
I. From command to zookeeper Mode
A: append is inserted after the current word.I: insert Insert at the current positionO: insert open new line in a new row under the current rowA: append is inserted at the end of the current row.I: insert at the
Vim basic commands
Leave ViZZ: WQ: X Archive before leaving: W archive name into his archive: Q quit (will prompt if the archive is changed): Q! Quit editing and leave: WQ! Force archiving and exit
Leave Vi temporarily:! Temporarily execute the Unix
"Map compilation for a single file : Call do_onefilemake () function do_onefilemake () If expand (" %: P: H ")! = Getcwd () echohl warningmsg | echo "fail to make! This file is not in the current Dir! Press to redirect to the Dir of this file. "|
I. move the cursor
1. Shift left H, move right l, move down J, move up K
2. Flip down CTRL + F, flip up Ctrl + B
3. Flip down half page Ctrl + D, flip up half page Ctrl + u
4. Move to the end of the line $, move to the first 0 (number) of the line,
The matching and replacement function of VIM is very fast and powerful, but it is hard to show the number of matches. It should be implemented around a bend:The key to % S/xxx // gn is the final N, which indicates only the number of matched records
Vim is a simple and powerful text editor that can perform complex operations in a simple way. Vim (http://www.vim.org/) is an open source software that provides multi-platform versions on Windows, Linux, and MACOs. Vim on MACOs is called macvim
Vim auto-completion plug-in-youcompleteme
Preface
Vim is called the editor God mostly thanks to its rich DIY flexible plug-in functions (for example, youcompleteme, the magical Code Completion plug-in under Vim ), most of the users who use Vim feel
Since VIM has been used for a long time, it has never been thought of as convenient and fast as VIM.
I thought for a moment, probably because I have always been dependent on the VIM editing mode.
This is no different from using other simple editors.
Xin Xing will share with you some tips on vim.
There is no doubt that vim is profound and profound. Here we will share some tips about vim, which I discovered today, because I just switched to vim soon, I am not familiar with many functions of vim,
Multi-line comment:
1. Enter the command line mode, press ctrl + v to enter the visual block mode, then press j or k to select multiple lines, and mark the lines to be annotated
2. Press the uppercase letter I and insert the annotator, for example
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