" Vimball Archiver by Charles E. Campbell, Jr., Ph.D. UseVimball finish plugin/myprojects.vim [[[1 2563 "============================================================================= " File: myprojects.vim " Author: Frédéric Hardy (fhardy at noparking.net) " Date: Fri Mar 27 14:24:05 CET 2009 " Licence: GPL version 2.0 license " GetLatestVimScripts: 2556 10039 :AutoInstall: myprojects.vim "============================================================================= " Check version {{{1 if v:version < 700 echoerr "myprojects.vim requires vim >= 7. DOWNLOAD IT! You'll thank me later." " Check folding {{{1 elseif !has('folding') echoerr "myprojects.vim requires folding." " Check compatible mode {{{1 elseif &cp echoerr "myprojects.vim requires no compatible mode." " plug-in's code {{{1 elseif !exists('myprojects_enable') " Save cpo {{{2 let s:keepCpo= &cpo setlocal cpo&vim " Initialize script's variable {{{2 let s:plugin = 'myprojects' let s:version = '0.0.60' let s:copyright = '2009' let s:author = 'Frédéric Hardy' let s:email = 'fhardy at noparking.net' let s:webSite = 'http://blog.mageekbox.net' let s:prompt = '[' . s:plugin . '] ' let s:buffer = -1 let s:workingBuffer = -1 let s:oldWidth = 0 let s:windowsOs = has('win16') || has('win32') || has('win64') let s:osSlash = s:windowsOs ? '\' : '/' let s:home = expand('$HOME') let s:closeIfAlone = 1 " Initialize command and mapping {{{2 command -nargs=? -complete=file MyProjectsToggle call toggle() if !hasmapto('MyProjectsToggle') map p MyProjectsToggle endif noremap