Add the following to. vimrc:CodeAfter that, restart Vim to generate four spaces by pressing tab:Set Ts = 4 (Note: ts is the abbreviation of tabstop, with four spaces in the tab width)Set expandtab
For saved files, use the following method to
Are you tired of setting the line number, indentation, and highlighting every time you open Vim. Have you ever thought about creating your own Vim so that every time you open your vim, it can be the configuration you want? It is actually very simple,
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. In Red Hat Linux, the vim
This series of articles is my easwy column in csdnThe "use Vim to develop software projects" series. Easwy blogAfter the migration, all the articles on csdn will be moved here.
The initial idea of writing this series of articles is to introduce how
I. Mobile
H, J, K, L corresponds to left, bottom, top, right
W move the cursor forward a word
B. move the cursor one word backward.
NW move cursor forward n words
NB moves the cursor n words backward
$ Move the cursor to the beginning of
1 Zen Coding
More about the function! See:
Download zencoding first!
Http://code.google.com/p/zen-coding/
Put zecoding. Vim in the Vim \ vimfiles \ plugin folder.
Place zencoding.txt in the Vim \ vimfiles \ doc folder.
Copy the files in the
In Linux, we cannot easily view the code. We don't know how to use many tools. Below is a summary of my VIM + cssag + ctags environment:
1. Vim
(1) Check whether Vim supports csflood.
# Vim -- version | grep cscope
+ Cryptv + cs1_+ cursorshape +
Yum (yellowdog Updater modified) is a set of Linux software for searching, installing, updating, and deleting programs. It runs on a Linux release version compatible with the RPM package, such as RedHat,Fedora, Suse,Centos, mandriva.
Today, the
Reprinted please indicate from "LIU Da's csdn blog": http://blog.csdn.net/poechant
1. Encrypt Your text files
When you use Vim to open or create a file, if you add the-x parameter, that is:
vim -x filename
Then Vim will prompt you:
Enter
Configuration Overview:
1. automatic matching of brackets [all types of brackets and quotation marks are supported]
2. One-click addition of syntax template, author, time, and other information
3. One-click compilation and running of a single source
Qtcreator is really tough to use. Use vim. Plug-in omnicppcompletion, generate the tags of STL and qt4 as the basis for all-around completion, and then generate
Tags is used as a jump and complete update.
Different from the reference:
1. The
When Vim is used, Chinese characters are garbled. In this case, we can modify the vimrc file to solve the problem!
First, you need to find out where vimrc is located. In general, in Linux
Linux:/usr/share/Vim/vimrc in Windows, it should be in the
My Vim configuration (with annotations) is relatively simple and practical, and will be updated continuously in the future based on the function addition.
If you need to copy the following content to the. vimrc file in the user's home directory,
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
This is used for a long time in advanced programming for Linux. Today, I have time to sort it out.
Http://www.cnblogs.com/witcxc/archive/2011/12/28/2304704.html original blog.
My personal experience: Although Vim can be designed to be
Downloads:
Ctags-Http://ctags.sourceforge.net/
Taglist-Http://www.vim.org/scripts/script.php? Script_id = 1, 273
ExtractCtags.exe from ctags58.zip to "C: \ windows \ system32 \"Folder, so that we don't need to add folder contains ctags.exe into %
Forwarded from http://www.unix.com/unix-dummies-questions-answers/132518-vim-tips-tricks.html
: W=> Save [: W filename writes the content to the specified file from current file]
: Q=> Exit as long as there have been no changes
: Q!=> Exit and
Learn Vim full graph explanation step by step (highly recommended)
You can learn Vim step by step based on the solution example-the following comments are drunk and explained by yourself based
Use Vim to build ide-Highlight
In ~ Create C. Vim under/. Vim/syntax. If this directory does not exist, create it by yourself.
Vim uses this script to read the syntax highlighting rules and edit the c. Vim file as follows:
"========================
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.