Recently looked at node. js, but when writing, Vim does not have a good hint of JS. Then install the plugin to handle, ready to install vim-javascript. However, when installing the plugin above GitHub, it is recommended to use Vundle and pathogen.Installing plugins, using Vundle management, is indeed a lot more convenient. The specific configuration is as follows (my operating system is Ubuntu 14.04 LTS):1.
Ubuntu 12.10 Install vim Error[Date: 2013-01-18] Source: Linux Community cubernet [font: Big Small]The following tips appear when you install Vim in Ubuntu 12.10:Reading Package List ... CompleteAnalyzing Dependency tree for PackageReading status information ... CompleteSome software packages cannot be installed. If you are using the unstable release, this may beBecause the system is unable to achieve the s
First, Introduction
Spf13-vim is a release version of the Vim plug-in and configuration, including a set of carefully selected Vim Plug-ins, with Vundle for plug-in management, and can be personalized through the following files
~/.vimrc.local #个性化配置文件
~/.vimrc.bundles.local #本地bundle配置文件
~/.vimrc.before.local # Personalization
Vundle is the VIM plug-in management tool used to manage Vim plug-ins, Vim-autoformat is a code-formatted plug-in
1. Installation Vundle (reference click to open link)
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vim
2. Add the following content to the. vimrc file
Set Nocompatible
In the initial growth of vimer, the combination of VIM + ctags + cs.pdf is basically a must for every vimer. Although ctags are powerful enough, csags can do more. Next, let's share a part of my vimrc script about cssag. This script can automatically search for cssag. Out in any subdirectory of the project and add it in.
First, we will share a small script to help us generate csmetadata. Out and ctags in the project.
I named this file CS. Sh.
Vim and vimVim-common sorting: 1.1 move the cursor
0 or home: Move to the beginning of the line (first line)
$ Or end: Move to the last character (end of line) of this line)
G: Move to the last row of the file.
NG: Row n of the object to be moved.
Gg: Move to the first line of the file, equivalent to 1G
N [Enter]: move the cursor down N rows1.2 search and replace
/Word: Search down for a string named Word
? Word: search for a string named word
"Highlight by characterSet incsearch"Use the mouse"Right-click and hold shift to process the operationSet mouse =
"Share clipboard with SystemSet clipboard + = unnamed
"Highlight the current rowSet cursorline
"Enable fold and set spaces to switch foldSet foldenableSet foldmethod = syntaxSet foldcolumn = 0Setlocal foldlevel = 1Set foldclose = allNnoremap "The configured folding is not expanded during search and undo operations.Set foldopen-= searchSet foldopen-= undo
Now, you can knock on the cod
commands. One way to learn these commands is to open GVim and use the C/C ++ menu in the GVim menu to learn c. functions and commands provided by vim.
Compared to other articles on the Internet that make Vim an IDE, my configuration is relatively simple, basically only a few plug-ins are installed, without too many settings. When I need a function, I will use the command to explicitly call it. So, call it
.
N: Repeat the previous search command in the same direction.
N: Repeat the previous search command in the opposite direction.
Common last line mode commands
File Storage
: W: Save the current file
: W file saves the current file as another file
: Q: Exit vi
: Wq: Save the current file and exit.
: X same as above
: Q! Do not save the file and exit
Multiline cut and copy in Normal Mode
: N1, n2 d cut the content between n1 and n2 to the clipboard
: N1, n2 m n3 cut content from line n1 to line n2
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we introduced the Nerdtree in vim.Plug - ins.. This time, let's continue to talk about the Nerdtree plugin, but what we said on the previous page is how to install the plugin.How to use the plugin. Well, still that sentence, gossip Hugh, words return to the positive turn. Let's talk about vim together!Crossing, l
Originally in vim paste from other places copied from the text, always use SHIFT + inert, then think, can not directly like P paste, do not have to enter the insertion mode and then paste. Later read the "Vim practical skills" on the introduction of VIM register, found this inside great article, so today specially to s
5.5 Entering edit mode5.6 VIM Command mode5.7 Vim PracticeExtendedSpecial usage of vim http://www.apelearn.com/bbs/thread-9334-1-1.htmlVim Common shortcut key summary http://www.apelearn.com/bbs/thread-407-1-1.htmlVim quickly deletes a character http://www.apelearn.com/bbs/thread-842-1-1.htmlVim garbled http://www.apelearn.com/bbs/thread-6753-1-1.htmlSmall keyboa
mouse and right-click and paste it. In fact, in most terminal, There is a shortcut key: Ctrl-Shift-v, paste the content into the command line. In this way, we solve the problem of pasting under the terminal.
Someone may ask, what should I do if I copy data under the terminal? At present, no satisfactory solution has been found.
-------------------------------------- Split line --------------------------------------
Build VIM into a simple and
1, CENTOS7 installation vimYum-y install vim (simple rough installation method)2, in vim display Chinese does not appear garbled(1), Vim ~/.VIMRC (~/.VIMRC for vim configuration file)(2), enter:Set fileencodings=utf-8,gb2312,gbk,gb18030Set Termencoding=utf-8Set Fileformats=unixSet ENCODING=PRC3, ~/.VIMRC~ Indicates the
Txtbrowser is a Vim plug-in designed to provide a better TXT browsing experience. Main functions: automatically generate a directory tree sidebar (taglist window) for plain text, syntax highlighting, and multiple extension functions (execute URL, search for the current word on the network, etc ). Developed by ypguo, a Chinese user, txtbrowser has been updated and is active recently.Solved the problem that the taglist.
Because of this konjac Konjac Noip character explosion, can go to winter camp, so ready to start practicing using Linux under the Ide:vimWith the help of Dalao DTZ, I installed vim and made the initial configuration.However........ It's so hard to use, it's not the same with Devcpp.Can not use the Clipboard, not with the mouse, but also to play so long compile commands, look at the uncomfortable ~ ~So, I wrote this configuration file.First, there are
Tags: nbsp button roman Exit Shift ace Insert Edit SWP Related knowledge /relevant knowledge 1 _VIMRC Programming /_VIMRC Program1. Annotation ", for comment2. Keyword set, for setting functions, etc.3. Keyword IMAP, which indicates a re-map in insert mode4. Keyword Inoremap, indicating the re-map in insert mode:Inoreremap HL Inoremap 5. Keyword Nnoremap, indicating a re-map in normal mode6. Phase Key table:
Name
corresponding keys
Name
corresponding keys
. Jump between rows
Command
Description
nG(n shift+g)
Cursor moves to nth row (if no line number is displayed by default, enter command mode first :set nu to display line numbers)
gg
Cursor moves to the first row
G(SHIFT+G)
To the last line
Let's practice it:Open the practice document with VIM$ vim protocolsD
From; http://blog.csdn.net/carolzhang8406/article/details/6117593
From Wikipedia http://zh.wikipedia.org/wiki/Vim.
Vim is a text editor developed from VI. Code Completion, compilation, error jump, and other convenient programming functions are particularly rich and widely used by programmers. It is used in parallel with Emacs to become your favorite editor for Unix-like systems.
The first version of
Unix Linux vi Vim User manualAbout ViVi is the most popular full-screen document editor in the Unix world, and almost any UNIX machine can saywill provide this software. Linux Of course also has, its VI is actually Elvis (copyright question), but they allAlmost. Familiar with the DOS of the document processing, may feel that VI is not good, Unix has developedMany newer, better-used clerical editors, but not necessarily every Unix machine will install
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.