Due to my recent work need to use vim and Linux Shell programming, I gathered some nice articles about self-learning those relative knowledge. Here I share them for you, hope it does work
First, you need some shell exprience. Bash guide for
I have always wanted to learn the god-like editor vim, but I have never had the courage to install, uninstall, and install it, just like I used Firefox. I have installed and installed it for no less than 10 times, later, I decided to use Firefox
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
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
VimIntroduction
Source: http://www.cnblogs.com/Henrya2/archive/2009/02/21/1395584.html
Vim (VI improved) is a text editor similar to VI. It adds many new features and functions based on VI. With its powerful functions and customization capabilities,
Vim-vimexplorer
Software Version:Ubuntu10.04Linux version 2.6.32-42-genericVim-VI improved 7.2Vimexplorer 0.99
Directory:
1. Introduction2. Download and install3. Use4. Configuration5. Problems I encountered
1. Introduction
Vimexplorer is a file
1. ctags(1) download the ctagssource code ctags-5.6.tar.gz from http://ctags.sourceforge.net/Http://prdownloads.sourceforge.net/ctags/ctags-5.6.tar.gz(2) decompress and installTar zxvf ctags-5.6.tar.gzCD ctags-5.6./Configure & make install(3) UseRun
[Translation]
/Joe/E:Cursor set to end of Match
Position the cursor at the last letter of the matching word
/Joe/e + 1:Cursor set to end of match plus 1
Position the cursor at the next letter matching the last letter of the word
/Joe/S-2:Cursor
The CTAG plug-in is mainly used to jump between variables and function definitions like in VC, so it is very convenient.
Download and install: http://down1.chinaunix.net/distfiles/ctags-5.2.3.tar.gz
Tar-xzvf ctags. xxxxxx
./Configure -- prefix =
1. taglist: source code structure browsingAuthor: yegappan Lakshmanan, website script No.: 273 .:Http://www.vim.org/scripts/script.php? Script_id = 1, 2731.1 function description:This is a very important plug-in. With this plug-in, we can view the
Solve the Problem of gvim menu display in Ubuntu 11.04Gvim menus cannot be displayed immediately when gvim is executed. And an error is reported:
** (Gvim: 15150): Warning **: unable to register window with path '/COM/canonical/menu/100': timeout
Link: http://blog.chinaunix.net/u/22968/showart_432334.html
Use cscope
The simplest way to generate a cssag tag is:Run csw.indexer in the top-level directory of your development project. it traverses all the following directories and generates
Vim common shortcut key Configuration
In Linux, when you use VI to write C/C ++ programs. h. CPP. CC and other files sometimes have many similar operations. If we need to complete the input for each similar operation, it will reduce the efficiency
Search and replace Vim
Replacement in search/Which # search whichcwthat # Replace with thatn # repeat search. # repeat replacement
Replacement command of one typeg/pattern/s/old/new/gFirstGIndicates that an operation is
Ex is Vim's support for row editor ed. ed is a line-oriented editor. in ancient times, in the age of black and white terminals, there was a popular row-oriented editor Ed, that is, reading files one row at a time, displaying only one row at a time,
Vim copy and paste
Vim, as one of the best text editors, uses Vim to compile documents and write code. Every time you learn a new feature of VIM, it will greatly improve productivity. Some people have been using Vim for decades and have not fully
1. Define Variables
Vim:
Run a = 123
Emacs:
(Setq a' 123)
2. define functions
Vim:
Function Fun () // if the scope limit is not used, the first letter must be capitalized.
Endfunction
Command Line call: command! -Nargs = 1 Gdb :! Command
1. Start the vim Compiler
Vim filename open the original file or create a new file.
Vim open a new file and specify the file name during or after editing.
Vim-r filename restores the files that fail to save the final editing result in time due to
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