From 8148255ef1c416f414c3a78405eff08fe149d16e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 20:23:42 +0200 Subject: Add vifm support, closes #213 --- autoload/vifm/edit.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 autoload/vifm/edit.vim (limited to 'autoload') diff --git a/autoload/vifm/edit.vim b/autoload/vifm/edit.vim new file mode 100644 index 00000000..6e00979a --- /dev/null +++ b/autoload/vifm/edit.vim @@ -0,0 +1,18 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 + +" common functions for vifm command-line editing buffer filetype plugins +" Maintainer: xaizek +" Last Change: August 18, 2013 + +" Prepare buffer +function! vifm#edit#Init() + " Mappings for quick leaving the buffer (behavior similar to Command line + " buffer in Vim) + nnoremap :copy 0 \| wq + imap + + " Start buffer editing in insert mode + startinsert +endfunction + +endif -- cgit v1.2.3