Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ How to manage Vim plugin     - Linux Crontab Timing task command Detailed (Linux)

- To obtain installation package (RPM) under RHEL6 (Linux)

- MySQL 5.6 Open full query log (Database)

- Python control multi-process and multi-threaded concurrency (Programming)

- Oracle user password problem (Database)

- Oracle RAC node on the expulsion of the inspection process on OEL6.3 (Database)

- Bash How to read a file line by line (Programming)

- W and uptime command (Linux)

- Json data with double backslashes to a single backslash Json data processing (Programming)

- Java recognize simple codes (Programming)

- Installation JDK1.7 under Ubuntu14.04 64-bit (Linux)

- Ubuntu Linux installation GAMIT10.6 (Linux)

- Use exp exported EXP-00091 error (Database)

- Zabbix Agent (Server)

- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)

- About Leetcode on Binary Tree Algorithm summary (Programming)

- Eclipse configuration GTK (Linux)

- Android SDK Manager can not update the domestic solutions (Linux)

- Install VMware Tools in Debian (Linux)

- Firewall - Internet Militarization (Linux)

  How to manage Vim plugin
  Add Date : 2016-10-17      
  Vim is a lightweight Linux on general purpose text editor. Although the beginning of the learning curve when it may be difficult for the average Linux user, but compared to its benefits, which are paid entirely worth it. vim can fully custom built-ins to add more and more features. However, because of its feature set is more difficult, you need to spend some time to understand its plug-in system, and then to be able to effectively personalized set-Vim. Fortunately, we already have some tools to enable us to be more relaxed when you use Vim plugin. I use everyday is Vundle.

What is Vundle

Vundle means Vim Bundle, vim is a plug-in manager. Vundle allows you to very easily install the plug implement, upgrade, or remove the search. It can also manage your operating environment and assist in the labeling. In this tutorial we will show how to install and use Vundle.

Installation Vundle

First, if there is no Git on your Linux system, then install Git.

Next, create a directory, Vim plugin will be downloaded and installed in this directory. By default, this directory is ~ / .vim / bundle.

$ Mkdir -p ~ / .vim / bundle
Now, use the following command to install Vundle. Note Vundle itself is a vim plugin. Therefore, we also put vundle install directory before you create the ~ / .vim / next bundle.

$ Git clone https://github.com/gmarik/Vundle.vim.git ~ / .vim / bundle / Vundle.vim

Configuration Vundle

Now configure your .vimrc file as follows:

set nocompatible "Required.
filetype off "must.
"Here you set the path of the runtime environment.
set rtp + = ~ / .vim / bundle / Vundle.vim
"Initialization vundle
call vundle # begin ()
"This line should always be placed at the beginning.
Plugin 'gmarik / Vundle.vim'
"This demonstration from https://github.com/gmarik/Vundle.vim README
Plugin'tpope / vim-fugitive '
"From http://vim-scripts.org/vim/scripts.html plug
Plugin 'L9'
"The Git plugin is not on GitHub.
Plugin'git: //git.wincent.com/command-t.git '
"Git repository path (for example, when you develop your own plug-in) on the local computer
Plugin 'file: /// home / gmarik / path / to / plugin'
"Vim script sparkup stored in a subdirectory named this vim under the warehouse.
"This path will be correctly set runtimepath.
Plugin 'rstacruz / sparkup', { 'rtp': 'vim /'}
"Avoid conflict with the name on the L9
Plugin'user / L9 ', {' name ':' newL9 '}
"All plugins should be before this line.
call vundle # end () "required.
Let me briefly explain the above settings: By default, Vundle from github.com or vim-scripts.org download and install the vim plugin. You can also change the default behavior.

Install the plug from github:

Plugin'user / plugin '
From http://vim-scripts.org/vim/scripts.html installed at:

Plugin'plugin_name '
Also from a git repository installation:

Plugin'git: //git.another_repo.com/plugin '
Installation from a local file:

Plugin'file: /// home / user / path / to / plugin '
You can also customize other things, such as run-time path of your widget when you are writing a plug-in, or you just want from other directories - load the plug instead of ~ / .vim-- when doing so would very useful.

Plugin'rstacruz / sparkup ', {' rtp ':' another_vim_path / '}
If you have plug-ins of the same name, you can rename your plugin, so they do not conflict.

Plugin'user / plugin ', {' name ':' newPlugin '}

Use Vum command

Once you set up your vundle use plug-ins, you can install, upgrade, search widget, or clear with no plug-ins through several vundle command.


Install a new plugin

PluginInstall command will install all plug-ins listed in your .vimrc file. You can also pass a widget name to it, to install a specific plug-ins.

: PluginInstall
: PluginInstall

Clear useless widget

If you have not used any plug-ins, you can remove it by PluginClean command.

: PluginClean

Find a plugin

If you want to install a plugin from the list provided, the search function can be useful.

: PluginSearch

In the search, you can install the interactive segmentation window, clear, search again or reload the plug-in manifest. After installing the plug-in does not automatically load into force, to make loading effect, you can add them into your .vimrc file.

to sum up

Vim is a wonderful tool. It is not just a can make your work more smoothly and efficiently default text editor, but it also can be transformed into almost any existing one programming language IDE.

Note that there are some sites to help you find the right vim plugin. Slam http://www.vim-scripts.org, Github or http://www.vimawesome.com get new scripts or plug-ins. At the same time help you remember to use plug-ins provides.
- MongoDB Installation under CentOS 6.6 (Database)
- IntelliJ IDEA run in Mac10.9 and JDK7 environment (Linux)
- C language programming entry - Common operators (Programming)
- Oracle 11g user rights management study notes (Database)
- C # get the current screenshot (Programming)
- Java implementation of stacks and queues (Programming)
- Chkconfig set boot start under Linux (Linux)
- How to recover deleted files in Linux systems (Linux)
- Linux Monitoring Command (Linux)
- Zypper command for SUSE Linux package management (Linux)
- The Linux-based security settings Ipchains Firewall (Linux)
- Using a proxy method under Linux terminal (Linux)
- Git Tutorial Comments (Linux)
- CentOS 5.5 install ntop (Linux)
- Linux command line ten magic usage (Linux)
- AIX system file security aspects (Linux)
- Learning MySQL data types (Database)
- Linux mention the right notes (Linux)
- Linux Log File Browser --logrotate (Linux)
- PostgreSQL-XL installation and deployment (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.