diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 14:07:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 14:10:35 +1300 |
commit | a0cc0969ee1cc1f295bc865161432d4be467cffa (patch) | |
tree | bc8820ff410dfbc5f5124a525691fa633b669edc | |
parent | Merge branch 'hotfix/v0.3.2' (diff) | |
download | dotfiles-a0cc0969ee1cc1f295bc865161432d4be467cffa.tar.gz dotfiles-a0cc0969ee1cc1f295bc865161432d4be467cffa.zip |
Move Vim big file options config into plugin
Created targets install-vim-doc and install-vim-plugin with accompanying
subdirectories of "vim".
Added a very short summary of what the plugin does to bigfile.txt.
I intend to spin off at least a couple of the blocks of my Vim
configuration that are starting to coalesce into distinct plugins unto
themselves, and will place the files in these directories.
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | vim/doc/bigfile.txt | 12 | ||||
-rw-r--r-- | vim/plugin/bigfile.vim (renamed from vim/config/bigfile.vim) | 0 |
3 files changed, 23 insertions, 1 deletions
@@ -474,9 +474,11 @@ install-urxvt: urxvt/ext/select install-vim: install-vim-after \ install-vim-bundle \ install-vim-config \ + install-vim-doc \ install-vim-ftdetect \ install-vim-ftplugin \ - install-vim-indent + install-vim-indent \ + install-vim-plugin install-vim-after: find vim/after -name .git -prune -o \ @@ -493,6 +495,10 @@ install-vim-config: cp -p -- vim/vimrc $(HOME)/.vimrc cp -p -- vim/config/*.vim $(HOME)/.vim/config +install-vim-doc: + mkdir -p -- $(HOME)/.vim/doc + cp -p -- vim/doc/*.txt $(HOME)/.vim/doc + install-vim-ftdetect: mkdir -p -- $(HOME)/.vim/ftdetect cp -p -- vim/ftdetect/*.vim $(HOME)/.vim/ftdetect @@ -505,6 +511,10 @@ install-vim-indent: mkdir -p -- $(HOME)/.vim/indent cp -p -- vim/indent/*.vim $(HOME)/.vim/indent +install-vim-plugin: + mkdir -p -- $(HOME)/.vim/plugin + cp -p -- vim/plugin/*.vim $(HOME)/.vim/plugin + install-vim-gui: install-vim \ install-vim-gui-config diff --git a/vim/doc/bigfile.txt b/vim/doc/bigfile.txt new file mode 100644 index 00000000..d7e56f28 --- /dev/null +++ b/vim/doc/bigfile.txt @@ -0,0 +1,12 @@ +*bigfile.txt* Disable slow options for big files to speed things up + +Author: Tom Ryder <tom@sanctum.geek.nz> +License: Same terms as Vim itself (see |license|) + +This plugin adds an |autocmd| hook to check the file size of an incoming +buffer, and if it's over a certain threshold, disables certain options in order +to make the file a bit easier to edit. + +This plugin lives in Tom Ryder's "dotfiles" suite, and will eventually be spun +off into a separate distribution as it solidifies and this documentation +improves. diff --git a/vim/config/bigfile.vim b/vim/plugin/bigfile.vim index 5c68b1a7..5c68b1a7 100644 --- a/vim/config/bigfile.vim +++ b/vim/plugin/bigfile.vim |