Common options for the Vim text editor under Linux.VIM (Visual interface improved) is an enhanced version of the VI editor, small but powerful, is the most frequently used Linux system Text editor, so learning Vim is also a necessary skill to learn
1. Use vim and ctags/cs.pdf.
In Linux, we provide a complete IDE and VIM Quick Start-run vimtutor directly to familiarize yourself with vim commands according to the training requirements.
Ctags/csags to helpProgramBrowsing the program.
The cursor control command moves the cursor h or ^ h to move one character J or ^ n to move one row K or ^ P to move one row up l or space to move one character G to the right the last line of the file moves ng to the nth line of the file W to the
I think every coder has a profound understanding that modifying this operation isCodeHow important is the world?
Modification is nothing more than deletion and insertion, but Vim combines the two very efficiently.
Let's use this brisk Vim to
Address: http://blog.csdn.net/ruixj/article/details/3765385
WriteProgramOften encounter case-insensitive conversion problems,VimIt provides many easy case-sensitive conversion commands, which can be used in combination with vim's cursor
After adding this plug-in to VIM, write c ++ Java and so on.ProgramYou can automatically add some fixed-format structures, just like Eclipse. For example, you can enter for to see the complete
For (=;+=){}
Press the tab key one by one to locate
1. securecrt
Settings in session
1) Session option → select the font (New, or others), and select chinese_gb2312 for the character set.
2) Vim/etc/sysconfig/i18n
Lang = "zh_CN.UTF-8"
3) VI ~ /. Bash_profile
Export lang = zh_CN.UTF-8
2.
Basic Configuration
Terminal operation:
Vim ~ /. Vimrc
The configuration is as follows:
Set nocp "set compatible with set expandtab" set tabset shiftwidth = 4 "set the tab interval set tabstop = 4" four spaces represent a tabset STS
VI (Vim) is a commonly used editor on Linux. By default, VI (Vim) is installed in many Linux distributions ). There are many VI (Vim) commands, but if they are used flexibly, the efficiency will be greatly improved. VI is short for "Visual Interface"
==> Compressing manual pages for VIM-7.3.121
==>> Registering installation for VIM-7.3.121
==> Cleaning for libXt-1.0.9, 1
==> Cleaning for intltool-0.41.1
==> Cleaning for pkg-config-0.25_1
==> Cleaning for atk-2.0.1
==> Cleaning for glib-2.28.8_4
=
I. Basic editing functions1. Copy, cut, and pasteCopy a specific segment: move the cursor to the header of the text to be copied, press "V", move the cursor back, and the character where the cursor is crossed will be highlighted, after moving to the
To replace a string with vim, use the "S" command in VI/vim. In the past, we used only one format to replace the full text. Today we found that there are many ways to write this command (VI is really powerful, and there are still a lot to learn).
What I finally added under _ vimrc is:
1 map :w!:!E:\Aspell\bin\aspell --lang=en check %:e! %
Execute Aspell to check the current file by pressing F9
Note:% In vimrc indicates the current file
E: \ Aspell \ bin \ Aspell change to the directory
Vim learning Notes configuration file (vimrc)
When Vim is started, it first searches for the configuration file and runs the command. These initialization files are generally vimrc, gvimrc, and exrc.
Exploitation:versionCommand to obtain detailed
Successfully transformed Vim into four powerful ide Series
"Plugin Introduction 』
Supertab enables quick context prompt for tab shortcuts.
"Download and install 』
From http://www.vim.org/scripts/script.php? Script_id = 1643 download the
Common editing commands in vim and Shell
Because many of the operations in Linux and Linux are implemented through the command line, mastering some simple command line operations will greatly save our time in unnecessary steps, now we will summarize
Summary:Install vim --> Configure the/etc/vim/vimrc FileThis enables vim to support syntax highlighting, automatic indentation, and other functions. Currently, the content of the vimrc configuration file is as follows, and basic c/c ++ programming
Reprinted from: http://blog.163.com/zhang_sheng_cun/blog/static/46288667200792604435190/
Http://hi.baidu.com/istang/blog/item/b8a38d6e0d0f1fd780cb4a2b.html
When you use vim to edit a terminal, by default, the editing interface does not display line
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.