(转) 共享个很棒的vim配置
发现了一个很棒的vim配置方法,现在共享给大家。
https://github.com/kepbod/ivim
ivim - The Vim Distribution of Xiao-Ou Zhang
Installation
Manual Install
- A Vim/MacVim/gVim with version higher than 7.3 has been installed on your computer, and back up your origin vim stuff;
- Install Vundle to install and update plugins,
git clone git://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
; - Install hybrid theme,
git clone git://github.com/w0ng/vim-hybrid.git $HOME/.vim/bundle/vim-hybrid
; - Get ivim from github website,
git clone git://github.com/kepbod/ivim.git $HOME/ivim
; - Make symbolic links of vimrc to your home directory,
ln -s $HOME/ivim/vimrc $HOME/.vimrc
; - Install plugins,
vim +BundleInstall! +BundleClean! +qa!
; - Just enjoy it!
Automatic Install (*nix only)
via 'curl'
curl -L https://raw.github.com/kepbod/ivim/master/tools/bootstrap.sh | bash
via 'wget'
wget --no-check-certificate https://raw.github.com/kepbod/ivim/master/tools/bootstrap.sh -O - | bash
Updating
bash $HOME/ivim/tools/update.sh
If you confront errors when you update vim plugins, please run command below.
bash $HOME/ivim/tools/restore.sh
Requirements
Vim
- This distribution is adapted to both Vim and MacVim/gVim. Remember that the Vim/MacVim/gVim version should be 7.3+, or errors would occur!
Git
- All the installations are based on Git which is a famous distributed revision control system. If you use Windows, you may need install msysgit.
Ctags
- Ctags generates an index (or tag) file of language objects found in source files that allows these items to be quickly and easily located by a text editor or other utility. I recommend you to use Exuberant Ctags.
To use this distribution with less bugs, please get more suggestions from here
Features
Beautiful
Use lots of famous colorschemes to make your eyes feel comfortable in both Vim and MacVim/gVim.
- Hybrid(default)
- Tomorrow-Night
- Solarized
- Jellybeans
Efficient
- Make using Vim more convenient and faster, and lots of useful plugins (such as Neocomplcache, NERD_commenter,Syntastic and SingleCompile) confirm a better performance of Vim.
This distribution is completely customisable using a ~/.vimrc.local
, ~/.gvimrc.local
and ~/.vimrc.bundles.local
!
Plugin List
- Vundle - Manage the Vim scripts
- Tagbar - Browse the tags of source code files
- NERD_tree - Explore filesystem and to open files and directories
- NERD_commenter - Provide many different commenting operations and styles
- Neocomplcache - Performs keyword completion by maintaining a cache of keywords
- surround - Provide mappings to delete, change and add surroundings in pairs
- delimitMate - Provides automatic closing of quotes, parenthesis, brackets, etc.
- Ctrlp - Full path fuzzy file, buffer, mru and tag finder with an intuitive interface
- Ag - A front for ag, A.K.A. the_silver_searcher
- Ack - A replacement for 'grep' using Perl module App::Ack
- Tabular - Line up text easily
- Syntastic - Syntax check that runs files through external syntax checkers
- EasyMotion - Provide a much simpler way to use some motions in Vim
- Indent Guides - Visually display indent levels in Vim
- fugitive - Git wrapper
- Gundo - Visualize Vim undo tree
- EasyTags - Automated tag generation and syntax highlighting in Vim
- Powerline - Create better-looking, more functional Vim statuslines
- SingleCompile - Compile or run a single source file without leaving Vim
- CamelCaseMotion - Refine words motion in Vim
- Zencoding - High-speed HTML, XML, XSL coding and editing
- Splitjoin - Switch between a single-line statement and a multi-line one
- Unite - Search and display information from arbitrary sources
- rails.vim - Plugin for working with Ruby on Rails applications
- Indent Object - Text objects based on indent levels
- NrrwRgn - Focus on a region and making the rest inaccessible
- unimpaired.vim - Complementary pairs of mappings
- abolish.vim - Search for, substitute, and abbreviate multiple variants of a word
- vimux - Easily interact with tmux from vim
- markdown-preview - Select Markdown text, render to HTML and preview in browser
- unite-outline - Provide your Vim's buffer with the outline view
- swap-parameters - Swap parameters
- autolink.vim - Find and insert URLs for links in Markdown and ReST documents
- textobj-word-column.txt - Make operating on columns of code conceptually simpler and reduces keystrokes
- vim-speeddating Use CTRL-A/CTRL-X to increment dates, times, and more
- GoldenView.vim Manage windows more convenient
- vim-startify Provide a good start screen for vim
- vim-multiple-cursors Provide Sublime Text's awesome multiple selection feature to vim
Each plugin has its unique requirements and configurations, so if you have any questions with them, please check help files of them first!
Vim Tips
Learning Vim
A good learning method of Vim is vimtutor, a 30 minute tutorial that teaches the most basic Vim functionality hands-on.
To try it, just type
vimtutor
on terminal.Another way to get familiar with Vim commands and settings is just rely on the strong help system of Vim.
It's easy and convenient to type
:h
or:help
in Vim for help of whatever you want to know.A beautiful Vim cheat sheet is available here. If you want one, just click it!
Key Mappings
Because I have set some key mappings for more convenient typing and checking, you may feel inconvenient with them at start. But if you get familiar with them, I'm sure you will love them.
You can just type
:map
in Vim to see them.
More Tips
- Vim_Tips_Wiki is an excellent website, and you can learn much from it.
- Vimcasts publishes free screencasts about Vim. It's useful and interesting! Believe me!
Hope You Enjoy Vimming
Notes
This distribution refers to many other famous Vim configurations (mainly contain spf13-vim, Champions' Configuration and Steve's Configuration), so there may be some unavoidable errors in it, but I'll try my best to make it work well. If you have any questions, please feel free to post your issues and suggestions! Thanks!
Lisence
ivim - The Vim Distribution of Xiao-Ou Zhang
Copyright (C) 2013 Xiao-Ou Zhang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
(转) 共享个很棒的vim配置的更多相关文章
- Env:VIM配置
注:文章来自于http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html 花了很长时间整理的,感觉用起来很方便,共享一下. 我的vim配 ...
- VIM配置(转载)
注: 转载于http://www.cnblogs.com/ma6174/ 花了很长时间整理的,感觉用起来很方便,共享一下. 我的vim配置主要有以下优点: 1.按F5可以直接编译并执行C.C++.ja ...
- Vim实用技巧系列 - 利用百度云和git实现vim配置多机共享
Vim是一个强大的文本编辑器.良好的配置更能便利对Vim的使用.有时候,我们会在几台不同的电脑上使用Vim. 例如,我们可能在自己的电脑和公司的电脑上都安装了Vim. 有时候,我们需要实现,如果我们配 ...
- Vim配置及使用技巧
要说Linux下比较好用的文本编辑器,我推荐vim(当然很多人都用emacs,可我没用过),用vim也有一年左右,有些心得体会想与诸位分享.在我的学习过程中,借鉴了不少优秀的博客,其中有csdn大神n ...
- linux服务器共享给windows的client打印机配置
最近实验室新进来一台服务器还有打印机,老大意思让服务器连接打印机并进行网络共享,其他的人可以通过自己的PC连接到共享打印机,打印各自电脑的文件.这样的需求可能很多人都有遇到,我也是遇到这件事,在网上搜 ...
- Spring Boot 揭秘与实战(四) 配置文件篇 - 有哪些很棒的特性
文章目录 1. 使用属性文件2. YAML文件 1.1. 自定义属性 1.2. 参数引用 1.3. 随机数属性 1.4. application-{profile}.properties参数加载 3. ...
- acm的ubuntu (ubuntu16.04 安装指南,chrome安装,vim配置,git设置和github,装QQ)
日常手贱把ubuntu14.04更新到了16.04,然后就game over了.mdzz,不然泥萌也看不到这篇博客了=.= 然后花了些时间重装了一个16.04版的,原来那个14.04的用可以用,就是动 ...
- 简单快捷好用的vim配置和终端配置推荐
vim 配置实用spf13-vim,安装方便简单快捷,极力推荐. 另外oh-my-zsh 终端配置很好,与之搭配使用效果更佳. 安装都很简单,一个脚本搞定, 都是在gitHub上开源的,自行搜索,这里 ...
- 快速学习C语言三: 开发环境, VIM配置, TCP基础,Linux开发基础,Socket开发基础
上次学了一些C开发相关的工具,这次再配置一下VIM,让开发过程更爽一些. 另外再学一些linux下网络开发的基础,好多人学C也是为了做网络开发. 开发环境 首先得有个Linux环境,有时候家里机器是W ...
随机推荐
- cpu访址能力和内存
这里有两个概念:cpu访址能力和提供的内存.举例来说,有个灯泡,可以照亮100立方米的空间,只有照亮的空间才可以工作.假如现在的空间只有50立方米,只要增加空间,可工作的空间就增加了.如果当前已经是1 ...
- Excel只能输入不许修改
昨天出差,用户有个需求:需要他人录入数据,为了防止已经录入的数据被修改(录入数据由多方完成),必须限定只能输入,不能修改(修改时需要密码),最开始的方案是各设置一个密码,但如果他们相互之间联合 ...
- sse float 转int 截断和不截断
之前, 我用sse指令, 想把float 型转成int, 不过其中遇到了一些困惑,就是截断和不截断的问题, 这个问题一直困扰我好集体, 最后终于解决了, 原来sse本身就有截断和不截断的指令. _mm ...
- 算法笔记_175:历届试题 蚂蚁感冒(Java)
目录 1 问题描述 2 解决方案 1 问题描述 问题描述 长100厘米的细长直杆子上有n只蚂蚁.它们的头有的朝左,有的朝右. 每只蚂蚁都只能沿着杆子向前爬,速度是1厘米/秒. 当两只蚂蚁碰面时,它 ...
- Fiddler SessionFlags
Each Session object in Fiddler contains a collection of string flags, in the Session.oFlags[] collec ...
- JDBC的简单操作
JDBC是一组能够执行SQL语句的API 由于传统的数据库操作方式需要程序员掌握各个不同的数据库的API,极其不便 因此java定义了JDBC这一标准的接口和类,为程序员操作数据库提供了统一的方式 J ...
- webservice系统学习笔记1-使用注解创建ws服务
简单入门之helloword,具体详细的在后面的章节详细介绍. 使用JDK自带的jax-ws创建并发布一个简单的webservice 在本地创建服务,然后本机访问 1.创建服务提供接口 IMyServ ...
- def函数之另类用法
#python 27 #xiaodeng def list_opts(): return [ ('name', 'xiaodeng'), ('age', 28), ('), ('where', 'en ...
- java Socket Tcp 浏览器和服务器(二)
package cn.itcast.net.p2.ie_server; import java.io.IOException;import java.io.InputStream;import jav ...
- 触发器学习笔记(:new,:old用法)
触发器学习笔记(:new,:old用法) 触发器是数据库发生某个操作时自动运行的一类的程序 用于保持数据的完整性或记录数据库操作信息方面 触发器不能够被直接调用,只能够 ...