Difference between revisions of "Vim/.vimrc"

From ArchWiki
< Vim
Jump to: navigation, search
(Vimrc: fix gists)
(turns out this is already posted in Vim)
 
Line 1: Line 1:
[[Category:Development]]
+
#REDIRECT: [[Vim#Example configurations]]
[[Category:Text editors]]
 
[[it:Vim/.vimrc]]
 
[[zh-CN:Vim/.vimrc]]
 
{{stub}}
 
[[Category:Dotfiles]]
 
An example {{ic|~/.vimrc}} covering common options.
 
 
 
== Setup ==
 
I install this as {{ic|/etc/vimrc}} if possible. Individual users can use a Vim configuration file in their home directories.
 
{{hc|~/.vimrc|source /etc/vimrc}}
 
 
 
To install for a single user, just save it in their home dir at {{ic|/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 {{ic|~/.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]].
 

Latest revision as of 10:45, 26 May 2015