diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 20:23:42 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 20:23:42 +0200 |
commit | 8148255ef1c416f414c3a78405eff08fe149d16e (patch) | |
tree | 2079cba4fc936c705156e9c03eda004f823bf665 /autoload | |
parent | 40ddf334c9428ff7d88b7ca12912a9a1ea80dbab (diff) | |
download | vim-polyglot-8148255ef1c416f414c3a78405eff08fe149d16e.tar.gz vim-polyglot-8148255ef1c416f414c3a78405eff08fe149d16e.zip |
Add vifm support, closes #213
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/vifm/edit.vim | 18 |
1 files changed, 18 insertions, 0 deletions
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 <xaizek@posteo.net> +" 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 <buffer> <cr> :copy 0 \| wq<cr> + imap <buffer> <cr> <esc><cr> + + " Start buffer editing in insert mode + startinsert +endfunction + +endif |