aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-07-23 01:15:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-07-23 01:15:27 +1200
commit488ebe8343bc8a5b1784d3185b7a2716c081bdba (patch)
tree743462bc0f01df63fb8dd7a4d6e675fdc80887af
parentAdd a Git hooks issue with new repositories (diff)
downloaddotfiles-488ebe8343bc8a5b1784d3185b7a2716c081bdba.tar.gz
dotfiles-488ebe8343bc8a5b1784d3185b7a2716c081bdba.zip
Spin alternate_filetypes.vim plugin into a dist
-rw-r--r--.gitmodules3
-rw-r--r--vim/autoload/alternate_filetypes.vim13
m---------vim/bundle/alternate_filetypes0
-rw-r--r--vim/plugin/alternate_filetypes.vim4
4 files changed, 3 insertions, 17 deletions
diff --git a/.gitmodules b/.gitmodules
index f91504da..b15ef0dc 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,4 +1,7 @@
# Vim plugins
+[submodule "vim/bundle/alternate_filetypes"]
+ path = vim/bundle/alternate_filetypes
+ url = https://sanctum.geek.nz/code/vim-alternate-filetypes.git
[submodule "vim/bundle/big_file_options"]
path = vim/bundle/big_file_options
url = https://sanctum.geek.nz/code/vim-big-file-options.git
diff --git a/vim/autoload/alternate_filetypes.vim b/vim/autoload/alternate_filetypes.vim
deleted file mode 100644
index 08ac88dc..00000000
--- a/vim/autoload/alternate_filetypes.vim
+++ /dev/null
@@ -1,13 +0,0 @@
-function! alternate_filetypes#() abort
- if exists('b:alternate_filetypes')
- let filetypes = b:alternate_filetypes
- let index = index(filetypes, &filetype)
- if index >= 0
- let &filetype = filetypes[
- \ (index + 1) % len(filetypes)
- \]
- else
- unlet b:alternate_filetypes
- endif
- endif
-endfunction
diff --git a/vim/bundle/alternate_filetypes b/vim/bundle/alternate_filetypes
new file mode 160000
+Subproject 8110b88643276c17079e597a61ca3c3736b36fd
diff --git a/vim/plugin/alternate_filetypes.vim b/vim/plugin/alternate_filetypes.vim
deleted file mode 100644
index e024c9b2..00000000
--- a/vim/plugin/alternate_filetypes.vim
+++ /dev/null
@@ -1,4 +0,0 @@
-command -bar AlternateFileType
- \ call alternate_filetypes#() | set filetype?
-nnoremap <silent> <Plug>(AlternateFileType)
- \ :<C-U>AlternateFileType<CR>