Difference between revisions of "Vim/.vimrc"

From ArchWiki
< Vim
Jump to: navigation, search
(Colorscheme: -> gist)
(Vimrc: fix gists)
Line 20: Line 20:
 
== Vimrc ==
 
== Vimrc ==
  
https://gist.github.com/anonymous/fbcffb766948bcd5c21e
+
https://gist.github.com/anonymous/c966c0757f62b451bffa
 +
https://gist.github.com/anonymous/c49507565bc068b62d4b
 +
http://www.askapache.com/linux/fast-vimrc.html
  
 
==Colorscheme==
 
==Colorscheme==

Revision as of 10:43, 26 May 2015

zh-CN:Vim/.vimrc An example ~/.vimrc covering common options.

Setup

I install this as /etc/vimrc if possible. Individual users can use a Vim configuration file in their home directories.

~/.vimrc
source /etc/vimrc

To install for a single user, just save it in their home dir at /home/username/.vimrc

Portability

For the portability needed to work on many different systems, this does not rely on any plugins other than those built into the default installation of Vim 7.0.

It works well on all types of consoles, and depending on the TERM environment variable (and whether it has the right term capabilities) it will load 256 color support or not. Usually on a new system I just scp this right over and it works without any modifications. But it is an ongoing work in progress.

Vimrc

https://gist.github.com/anonymous/c966c0757f62b451bffa https://gist.github.com/anonymous/c49507565bc068b62d4b http://www.askapache.com/linux/fast-vimrc.html

Colorscheme

Here is a colorscheme file optimized for 256 colors. It will work if saved in ~/.vim/colors/askapachecode.vim or likewise in your runtimepath. Additionally, you could just paste it in the bottom of the above vimrc.

The code really needs to be cleaned up, but it looks awesome.

https://gist.github.com/anonymous/c8d82c7e7c68d3ce9077

See also

Some more examples can be found in Vim#Example_configurations.