diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-16 23:28:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-16 23:28:48 +1200 |
commit | 39bac9a74ebaaf6e1ee6fc2c51cda9c640498d93 (patch) | |
tree | 0aad276e7df88d04dbdaa925180128d7a0a8ee99 /vim/plugin/foldlevelstart_stdin.vim | |
parent | Merge branch 'release/v1.54.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-39bac9a74ebaaf6e1ee6fc2c51cda9c640498d93.tar.gz dotfiles-39bac9a74ebaaf6e1ee6fc2c51cda9c640498d93.zip |
Merge branch 'release/v1.55.0'v1.55.0
* release/v1.55.0:
Bump VERSION
Add explanatory README to vim/plugin directory
Update new Vim plugins
Spin equalalways_resized.vim into its own dist
Spin foldlevelstart_stdin.vim into its own dist
Work around buggy old Vim 'help' ftplugin undo
Don't set vint compiler for commandline windows
Revert "Set gitconfig commit.verbose, clear com...
Qualify unmap with version number guard
Add a comment
Spin out scroll_next.vim into its own dist
Use <PageDown> rather than <C-F> in mapping
Reorder .vimrc a bit
Remove Unix 'backupskip' parts if not running Unix
Diffstat (limited to 'vim/plugin/foldlevelstart_stdin.vim')
-rw-r--r-- | vim/plugin/foldlevelstart_stdin.vim | 28 |
1 files changed, 0 insertions, 28 deletions
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 <tom@sanctum.geek.nz> -" 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 |