Modify the vim configuration file in Ubuntu to make it easier for CProgramDesignAnother simple method
1. Input Vim ~ in the terminal ~ /. Vimrc press ENTER2. Enter the following content:"Display row number: Set nu
"Tab width: Set Ts = 8
"Auto
[Vim] Vim settings for displaying row numbers, syntax highlighting, and automatic indentation
I have never tried fedora in other Linux versions. Please forgive me! Thank you.
In ubuntu, the vim configuration file is stored in the/etc/Vim directory.
I tried to use the python AutoComplete in vim and setting the environment
In ~ /. Bashrc, then it works in shell. But not works when I opening gvim from a window.
Find it on line and I get some useful information:
When you are
Vim's omnipotent completion for python can be used normally for all module libraries that come with python, but some custom modules do not work. This is
Because the current Vim process needs to find the corresponding module and perform import and
If you have been using Vim for a while, you will want to modify some of its configurations, such as displaying the row number by default. Where can I change it?
The answer is:Vimrc
Where is this configuration file?
Open your VI and enter [:
After calling gsensor this afternoon, there are still some bugs. I want to change my mind for the time being. I accidentally think of VIM. Vim is nothing more than configuring it. I used to configure some of it, it took another afternoon to add
1. Use CD/to go to the file system;
2. Switch CD/etc/Vim to the Vim directory;
3. Modify the File Permission: sudo chmod 777 vimrc. You will be prompted to enter the password and enter the password;
4. Run Vim vimrc to open the vim file. The
Copy the following code ~ /. Vimrc (~ Is your main directory. If ~ /. Vimrc, touch one to be in ~ Touch. vimrc,
. Vimrc is a hidden file, in ~ Enter LS-a to check whether the file exists ):
Set nocompatibleSet numberSet autoindentSet smartindentSet
"*************************************** "******************************** * *********** "Set the operating system if has (" Win32 ") | has ("win64") | has ("win32unix") Let G: iswin = 1 else let G: iswin = 0 endif
"**********************************
Stage 1: U c-r [secondary memory: Undo redo] Hey, Tom, my sister deleted important things. What should I do? Solve the problem by u in normal mode! Not enough? 3u 6u 10000u thank you ~ White, u pressed a few more, undo too much ~ Then c-r will be
% Jump to matching brackets
[[Jump to the beginning of the code block (but the '{' in the code block must be a separate line)
GD jump to the definition of a local variable
''Jump to the position where the cursor was stopped last time. It's two '',
I am a fan of VIM. I have been using it for a long time. I have some feelings and found some other people's skills everywhere. I think it is useful to VIM fans. Remember it here. I hope that this article will help you develop your own clever work,
Turn: http://www.cnblogs.com/cbscan/archive/2012/02/26/2368875.html
This problem has been solved for a long time.
First, directly import wx In the python interpreter. If wxpython can be used properly, it indicates that wxpython has been installed
You can use vimgrep; in the following example, find *. cpp, *. H, *. ASM in this example (including all sub-projects )."Dmcnet"A list of related words (search results are shown in quickfix window)
: Vimgrep/dmcnet/GJ **/*. cpp**/*. H **/*.
I,Official Website
Www.vim.org
II,VI Working Mode
Command mode, insert mode, and edit mode.
III,Go to VI
1.Use VI to open a file.
2.Directly go to the specified location.
1)Vi + 20/etc/passwd
2)Vi +/root/etc/passwd
IV,VI Basic Applications
1.INSERT
Today, I wrote QT and suddenly wanted to use Vim's automatic complementing function. Google decided to use neocomplcache. It has the advantages of caching, high auto-completion timeliness, and accurate keyword list generated. It can be found on the
Document directory
Background
Basic knowledge
Preparations
Custom themes
My themes
Summary
Manually expand the vim plug-in-color
By Ma Dongliang (cream Loki)
One man's war (http://blog.csdn.net/MDL13412)Background
Anyone who has used a
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