vim-lf

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 62bb49acfe13dcf9dc707a69267eb2e24277f917
parent 503d2cd245f3a97abb35496ecdb7bf1c8138ee4b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 14 Apr 2020 20:11:22 +0200

Plugin boilerplate

Diffstat:
Mautoload/lf.vim | 5+++++
Mplugin/lf.vim | 8++++++++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/autoload/lf.vim b/autoload/lf.vim @@ -1,3 +1,8 @@ +if exists('g:loaded_lf_autoload') + finish +endif +let g:loaded_lf_autoload = 1 + function! lf#LF(path, edit_cmd) let oldguioptions = &guioptions let s:oldlaststatus = &laststatus diff --git a/plugin/lf.vim b/plugin/lf.vim @@ -1,3 +1,11 @@ +if exists('g:loaded_lf') || &cp + finish +endif +let g:loaded_lf = 1 + command! -nargs=+ LF call lf#LF(<f-args>) nnoremap <Plug>LfEdit :LF % edit<CR> nnoremap <Plug>LfSplit :LF % split<CR> + +let &cpo = s:cpo_save +unlet s:cpo_save