It took a long time to tidy up, feel very convenient to use, share.
My VIM configuration mainly has the following advantages:
1. Press F5 can directly compile and execute C, C + +, Java code and execute shell script, press "F8" can do C, C + + code
Vim Learning Note configuration file (VIMRC)
During the vim startup process, the configuration file is first looked up and the commands are executed. And these initialization files generally have VIMRC, GVIMRC and EXRC three kinds.
Using the:
I. Coding problems
Encoding is common for GBK utf-8 Big5 cp936
1, view the current text encoding
: Set Fenc
: Set fileencoding
2, modify the terminal code, you can set up a terminal or in vim
: Set tenc= encoding
: Set Termencoding=utf-8
3. Displays
The best Chinese speed check list (cheatsheet)That year when learning Linux is relying on a common command small card, knock what command forget, often take up to see, later know this thing called Speed Check table (Cheatsheet), so began to
The NERD tree, file management tool for easy browsing and editing of filesConfiguration:"The NERD tree" F3 trigger, set width to 30, display bookmark map : Nerdtreetogglelet nerdtreewinsize = 30let Nerdtreeshowbookmarks = 1 "Highlight current line
Installation of 1.vim#yum Search Vim//view VIM related software information#yum install-y vim*//Online installation vimConfiguration of 2.vim(1) ~/.viminfo In Vim, Vim is automatically recorded and saved in the ~/.viminfo file. This is to
1. What is the difference between VI and VIM, and what is the relationship between them?A: In a nutshell, the VI editor is the early UNIX text editor, more simple, does not support syntax color; the VIM editor is an improved version based on VI,
The use of a few, plus a period of time useless, so it will be more superficial.Vim: Classmates recommend, say, use a bit, but before using really need to learn how to use, very novel, Http://baike.sogou.com/v6545897.htm?fromTitle=VIM, Skilled,
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
Forwarding Address: http://coolshell.cn/articles/5426.htmlThe concise Vim Practice level IntroductionThe learning curve of Vim is quite large (see the learning curve of various text editors), so if you start to see a bunch of Vim's command
Till now, several days passed before I started learning to compile a self-designed gvim. It is no good experience, but also full of discoveries.First of all, I want-to-point-out, this all-plugins vim loaded or wish to is loaded needs to the same bit-
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
Generally speaking, the file is divided into two major categories of text and binary files, text file editing is easy, Windows Notepad, UltraEdit are very useful, binary file editing under Windows also has a lot of tools, UltraEdit is good, but
II: Text Editor Vim/vi (Wake up call Vi late upgrade vim) Vim/vi is a powerful full-screen text editor, the most commonly used text editor on Linux/unix, which is to create, edit, and display text files. Vim/vi no menu, only command----official: www.
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
1. To install VIM, you can install it using the Apt-get tool that comes with Ubuntu.Apt-get Install Vim-gnome2, after the installation is successful, configure1> first automatic hint completion configuration (pydiction)From the official download
2. Create folders to hold source filesmkdir HelloWorld//Create Folder commandCD HelloWorld//into the new folder, it should be said that the directory is better, Windows used toVim MAIN.C//Open vim and create Main.c filePress the I key to enter the
A friend who works on Linux may have encountered such a situation. When you use Vim to edit a file, run:wqSave and exit. An error occurs:
E45: ‘readonly‘ option is set (add ! to override)
This indicates that the file is read-only. Follow the prompts
Vi and vim Editor (10): advanced editing method (1)
Custom vi:
There are many options that can be set in the vi Editor, which will affect the operations of the vi editor.
You can use the ex command ": set" to change the options in vi. In addition,
Vi and vim Editor (7): ex editor Overview (2)
Next, I wrote an article to learn about the ex editor.
Change the buffer Name:You can use ": w new_file_name" to save the current editing buffer as a new file. In this way, the current editing result can
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