aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/command_typos.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 20:16:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 20:19:53 +1300
commit79d6eef63ff4984fa3f8631aec6da26fa19a6f34 (patch)
treefbdd211ef98f26a03553134c29d46b72043f6367 /vim/plugin/command_typos.vim
parentMerge branch 'release/v0.7.0' into develop (diff)
downloaddotfiles-79d6eef63ff4984fa3f8631aec6da26fa19a6f34.tar.gz
dotfiles-79d6eef63ff4984fa3f8631aec6da26fa19a6f34.zip
Adjust plugin code layout a lot
Including renaming big_file.vim and accompanying functions yet again, to big_file_options.vim. Trying to keep complex autocmd and mapping definitions on long lines broken up semantically; definition and options on one line, patterns or mapping key on the next, and the command to run on the last. Also trying to make sure that <silent>, <buffer>, and <unique> are applied in the correct places, and that all mapping commands are using the :<C-U> idiom for the command prefix.
Diffstat (limited to 'vim/plugin/command_typos.vim')
-rw-r--r--vim/plugin/command_typos.vim37
1 files changed, 28 insertions, 9 deletions
diff --git a/vim/plugin/command_typos.vim b/vim/plugin/command_typos.vim
index 32d194fb..6f46b115 100644
--- a/vim/plugin/command_typos.vim
+++ b/vim/plugin/command_typos.vim
@@ -7,13 +7,32 @@
" License: Same as Vim itself
"
if has('eval') && has('user_commands')
- command! -bang -complete=file -nargs=? E e<bang> <args>
- command! -bang -complete=file -nargs=? W w<bang> <args>
- command! -bang -complete=file -nargs=? WQ wq<bang> <args>
- command! -bang -complete=file -nargs=? Wq wq<bang> <args>
- command! -bang Q q<bang>
- command! -bang Qa qa<bang>
- command! -bang QA qa<bang>
- command! -bang Wa wa<bang>
- command! -bang WA wa<bang>
+
+ command! -bang -complete=file -nargs=?
+ \ E
+ \ edit<bang> <args>
+ command! -bang -complete=file -nargs=?
+ \ W
+ \ write<bang> <args>
+ command! -bang -complete=file -nargs=?
+ \ WQ
+ \ wq<bang> <args>
+ command! -bang -complete=file -nargs=?
+ \ Wq
+ \ wq<bang> <args>
+ command! -bang
+ \ Q
+ \ quit<bang>
+ command! -bang
+ \ Qa
+ \ qall<bang>
+ command! -bang
+ \ QA
+ \ qall<bang>
+ command! -bang
+ \ Wa
+ \ wall<bang>
+ command! -bang
+ \ WA
+ \ wa<bang>
endif