From 7a197b5eedbedaaad0dfc9d7c935bc41b8fd9495 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Jun 2019 08:35:26 +1200 Subject: Supplant \\ mapping with lst change jump --- vim/vimrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 05b3c7e5..24a18197 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -434,9 +434,14 @@ nnoremap / :vimgrep /\c/j ** " \? types :helpgrep for me ready to enter a search pattern nnoremap ? :helpgrep \c -" \\ escapes regex metacharacters -nmap \ (RegexEscape) -xmap \ (RegexEscape) +" \* escapes regex metacharacters +nmap * (RegexEscape) +xmap * (RegexEscape) + +" \\ jumps to the last edit position mark, like g;, but works as a motion +" "Now, where was I?" (tap-tap) +nmap \ `" +xmap \ `" " \DEL deletes the current buffer nnoremap :bdelete -- cgit v1.2.3 From 3efe198326594e471fae53f59970821a86bf621a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Jun 2019 08:45:01 +1200 Subject: Inline 'wildignore' setting --- vim/vimrc | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 24a18197..0bc963af 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -188,26 +188,13 @@ set virtualedit+=block set visualbell t_vb= " Tab completion settings -set wildignore=*~,#*#,*.7z,.DS_Store,.git,.hg,.svn - \,*.a,*.adf,*.asc,*.au,*.aup,*.avi - \,*.bin,*.bmp,*.bz2 - \,*.class - \,*.db,*.dbm,*.djvu,*.docx - \,*.exe - \,*.filepart,*.flac - \,*.gd2,*.gif,*.gifv,*.gmo,*.gpg,*.gz - \,*.hdf - \,*.ico,*.iso - \,*.jar,*.jpeg,*.jpg - \,*.m4a,*.mid,*.mp3,*.mp4 - \,*.o,*.odp,*.ods,*.odt,*.ogg,*.ogv,*.opus - \,*.pbm,*.pdf,*.png,*.ppt,*.psd,*.pyc - \,*.rar,*.rm - \,*.s3m,*.sdbm,*.sqlite,*.swf,*.swp - \,*.tar,*.tga,*.ttf - \,*.wav,*.webm - \,*.xbm,*.xcf,*.xls,*.xlsx,*.xpm,*.xz - \,*.zip +set wildignore=*~,#*#,*.7z,.DS_Store,.git,.hg,.svn,*.a,*.adf,*.asc,*.au,*.aup + \,*.avi,*.bin,*.bmp,*.bz2,*.class,*.db,*.dbm,*.djvu,*.docx,*.exe + \,*.filepart,*.flac,*.gd2,*.gif,*.gifv,*.gmo,*.gpg,*.gz,*.hdf,*.ico + \,*.iso,*.jar,*.jpeg,*.jpg,*.m4a,*.mid,*.mp3,*.mp4,*.o,*.odp,*.ods,*.odt + \,*.ogg,*.ogv,*.opus,*.pbm,*.pdf,*.png,*.ppt,*.psd,*.pyc,*.rar,*.rm + \,*.s3m,*.sdbm,*.sqlite,*.swf,*.swp,*.tar,*.tga,*.ttf,*.wav,*.webm,*.xbm + \,*.xcf,*.xls,*.xlsx,*.xpm,*.xz,*.zip if exists('+wildignorecase') set wildignorecase " Case insensitive, if supported (v7.3.072) endif -- cgit v1.2.3 From 47a7cb5f20dfb1aff84057fba91495f27f587062 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Jun 2019 14:00:24 +1200 Subject: Update vim-quickfix-auto-open to v2.0.0 --- vim/bundle/quickfix_auto_open | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/bundle/quickfix_auto_open b/vim/bundle/quickfix_auto_open index 0b642ea7..9a3808f3 160000 --- a/vim/bundle/quickfix_auto_open +++ b/vim/bundle/quickfix_auto_open @@ -1 +1 @@ -Subproject commit 0b642ea72474f289ce463b2ddc3fdb104f0abdf7 +Subproject commit 9a3808f3b217f9cfc95d93ec111d33a0c239e922 -- cgit v1.2.3 From 6f701b93c28ba60a9e347a2575514598f81f7e94 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Jun 2019 14:08:35 +1200 Subject: Switch back to :lhelpgrep for help searches Now that vim-quickfix-auto-open handles the command correctly. --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 0bc963af..950b0e87 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -418,8 +418,8 @@ sunmap } " \/ types :vimgrep for me ready to enter a search pattern nnoremap / :vimgrep /\c/j ** -" \? types :helpgrep for me ready to enter a search pattern -nnoremap ? :helpgrep \c +" \? types :lhelpgrep for me ready to enter a search pattern +nnoremap ? :lhelpgrep \c " \* escapes regex metacharacters nmap * (RegexEscape) -- cgit v1.2.3 From 17c2c026ff22bc7fea85241558b96bcaa435f36d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Jun 2019 10:04:53 +1200 Subject: Revert "Try doing without 'backspace' settings" This reverts commit 11bee5281cbc9e0ed937937ad31212dfcc4b2426. Nah, this doesn't work. --- vim/vimrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 950b0e87..a5abb0b7 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -16,9 +16,10 @@ set shiftwidth=4 " Indent with four spaces " negative value to do this if Vim new enough to support it let &softtabstop = vimrc#Version('7.3.693') ? -1 : &shiftwidth -" Allow me to backspace 'autoindent' spaces in insert mode, and back over the -" end of lines I've inserted in this session -set backspace=indent,eol +" Let me backspace over pretty much anything +set backspace+=eol " Line breaks +set backspace+=indent " Spaces from 'autoindent' +set backspace+=start " Before the start of current insertion " Keep backup files in dedicated directory; add trailing double-slash to keep " full path in name, if Vim is new enough to support that -- cgit v1.2.3 From 485039af392f4a3159f8b48c502f9177bd7a3438 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Jun 2019 12:21:06 +1200 Subject: Spellcheck mail --- vim/after/ftplugin/mail.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 937ee40c..e84702f0 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -78,6 +78,12 @@ if exists('loaded_squeeze_repeat_blanks') endif +" Spellcheck documents we're actually editing (not just viewing) +if &modifiable && !&readonly + setlocal spell + let b:undo_ftplugin .= '|setlocal spell<' +endif + " Stop here if the user doesn't want ftplugin mappings if exists('no_plugin_maps') || exists('no_mail_maps') finish -- cgit v1.2.3 From 34e02b275e87aa46d84ab9668872c9b6d33a44e0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Jun 2019 13:43:40 +1200 Subject: Correct an idea --- IDEAS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEAS.md b/IDEAS.md index 7f2c1eb4..f3bc0694 100644 --- a/IDEAS.md +++ b/IDEAS.md @@ -19,8 +19,8 @@ Ideas * Write something like `hcat(1df)` or `tcat(1df)` that includes filename headings for each concatenated file. * I can probably get rid of all that nasty templated shell by writing something - that wraps around `td(1df)` and generates shell script to run, and calls that - via `eval`. + that wraps around `mktd(1df)` and generates shell script to run, and calls + that via `eval`. * Ideally, the AWK and/or sed scripts in the bin and games directories should be syntax-checked or linted. I could at least add some patient application of appropriate `gawk --lint` calls for each of the .awk scripts. -- cgit v1.2.3 From d99d24bfeec73c8ae758fdfaeeb5eb5b5f5e144c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Jun 2019 13:44:11 +1200 Subject: Quote a tag name --- IDEAS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEAS.md b/IDEAS.md index f3bc0694..7c42cc96 100644 --- a/IDEAS.md +++ b/IDEAS.md @@ -32,4 +32,4 @@ Ideas * Almost definitely going to want to try a runparts layout for Git hooks at some point * I'd like a Git hook that pre-fills out "Version X.Y.Z" if making an annotated - tag named vX.Y.Z. + tag named `vX.Y.Z`. -- cgit v1.2.3 From 3f792e7f12c2ca97a182b657dce5ad033d9856ea Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Jun 2019 14:19:50 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 7d0295e8..76d6b286 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v5.16.0 -Mon Jun 3 20:21:33 UTC 2019 +tejr dotfiles v5.17.0 +Wed Jun 5 02:19:50 UTC 2019 -- cgit v1.2.3