Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1182005
  • 博文数量: 233
  • 博客积分: 6270
  • 博客等级: 准将
  • 技术积分: 1798
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-26 08:32
文章分类

全部博文(233)

文章存档

2011年(31)

2010年(202)

我的朋友

分类: LINUX

2010-08-26 12:14:24

代码补全:snipMate ()
括号补全:
 

inoremap ( ()i
inoremap ) =ClosePair(')')
inoremap { {}i
inoremap } =ClosePair('}')
inoremap [ []i
inoremap ] =ClosePair(']')
inoremap < <>i
inoremap > =ClosePair('>')

function ClosePair(char)
    if getline('.')[col('.') - 1] == a:char
        return "\"
    else
        return a:char
    endif
endf

 
 
For Python:pydiction
.vimrc配置

filetype plugin on
let g:pydiction_location = '~/.vim/after/ftplugin/pydiction/complete-dict'

if has("autocmd")
autocmd FileType python set complete+=k/home/hym/.vim/after/ftplugin/pydiction/complete-dict iskeyword+=.,(
endif " has("autocmd")

 
显示python document
 
其它
Delete键无法删除:
set backspace=indent,eol,start

方向键工作不正确:

set nocompatible

阅读(590) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~