From 1672dd8d4d41cfce4b2beb70685399a23eaa0956 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 31 May 2018 18:09:33 +1200 Subject: Spin off command_typos Vim plugin Renamed as uncap_ex.vim. --- .gitmodules | 3 +++ Makefile | 11 ++--------- vim/bundle/uncap_ex | 1 + vim/doc/command_typos.txt | 28 --------------------------- vim/plugin/command_typos.vim | 45 -------------------------------------------- 5 files changed, 6 insertions(+), 82 deletions(-) create mode 160000 vim/bundle/uncap_ex delete mode 100644 vim/doc/command_typos.txt delete mode 100644 vim/plugin/command_typos.vim diff --git a/.gitmodules b/.gitmodules index 8bbe37e5..e5d27293 100644 --- a/.gitmodules +++ b/.gitmodules @@ -20,6 +20,9 @@ [submodule "vim/bundle/toggle_option_flags"] path = vim/bundle/toggle_option_flags url = https://sanctum.geek.nz/code/vim-toggle-option-flags.git +[submodule "vim/bundle/uncap_ex"] + path = vim/bundle/uncap_ex + url = https://sanctum.geek.nz/code/vim-uncap-ex.git # My Vim colorschemes [submodule "vim/bundle/juvenile"] diff --git a/Makefile b/Makefile index cfa4e86b..810da7a7 100644 --- a/Makefile +++ b/Makefile @@ -77,8 +77,7 @@ dist-vim-plugin \ dist-vim-plugin-auto-backupdir \ dist-vim-plugin-auto-swapdir \ - dist-vim-plugin-auto-undodir \ - dist-vim-plugin-command-typos \ + dist-vim-plugin-auto-undodir .SUFFIXES: .SUFFIXES: .awk .bash .m4 .mi5 .pl .sed .sh @@ -661,8 +660,7 @@ lint-xinit: check-xinit dist-vim-plugin: dist-vim-plugin-auto-backupdir \ dist-vim-plugin-auto-swapdir \ - dist-vim-plugin-auto-undodir \ - dist-vim-plugin-command-typos + dist-vim-plugin-auto-undodir dist-vim-plugin-auto-backupdir: \ vim/plugin/auto_backupdir.vim \ @@ -679,8 +677,3 @@ dist-vim-plugin-auto-undodir: \ vim/doc/auto_undodir.txt \ VERSION sh dist/vim-plugin.sh auto_undodir -dist-vim-plugin-command-typos: \ - vim/plugin/command_typos.vim \ - vim/doc/command_typos.txt \ - VERSION - sh dist/vim-plugin.sh command_typos diff --git a/vim/bundle/uncap_ex b/vim/bundle/uncap_ex new file mode 160000 index 00000000..2fceff8f --- /dev/null +++ b/vim/bundle/uncap_ex @@ -0,0 +1 @@ +Subproject commit 2fceff8fe5ff7cd0d2282c5f46b448443438e666 diff --git a/vim/doc/command_typos.txt b/vim/doc/command_typos.txt deleted file mode 100644 index 938fef27..00000000 --- a/vim/doc/command_typos.txt +++ /dev/null @@ -1,28 +0,0 @@ -*command_typos.txt* For Vim version 7.0 Last change: 2017 November 12 - -DESCRIPTION *command_typos* - -This plugin defines custom commands like :W, :Qa, and :Wq to match their -lowercase analogues, to forgive me when my pinky finger doesn't roll off the -Shift key quite soon enough after pressing the colon key. - -REQUIREMENTS *command_typos-requirements* - -This plugin is only available if 'compatible' is not set. - -AUTHOR *command_typos-author* - -Written and maintained by Tom Ryder . - -LICENSE *command_typos-license* - -Licensed for distribution under the same terms as Vim itself (see |license|). - -DISTRIBUTION *command_typos-distribution* - -This plugin lives in Tom Ryder's "dotfiles" suite, and may eventually be spun -off into a separate distribution as it solidifies and this documentation -improves. See for more -information. - - vim:tw=78:ts=8:ft=help:norl: diff --git a/vim/plugin/command_typos.vim b/vim/plugin/command_typos.vim deleted file mode 100644 index 6f34c680..00000000 --- a/vim/plugin/command_typos.vim +++ /dev/null @@ -1,45 +0,0 @@ -" -" command_typos.vim: Tolerate typos like :Wq, :Q, or :Qa and do what I mean, -" including any arguments or modifiers; I fat-finger these commands a lot -" because I type them so rapidly, and they don't correspond to any other -" commands I use -" -" Author: Tom Ryder -" License: Same as Vim itself -" -if exists('g:loaded_command_typos') || &compatible - finish -endif -if !has('user_commands') - finish -endif -let g:loaded_command_typos = 1 - -" Define commands -command -bang -complete=file -nargs=? - \ E - \ edit -command -bang -complete=file -nargs=? - \ W - \ write -command -bang -complete=file -nargs=? - \ WQ - \ wq -command -bang -complete=file -nargs=? - \ Wq - \ wq -command -bang - \ Q - \ quit -command -bang - \ Qa - \ qall -command -bang - \ QA - \ qall -command -bang - \ Wa - \ wall -command -bang - \ WA - \ wa -- cgit v1.2.3