Chinaunix首页 | 论坛 | 博客
  • 博客访问: 628036
  • 博文数量: 149
  • 博客积分: 3901
  • 博客等级: 中校
  • 技术积分: 1558
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-16 14:33
文章分类

全部博文(149)

文章存档

2014年(2)

2013年(10)

2012年(32)

2011年(21)

2010年(84)

分类: LINUX

2012-01-31 16:21:12


vimrc
  1. "auto sv and ld session
  2. let g:AutoSessionFile=".project.vim"
  3. let g:OrigPWD=getcwd()
  4. if filereadable(g:AutoSessionFile)
  5.     if argc() == 0
  6.         au VimEnter * call EnterHandler()
  7.         au VimLeave * call LeaveHandler()
  8.     endif
  9. endif
  10. function! LeaveHandler()
  11.     exec " ".g:OrigPWD."/".g:AutoSessionFile
  12.     endfunction
  13.     function! EnterHandler()
  14.     exe "source

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