1. Nasty indentation
When copying from other places to VIM, sometimes there will be "unlimited" indentation, such as a step, and its impact on readability
Solution:
Gg = g, formatted from the end of the file header
2 automatic comments
There is
Set nuset roset shiftwidth = 4 set tabstop = 4 set softtabstop = 4 syntax onif & term = "xterm" set t_co = 8 set t_sb = ^ [[4% DM set t_sf = ^ [[3% dmendifautocmd bufreadpost * \ If line ("'\" ")> 0 & line ("'\" ")
One of the most important reasons to like Firefox is that Firefox has numerous and very interesting plug-ins. Today, we accidentally discovered another plug-in, vimperator. It can change Firefox to vim.
Vim is the improved version of the VI editor
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
System Environment: ubuntu10.04 complete installation of VIM gvim
Problem: The Chinese Characters in VIM on the terminal are garbled and some solutions are searched online. However, it is strange that none of these methods can implement gvim menus
Http://youlvconglin.blog.163.com/blog/static/523204201001712047566/
A colleague used Vim for development, which is very efficient. It used to use the vim and ctags plug-ins,
I have been searching for it on the internet for a long time. I found
This article is reproduced. Address: http://coolshell.cn/articles/5426.html
Author: Chen Hao
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
Vim can be automatically completed based on the dictionary of the user's meaning. 1) dictionary: Vim uses a series of words in a text file. If it is written in the same line, vim will automatically split according to the delimiter in iskeyword. If
Source: Use ctags and omnicppcomplete-taglist-cs1_globalHttp://blog.chinaunix.net/uid-11770217-id-323264.html
Automatic Code Completion and code jump reading should be one of the most common functions for programmers. I will not explain what the two
6. Change the window size * window-resize *
* CTRL-W _ = *CTRL-W = makes all windows (almost) equal width, height, but current Windows use 'winheight' and'Winwidth '.
: Res [ize]-N *: res **: resize ** CTRL-W _-*CTRL-W-causes the current window
Original converted from [http://my.oschina.net/captaintheron/blog/5157? From = RSS]
It is annoying that python is strictly indented, but I use py under Vim in Linux. By default, the tab is as long as eight spaces (in fact, it is still a tab, set
1Install vimlupa open-source community 0i; mendf
Sudo apt-Get install vim-fullP h'u-] + y ^ 151392
2
, Configuration file location
In the Directory
/Etc/Vim
Below, there is
Vimrc
File, which is public in the system
Vim
Configuration
Vim provides a variety of configuration functions in a simple way. The main configuration system consists of a file and a folder. On an OS X/Linux/Unix machine installed with vim, go to the user's home directory and find the. vimrc file and. Vim
"*************************************** "******************************** * *********** "Set the operating system if has (" Win32 ") | has ("win64") | has ("win32unix") Let G: iswin = 1 else let G: iswin = 0 endif
"**********************************
1) Why can't other people's methods work for me?(2) how to find the last edited file?(3) how to copy and paste it?(4) how to replace multiple files?(5) how to open all fold once?(6) how to select or copy the word where the cursor is located?(7) how
"To do well, you must first sharpen your tools"
-----Analects of Confucius
Read the source code tool Vim in Linux.
Xbw 2009-03-19
Many Linux software development programs run without X Windows, so many graphical code reading software cannot be used.
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
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
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.