From f5d56602df70950de6b7d40966b00c9939c81763 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 26 Jan 2020 17:16:07 +0100 Subject: Intial commit of v2 See https://drewdevault.com/2019/12/30/dotfiles.html --- .vim/autoload/alternate.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .vim/autoload/alternate.vim (limited to '.vim/autoload/alternate.vim') diff --git a/.vim/autoload/alternate.vim b/.vim/autoload/alternate.vim new file mode 100644 index 0000000..e179fce --- /dev/null +++ b/.vim/autoload/alternate.vim @@ -0,0 +1,8 @@ +function! alternate#alternate() + let l:function_name = 'Alternate_' . &filetype + if exists('*' . l:function_name) + execute l:function_name + else + echo 'no alternate function defined for "' . &filetype . '"' + endif +endfunction -- cgit 1.4.1