summary refs log tree commit diff
path: root/.vim/autoload/alternate.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/autoload/alternate.vim')
-rw-r--r--.vim/autoload/alternate.vim8
1 files changed, 8 insertions, 0 deletions
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