Vim is a powerful text editor, by default there are three modes: Command mode, insert mode, edit mode, use # Vim file to open a file, the default into the command mode, different modes of direct switching as followsA. Command mode switch to insert
November 21, 2010, Sunday 09:50
Questions raised:Under Windows There are sourceinsight can easily locate functions, variables, macro definitions, and so that developers to manage project code, improve development efficiency, then in Linux
the bottom of the Vim editor [Noeol], [dos] meaning
Sometimes using Vim to open a file will be found at the bottom of the window [Noeol], [DOS] hint information:
1
"Hello-dos.txt" [Noeol][dos] 2L, 10C 1,1 all
What does the
have been looking to see if there is a quick way to
Select all , but the internet is a lot of repetition, and wrong, such as:
1, $y, what it is. To write will also be written: 1, $y, but I tell you, written: 1, $y is all copied, not
all selected
https://blog.csdn.net/zhzht19861011/article/details/4545260
1. Enter the character interface
2. Create a folder for storing source files
mkdir HelloWorld//Create Folder command
CD HelloWorld//Enter the new folder, this should be said that the
Command History
Commands with: and/start with history, you can first type: or/And then press the up and down arrows to select a history command. start Vim
Enter the following command in the Command line window
Vim starts vim directly
Vim filename
Http://www.cnblogs.com/ShaneZhang/archive/2013/05/23/3094236.html
Method One
CTRL + V enters column edit mode, moves the cursor down or up, marks the beginning of the line that needs to be commented on, then presses the uppercase I (SHIFT+I),
This article originates from http://blog.csdn.net/shuangde800
This article is a note taken in the study of "Using VI Editor, Lamb & Robbins". article content:Basic global substitution confirm substitution context-related substitution This article
After you install VIM, if you have not highlighted it, set the following way:
First, if there is no ~/.VIMRC, create
$vi ~/.VIMRC
Second, switch to insert mode, the following settings directly copied into:
Set AutoindentSet
use of ctags under Vim
1. Installation of Ctags
Source Installation:
Download source code./configureMakesudo make install
under Ubuntu or Debian:
sudo apt-get install ctags 2. tags file
Create tags
Ctags-r * or Ctags-r.
Configure VIMRC to
Vim Full-screen plain text editorVim Use1 Vim file namelast-line modecommand----> input a append i insert O open (line break)command----> Last line: w Save: q! do not save exit: Wq Save and exit: N moves to the first line (n refers to a number): Set
1. Installation
: Http://www.vim.org/scripts/script.php? Script_id = 1, 273
Decompress the package to the directory ~ /. Vim.
In ~ /. Add the following lines to the vimrc file:
Let tlist_use_left_window = 1let tlist_file_fold_auto_close = 1
Take my Ubuntu 12.10 As an example. After Vim is installed, the python plug-in is provided.
ls /usr/share/vim/vim73/autoload/adacomplete.vim netrwFileHandlers.vim sqlcomplete.vimada.vim netrwSettings.vim syntaxcomplete.
Vim/VI has always been the most popular text editor on Unix/Linux systems. Since its access to Unix in 2001, VIM/VI has always been the preferred editor for me to modify system files and write simple programs, it is an essential tool for home travel.
The use of VIM in Linux is indeed very important, and many times you don't need to forget it. Therefore, you can record Common commands here. For simple insertion modes or command modes, you don't need to elaborate on whether to save or not.
1.
VIM + ctags usage (reproduced)
[/Home/Brimmer/src] $ ctags-R
"-R" indicates recursive creation, which includes the source program under all subdirectories under the source code root directory. The "tags" file contains a list of these objects:
L
VI/Vim basic usageThis article introduces the basic usage of VI (Vim), but it is enough for common users!
The VI editor is a standard editor for all UNIX and Linux systems. It is not inferior to any of the latest text editors. Here we just briefly
1. Install taglist and ctags
(1) ctags Installation
A. Download ctags
Download URL: http://ctags.sourceforge.net/., such as the download is ctags-5.6.tar.gz.
B. decompress the package.
$ Tar-xzvf ctags-5.6.tar.gz
C. Compile and install
$ Ctags-5.6
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.