exitZZ Save and exit: q! Force exit and Ignore all changes: e! Discard all changes and open the original file.Window commands: Split or new opens a new window with the cursor hovering over the top-level window: Split file or: New to open the files in a fresh windowSplit opens a window that is horizontal and uses Vsplit to open the window vertically.CTRL+WW move to the next windowCTRL+WJ move to the window belowCtrl+wk move to the top windowClose window: Close last window cannot use this command
.
# Parcellite amp;
Check options are enabled in gvim.
# Gvim -- version
Make sure that the "+ xterm_clipboard" option is displayed in the following output.
VIM-ViIMproved7.2 (2008Aug9, compiled Apr5201210: 12: 08)
Encoded ded patches: 1-411
Modifiedby lt; bugzilla@RedHat.com gt;
Compiledby bugzilla@redhat.com;
Huge version with GTK2 GUI. Features encoded ded (+) ornot (-):
+ Arabic + autocm
Installation
Ctags can establish the index of the source tree, so that programmers can quickly locate functions, variables, macro definitions, etc. to view the prototype
The following is the download installation and configuration process for ctags under Ubuntu:
Download and install ctags, Terminal input command
Copy Code
The code is as follows:
sudo apt-get install Ctags
Build source index, such as I often need to check Linux kernel code, and
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
. Exit Command
: Wq Save and exit
ZZ Save and exit
: q! Force exit and Ignore all changes
: e! Discard all modifications and open the original file. Window Command
: Split or new opens a window where the cursor stops at the top window
: Split files or: New file opens with a newer window
Split open windows are horizontal, using Vsplit to open the window vertically.
CTRL+WW move to the next window
CTRL+WJ move to the bottom of the window
Ctrl+wk move to the top window
Close window
: The last windo
line after line 20th.
Exit Command
: Wq Save and exit
ZZ Save and exit
: q! Force exit and Ignore all changes
: e! Discard all modifications and open the original file.
Window Command
: Split or new opens a window where the cursor stops at the top window
: Split files or: New file opens with a newer window
Split open windows are horizontal, using Vsplit to open the window vertically.
CTRL+WW move to the next window
CTRL+WJ move to the bottom of the window
Ctrl+wk move to the top window
Close wi
, invented en, and eventually changed to ex (even Bill Joy did not know how to change to ex ). Later, he spent a few months writing vi. When Bram Moolenaar purchased his Amiga computer at the end of 1980s, there was no frequently used editor vi on Amiga. Bram started to copy Stevie from an open-source vi and developed Vim 1.0. The initial goal was to completely copy the vi function. at that time, Vim was sh
usually find it in a place where Vim is available, and if you don't have vimtutor,vimtutor on your system you can easily install it from your package manager.GVimI know that not everyone agrees with this, but it's what makes me use Vim from the terminal to use GVim to meet my basic editorial needs. Opponents said GVim encouraged the use of the mouse, and Vim is
keys of Emacs. Sometimes they really want to have eight hands. The learning curve of VIM is not as long as that of Emacs. You only need to check the built-in vitutor of VIM, and you only need to know how to use Vim in about 20 minutes. For C/C ++ programmers in UNIX, I recommend that you use a combination of
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
Source:This article are part of the ongoing Vi/vim Tips and Tricks Series. As a Linux sysadmin or programmer, you could do following repetitive the tasks while Coding Bash shell script:
Adding file Header
Adding Function/frame Comment
including default code snippet
Performing syntax check
Reading documentation about a function
Converting a code block to comment, and vice versa
command
:!command
:!ls list files in current directory
:!perl-c script.pl Check the Perl scripting syntax, and it's easy to quit Vim.
:!perl script.pl to execute Perl scripts, which can be very handy without exiting Vim.
: Suspend or Ctrl-z hang vim, back to the shell, according to FG can return
, which are instructions to jump to the end of the document, the end of the line, and the beginning of the line.
: N, for example: 0,: 200, n is a number that can be jumped to any row.
:? STR,:/Str. The search is respectively up and down, and STR is the content to be searched.
%, Jump to the corresponding brackets, such as int main (INT argc, char * argv []), put the cursor on "(", % will let the cursor jump ")", if the cursor is at "]", % redirects the cursor "[". After vim7.0, i
record A macro named A, @a use this macro.
Execute shell command
:!command
:!ls lists the files in the current directory
:!perl-c script.pl Check perl script syntax, it is very convenient without having to quit vim.
:!perl script.pl Executes Perl scripts and is very handy without having to exit vim.
: Suspen
Sonar installation and code quality check instances and sonar code check instances
Note: sonar depends on the database.
Mysql Optimization
1. I am using the mysql database. I will first make simple Optimization Configuration for mysql.
[Root @ localhost bin] # cat/etc/my. cnf [mysqld] max_allowed_packet = 10 Mdatadir =/var/lib/mysqlsocket =/var/lib/mysql. sockuser = mysql # Disabling symbolic-links is recom
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
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.