---
title: "（转）vim设置"
author: "bosshida"
date: "2013-12-31T00:09:39Z"
tags: []
categories: ["操作系统"]
slug: "vim"
draft: false
lastmod: "2014-10-12T18:02:11Z"
id: 1997565
url: "https://bosshida.iteye.com/blog/1997565"
---

http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html

这是比较强大的设置，有个精简版和一个要装很多插件的。

 

http://qing.blog.sina.com.cn/tj/4c9eb482330016ed.html

这是语法高亮和tab等常用设置的。

 

将vim的环境文件copy到自己常用用户的主目录下  
cp /usr/share/vim/vimrc     ~/.vimrc

/usr/share/vim/vimrc 是默认的vimrc

 

要修改第一个Link的vimrc文件，查找noexpandtab，修改成expandtab。

这样才能在文件里把tab展开成4个空格，而不是用\\t表示。