diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-11-27 21:59:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-11-27 22:38:54 +0900 |
| commit | 17975ffc46cc18ca49304b4780f20a5b0b91e4ca (patch) | |
| tree | 00295b01bb6e92d32564fe205f5e1c7a3abca0b6 /.config/nvim/my/plugin | |
| parent | 318a31846d20cc80de090adee201de14965bf545 (diff) | |
| download | dotfiles-17975ffc46cc18ca49304b4780f20a5b0b91e4ca.tar.gz dotfiles-17975ffc46cc18ca49304b4780f20a5b0b91e4ca.tar.zst dotfiles-17975ffc46cc18ca49304b4780f20a5b0b91e4ca.zip | |
vim: minimize .vimrc
Diffstat (limited to '.config/nvim/my/plugin')
| -rw-r--r-- | .config/nvim/my/plugin/autosave.vim | 29 | ||||
| -rw-r--r-- | .config/nvim/my/plugin/dummy.vim | 15 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.config/nvim/my/plugin/autosave.vim b/.config/nvim/my/plugin/autosave.vim new file mode 100644 index 0000000..6339dcb --- /dev/null +++ b/.config/nvim/my/plugin/autosave.vim @@ -0,0 +1,29 @@ +scriptencoding utf-8 + +if exists('g:loaded_autosave') + finish +endif + + + +command! -bar + \ AutosaveEnable + \ call autosave#enable() + + +command! -bar + \ AutosaveDisable + \ call autosave#disable() + + +command! -bar + \ AutosaveToggle + \ if exists('b:autosave_timer') | + \ call autosave#disable() | + \ else | + \ call autosave#enable() | + \ endif + + + +let g:loaded_autosave = 1 diff --git a/.config/nvim/my/plugin/dummy.vim b/.config/nvim/my/plugin/dummy.vim new file mode 100644 index 0000000..ce7b901 --- /dev/null +++ b/.config/nvim/my/plugin/dummy.vim @@ -0,0 +1,15 @@ +scriptencoding utf-8 + +if exists('g:loaded_dummy') + finish +endif + + + +command! -bar -complete=customlist,dummy#complete -nargs=1 + \ Dummy + \ call dummy#insert(<f-args>) + + + +let g:loaded_dummy = 1 |
