vim-relatively-complete

Vim plugin to complete files relative to the current file, unless path explicitly specified.
git clone git://git.alex.balgavy.eu/vim-relatively-complete.git
Log | Files | Refs | README | LICENSE

relative_file_complete.vim (346B)


      1 if exists('g:loaded_relatively_complete') || &cp
      2   finish
      3 endif
      4 let g:loaded_relatively_complete = 1
      5 
      6 let s:cpo_save = &cpo
      7 set cpo&vim
      8 
      9 command! RelativelyCompleteFile :call relative_file_complete#SaveAndRestoreOnComplete()
     10 inoremap <Plug>RelativelyCompleteFile <c-o>:RelativelyCompleteFile<CR><C-x><C-f>
     11 
     12 let &cpo = s:cpo_save
     13 unlet s:cpo_save