From 6c3c57854452272df1c514dd3e3653511efd6710 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Aug 2018 14:12:37 +1200 Subject: Spin out scroll_next.vim into its own dist --- vim/plugin/scroll_next.vim | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 vim/plugin/scroll_next.vim (limited to 'vim/plugin') diff --git a/vim/plugin/scroll_next.vim b/vim/plugin/scroll_next.vim deleted file mode 100644 index a02a4e4f..00000000 --- a/vim/plugin/scroll_next.vim +++ /dev/null @@ -1,32 +0,0 @@ -" -" scroll_next.vim: Mapping to scroll a page forward with CTRL-F until the last -" line is visible in the buffer (if supported) or the cursor is on the last -" line, and to run :next instead if so to move to the next buffer in the -" argument list. -" -" Author: Tom Ryder -" License: Same as Vim itself -" -if exists('g:loaded_scroll_next') || &compatible - finish -endif -if v:version < 600 - finish -endif -let g:loaded_scroll_next = 1 - -" Check visibility of last line (Vim >=7.0) or cursor presence on last line -" and flick to :next if appropriate, or just page forward with CTRL-F -function! s:ScrollNext() abort - if line('.') == line('$') - \ || line('w$') == line('$') - silent! next - else - execute "normal! \" - endif -endfunction - -" Mapping setup -nnoremap - \ (ScrollNext) - \ :call ScrollNext() -- cgit v1.2.3 From 596610205ba22cbf27f3f40c4a7133f859570239 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Aug 2018 22:32:38 +1200 Subject: Spin foldlevelstart_stdin.vim into its own dist --- vim/plugin/foldlevelstart_stdin.vim | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 vim/plugin/foldlevelstart_stdin.vim (limited to 'vim/plugin') diff --git a/vim/plugin/foldlevelstart_stdin.vim b/vim/plugin/foldlevelstart_stdin.vim deleted file mode 100644 index f8e4d50e..00000000 --- a/vim/plugin/foldlevelstart_stdin.vim +++ /dev/null @@ -1,28 +0,0 @@ -" -" foldlevelstart_stdin.vim: Set 'foldlevel' to 'foldlevelstart' after reading -" from standard input, which Vim doesn't do by default. -" -" Author: Tom Ryder -" License: Same as Vim itself -" -if exists('g:loaded_foldlevelstart_stdin') || &compatible - finish -endif -if !has('autocmd') || !has('folding') || !exists('##StdinReadPre') - finish -endif -let g:loaded_foldlevelstart_stdin = 1 - -" Check if 'foldlevelstart' is non-negative, and set 'foldlevel' to its value -" if it is -function! s:SetFoldlevel() abort - if &foldlevelstart >= 0 - let &l:foldlevel = &foldlevelstart - endif -endfunction - -" Watch for stdin reads and set fold level accordingly -augroup foldlevelstart_stdin - autocmd! - autocmd StdinReadPre * call s:SetFoldlevel() -augroup END -- cgit v1.2.3 From fe72038470554ec63a1f4b7ab532584bd15a05b9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Aug 2018 23:09:42 +1200 Subject: Spin equalalways_resized.vim into its own dist --- vim/plugin/equalalways_resized.vim | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 vim/plugin/equalalways_resized.vim (limited to 'vim/plugin') diff --git a/vim/plugin/equalalways_resized.vim b/vim/plugin/equalalways_resized.vim deleted file mode 100644 index 8865f0af..00000000 --- a/vim/plugin/equalalways_resized.vim +++ /dev/null @@ -1,27 +0,0 @@ -" -" equalalways_resized: If 'equalalways' is set, extend it to VimResized -" events. -" -" Author: Tom Ryder -" License: Same as Vim itself -" -if exists('g:loaded_equalalways_resized') || &compatible - finish -endif -if !has('autocmd') || !has('windows') || !exists('##VimResized') - finish -endif -let g:loaded_equalalways_resized = 1 - -" If 'equalalways' is set, rebalance the windows -function! s:Rebalance() abort - if &equalalways - wincmd = - endif -endfunction - -" Add hook for VimResized event -augroup equalalways_resized - autocmd! - autocmd VimResized * call s:Rebalance() -augroup END -- cgit v1.2.3 From ac1ec566a1b29c062374a195ba1adc4cd3d304ec Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Aug 2018 23:23:09 +1200 Subject: Add explanatory README to vim/plugin directory --- vim/plugin/README | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 vim/plugin/README (limited to 'vim/plugin') diff --git a/vim/plugin/README b/vim/plugin/README new file mode 100644 index 00000000..5e969de7 --- /dev/null +++ b/vim/plugin/README @@ -0,0 +1,3 @@ +Most of my plugins are in submodules in vim/bundle. This directory, vim/plugin, +is for new plugins as they're being developed and tested, or for stuff specific +to my configuration that isn't worth packaging as its own distribution. -- cgit v1.2.3