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

commit 0b702fa8ea4903a53c45ad523aa61f43cbd15c59
parent 98adbb2f1860e0cc259629127832437ce1df1d21
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 15 Apr 2020 15:32:20 +0200

Rename mappings for consistency

Diffstat:
MREADME.md | 2+-
Mplugin/relative_file_complete.vim | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -11,7 +11,7 @@ That is, if the cursor is positioned after e.g. `/etc/` in the current buffer, t The plugin exposes one insert mode mapping: -* `<Plug>CompleteRelative`: start completing filenames relative to the file in the current buffer +* `<Plug>RelativelyCompleteFile`: start completing filenames relative to the file in the current buffer There are no default mappings (by design, so as not to force mappings on users), so you need to map this `<Plug>` yourself. For example, by putting this line in your .vimrc: `imap <C-x><C-f> <Plug>CompleteRelative`. diff --git a/plugin/relative_file_complete.vim b/plugin/relative_file_complete.vim @@ -6,8 +6,8 @@ let g:loaded_relatively_complete = 1 let s:cpo_save = &cpo set cpo&vim -command! CompleteRelative :call relative_file_complete#SaveAndRestoreOnComplete() -inoremap <Plug>CompleteRelative <c-o>:CompleteRelative<CR><C-x><C-f> +command! RelativelyCompleteFile :call relative_file_complete#SaveAndRestoreOnComplete() +inoremap <Plug>RelativelyCompleteFile <c-o>:RelativelyCompleteFile<CR><C-x><C-f> let &cpo = s:cpo_save unlet s:cpo_save