---
title: "VIM配置"
author: "wgcode"
date: "2011-07-12T12:21:53Z"
tags: []
categories: ["编程语言"]
slug: "vim"
draft: false
lastmod: "2011-07-12T12:21:53Z"
id: 1122347
url: "https://tts.iteye.com/blog/1122347"
---

```
"显示行数
set nu

"中文注释乱码
set fileencodings=ucs-bom,utf-8,chinese,cp936
"设置模式
colorscheme torte
"设置tab=4
set shiftwidth=4
set sts=4
set tabstop=4
"tab->空格
set expandtab
syntax on

map <c-tab> :tabnext<cr>
map <c-s-tab> :tabNext<cr>

"梆定标签相关的快捷键
map <leader>tn :tabnew<cr>
map <c-tab> :tabnext<cr>
map <c-s-tab> :tabNext<cr>
map <m-1> 1gt
map <m-2> 2gt
map <m-3> 3gt
map <m-4> 4gt
map <m-5> 5gt
```