Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the advantages of using spf13-vim editor

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "what are the advantages of using spf13-vim editor". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Spf13-vim is a cross-platform and VIM plug-in and various resources of Vim,gVim and MacVim are highly customizable.

It can be used in Linux,Windows and MacOS X systems, as well as other Unix-like systems, it follows the traditional feel of vim because it provides today's functions, such as plug-in management systems, autocompletion, tags, and so on.

Recommended reading: learn about the vi/vim Editor-beginner's Guide

Significant plug-ins available under spf13-vim include:

Vundle VIM plug-in Manager

Vundle is based on the principle of accuracy to build Pathogen an excellent system, but with the use of Git and Github integrated plug-in management system.

Vunle File Manager

NERDTree Explorer Vim plug-in

NERDTree is a file browser plug-in that provides project drawer functionality to users' VIM editors.

NerdTree Explorer plug-in Vim

File Finder for ctrlp Vim

Ctrlp is an alternative command-T plug-in with 100% VIM plug-in. It supports an intuitive and fast way to load files from the file system (using regular expressions and fuzzy lookups), open buffers and recently used files.

Ctrlp File Finder for Vim

Surround and process all''[{}]', etc.

Surround sound is the right tool to deal with "the environment." Examples around include parentheses, quotes and HTML tags. These environments are closely related to the text objects referred to by Vim.

Surround creates a series of environments for you in Vim

Comment code in NERDCommenter-Vim

NERDCommenter is a plug-in that allows users to process comments in code, regardless of file type.

NerdCommenter comments on the code of Vim

Synthetic Integrated Syntax check Vim

Syntastic is a syntax checking plug-in, and they are saved and opened to execute buffers through external syntax checking. If any syntax errors are detected, a notification is sent to the user, so the user does not have to compile their code or execute their scripts to find them.

Syntax check Vim

Numbers.vim-add a line number to the Vim

Numbers.vim is a plug-in intersection between relative numbering (normal mode) and absolute numbering (insertion mode), depending on the mode.

This allows the user to move the code effortlessly with relative line numbers in normal mode. The correct line number is displayed again when writing code in insert mode.

Numbers.vim adds a line number to Vim

NeoComplCache Autocomplete + + Plugin of Vim

NeoComplCache is a powerful and brilliant autocomplete plug-in with additional support for fragments. It can be done automatically from dictionaries, buffers, omnidirectional and fragment simulations.

Neocomplcache Autocomplete + + Plugin for Vim

Fugitive adds Git integration to Vim

Fugitive has added persistent Git support in vim's Git directory.

Fugitive adds Git integration to Vim

PIV adds PHP edits to Vim

PIV provides modern Vim PHP integration with better PHP support for 5.3 packages, including the latest syntax, features, better folding, and so on.

PIV adds PHP edits to Vim

Everything in Vim is tabulated and aligned

Tabularize enables users to adjust their equal sign and several other character statements.

Tabularization aligns code in Vim

Tagbar adds tag generation and navigation in Vim

Tagbar requires exuberant-ctags and automatically creates a file tag that the user opens. It also provides a panel for easy browsing of tabs.

Tagbar adds tag generation and navigation in Vim

EasyMotion jumps anywhere in Vim

EasyMotion provides a way to interact with sports used in Vim.

EasyMotion jumps anywhere in Vim

In addition, spf13-vim:

Equipped with some additional syntax, such as Markdown, Twig and Git submission. Includes sunized and spf13-vim color packs (ir_black,molokal,peaksea). Contains a complete collection of fragments used with snipmate or NeoComplCache. How to install spf13-vim in Linux system

Before you continue to install spf13-vim, make sure that Git and cURL are installed on your system, otherwise, run the following command to install them correctly according to the distribution:

$sudo apt-get install git curl [On Debian based systems] $yum install git curl [On CentOS based systems]

Once the two packages have been installed, you can go further on your system and backup your current Vim configuration files using automatic installation scripts to install spf13-vim.

Therefore, type (or copy and paste) the following command in the terminal to run the automatic installer:

$curl http://j.mp/spf13-vim3-L-o-| sh

Note: if you have already installed spf13-vim, you can update to the latest version by following these steps:

$cd $HOME/.spf13-vim/$ git pull$ vim + BundleInstall! + BundleClean + Q

How to configure and use spf13-vim in Linux

After the installation is complete, close the current terminal and open another terminal session. Spf13-vim comes with a highly optimized. Vimrc is a very well-organized and collapsed section in which each part is marked and each option is commented.

The configuration file installed with spf13-vim in .vimrc helps to deal with the common shortcomings of spf13-vim, such as using a configuration file in all operating systems, correcting misspelling (: W,: Q plus many), configuration including plug-ins, setting interfaces to use vim features (including omnicomplete, line numbers, syntax highlighting, correct rulers and status lines, etc.) plus more.

$vi ~ / .vimrc

Spf13-vim configuration

You can add any local customization ~ / .vimrc.local and ~ / gvimrc.local to the file, in case the file already exists or creates it yourself.

For example, you can override the default color scheme and use peaksea, as follows:

$echo colorscheme peaksea > > ~ / .vimrc.local

Import various plug-ins for spf13 in the ~ / .vimrc.bundles file. However, add (or delete a single package) your own package and create the file ~ / .vimrc.bundles.local.

For example, the following command adds an additional package:

$echo Bundle\ 'spf13/vim-colors\' > > ~ / .vimrc.bundles.local

Here is a screenshot of how spf13-vim works with different color schemes:

If you find spf13-vim less useful, you can delete it entirely using the following command.

This is the end of the $cd ~ / .spf13-vim-3/$. / uninstall.sh "what are the advantages of using the spf13-vim editor". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report