aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 18:27:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 18:27:01 +1200
commit931492b073d151389257a284d972bea028c91ea7 (patch)
tree17973720d877cbcf66c4d5c5c95c528b744c99a1 /vim
parentSeparate :try block for fortune function (diff)
downloaddotfiles-931492b073d151389257a284d972bea028c91ea7.tar.gz
dotfiles-931492b073d151389257a284d972bea028c91ea7.zip
Move 'filetype' display to command definition
Diffstat (limited to 'vim')
-rw-r--r--vim/autoload/alternate_filetypes.vim1
-rw-r--r--vim/plugin/alternate_filetypes.vim2
2 files changed, 1 insertions, 2 deletions
diff --git a/vim/autoload/alternate_filetypes.vim b/vim/autoload/alternate_filetypes.vim
index 26c2a0d5..08ac88dc 100644
--- a/vim/autoload/alternate_filetypes.vim
+++ b/vim/autoload/alternate_filetypes.vim
@@ -10,5 +10,4 @@ function! alternate_filetypes#() abort
unlet b:alternate_filetypes
endif
endif
- set filetype?
endfunction
diff --git a/vim/plugin/alternate_filetypes.vim b/vim/plugin/alternate_filetypes.vim
index d530b874..e024c9b2 100644
--- a/vim/plugin/alternate_filetypes.vim
+++ b/vim/plugin/alternate_filetypes.vim
@@ -1,4 +1,4 @@
command -bar AlternateFileType
- \ call alternate_filetypes#()
+ \ call alternate_filetypes#() | set filetype?
nnoremap <silent> <Plug>(AlternateFileType)
\ :<C-U>AlternateFileType<CR>