Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2032
  • 博文数量: 1
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2017-04-02 20:40
文章分类

全部博文(1)

文章存档

2017年(1)

我的朋友
最近访客

分类: LINUX

2017-04-02 21:23:31

set number
set tabstop=4
set autoindent
syntax on
 
inoremap ' ''i
inoremap " ""i
inoremap ( ()i
inoremap [ []i
inoremap { {}O
 
func SkipPair()  
     if getline('.')[col('.') - 1] == ')' || getline('.')[col('.') - 1] == ']    ' || getline('.')[col('.') - 1] == '"' || getline('.')[col('.') - 1] == "'"     || getline('.')[col('.') - 1] == '}'  
                    return "\la"  
                         else  
                                         return "\t"
                                              endif
                                          endfunc  
                      
inoremap =SkipPair()
set shiftwidth=4

阅读(356) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~