From fefb70c81816d89e896138f41f9ff8ce1b3c57bc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 11:22:05 +1200 Subject: Add links to plugin pages --- vim/vimrc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index ff46a151..ba7ab63b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1138,6 +1138,8 @@ xnoremap & " didn't seem to be an analogue for a motion to filter text through an " internal command like :sort, so I wrote one. " +" +" nmap g: (ColonOperator) " I used Tim Pope's unimpaired.vim plugin for ages, and I liked some of these @@ -1172,6 +1174,8 @@ nnoremap ]l " put_blank_lines.vim. These use operator functions so that they're " repeatable without repeat.vim. They accept count prefixes, too. " +" +" nmap [ (PutBlankLinesAbove) nmap ] (PutBlankLinesBelow) @@ -1277,6 +1281,8 @@ nnoremap z " larger blocks of text or for manipulating the text as it leaves the buffer, " it makes more sense to use :! commands. " +" +" "" Leader,b toggles settings friendly to copying and pasting nmap b (CopyLinebreakToggle) @@ -1423,9 +1429,13 @@ onoremap _ onoremap % \ :execute 'normal! 1GVG' -" This group defines some useful motions. +" This group defines some useful motions, including navigating by indent +" block using a custom plugin: +" +" +" -" Leader,{ and Leader,} move to top and bottom of indent region +"" Leader,{ and Leader,} move to top and bottom of indent region map { (VerticalRegionUp) sunmap { map } (VerticalRegionDown) @@ -1454,6 +1464,11 @@ nnoremap ? " This group contains miscellaneous mappings for which I couldn't find any " other place. The plugin mappings probably require their own documentation " comment block, but my hands are getting tired from all this typing. +" +" * +" * +" * +" "" Leader,. runs the configured make program into the location list nnoremap . -- cgit v1.2.3 From 78a8eaab453a4f1ad2cc39db9c4d1bb81f9ef9e3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 14:46:20 +1200 Subject: Add detail on backslashed commas --- vim/vimrc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index ba7ab63b..88ccd07f 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -83,19 +83,24 @@ scriptencoding utf-8 " , <- Literal comma " [, ]* <- Any number of commas and spaces " -" We don't have to deal with escaped backslashes. You can read the source -" code for the ad-hoc tokenizer in copy_option_part() in src/misc2.c in Vim's -" source code and test it with some values of your own if you want to -" understand why. -" " For the edge case of a blank 'runtimepath', MYVIM will be set to the empty " string, due to the way that split() works by default without its third " parameter {keepempty} set to false. " +" Once we have the path element, we have to remove the escaping for periods, +" specifically remove up to one backslash before all periods. We don't, +" however, have to deal with escaped backslashes, or any other character; you +" can read the source code for the ad-hoc tokenizer in copy_option_part() in +" src/misc2.c in Vim's source code and test it with some values of your own if +" you want to understand why. +" " Vim, I love you, but you are really weird. " if !exists('$MYVIM') - let $MYVIM = split(&runtimepath, '\\\@ Date: Fri, 14 Jun 2019 14:47:38 +1200 Subject: Amend some commentary on backups --- vim/vimrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 88ccd07f..f07f4cbe 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -297,13 +297,14 @@ set viminfo+=n$MYVIM/cache/viminfo " set history=10000 -" Enable automatic backups of most file buffers. In practice, I don't need -" these backups very much if I'm using version control sensibly, but they have -" still saved my bacon a few times. +" We'll now enable automatic backups of most file buffers, since that's off by +" default. In practice, I don't need these backups very much, at least if I'm +" using version control sensibly, but they have still saved my bacon a few +" times. " " We'll try to keep the backup files in a dedicated cache directory, to stop " them popping up next to the file to which they correspond, and getting -" committed to version control. +" accidentally committed to version control. " " If Vim is new enough, we'll add two trailing slashes to the path we're " inserting, which prompts Vim to incorporate the full escaped path of the -- cgit v1.2.3 From 8d1315986e87cdbe9474dfc0fe559ea7750d59f9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 16:37:22 +1200 Subject: Add possible fix for mail ftplugin issue --- ISSUES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ISSUES.md b/ISSUES.md index 8e214ff1..680b5539 100644 --- a/ISSUES.md +++ b/ISSUES.md @@ -31,4 +31,5 @@ Known issues * The `_text_filenames` completion handler for Bash won't work on files with newlines in their names. Can it be made to? * Something in the mail ftplugin is butchering the headers, probably something - that strips whitespace or quotes + that strips whitespace or quotes. It would probably be better to make the + cleanup it does an explicit action with a buffer-local map. -- cgit v1.2.3 From 85065b5a3e877d72c582246cf9659a8a5a144083 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 16:38:27 +1200 Subject: Two-space markdown files --- IDEAS.md | 4 ++-- ISSUES.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IDEAS.md b/IDEAS.md index 3d25a512..49f49548 100644 --- a/IDEAS.md +++ b/IDEAS.md @@ -22,8 +22,8 @@ Ideas 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. + be syntax-checked or linted. I could at least add some patient application + of appropriate `gawk --lint` calls for each of the .awk scripts. * Alternate buffer type switching would probably work rather well as a simple plugin. * Write a ftplugin for Perl to switch between punctuation variable names and diff --git a/ISSUES.md b/ISSUES.md index 680b5539..e046856a 100644 --- a/ISSUES.md +++ b/ISSUES.md @@ -24,12 +24,12 @@ Known issues * The custom shell functions really should be documented, but it's not clear to me exactly where this should happen, because the commands' availability depends on which shell you're using; the `sd` function isn't available when - you're not using Bash. Maybe I should try to extend `help` without breaking + you're not using Bash. Maybe I should try to extend `help` without breaking it? * The `b:undo\_indent` definition for the `perl` filetype can probably be pushed upstream. * The `_text_filenames` completion handler for Bash won't work on files with - newlines in their names. Can it be made to? + newlines in their names. Can it be made to? * Something in the mail ftplugin is butchering the headers, probably something that strips whitespace or quotes. It would probably be better to make the cleanup it does an explicit action with a buffer-local map. -- cgit v1.2.3 From 31b1e63a908ed07eac6353f510f791aa179f67ae Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 14 Jun 2019 16:55:17 +1200 Subject: Refactor &runtimepath split a bit more --- vim/vimrc | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index f07f4cbe..0b52a2f9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -87,20 +87,26 @@ scriptencoding utf-8 " string, due to the way that split() works by default without its third " parameter {keepempty} set to false. " -" Once we have the path element, we have to remove the escaping for periods, -" specifically remove up to one backslash before all periods. We don't, -" however, have to deal with escaped backslashes, or any other character; you -" can read the source code for the ad-hoc tokenizer in copy_option_part() in -" src/misc2.c in Vim's source code and test it with some values of your own if -" you want to understand why. +" Once we have the path elements, we have to remove the escaping for periods, +" specifically remove up to one backslash before all periods. We do that with +" a map() over substitute(), string-eval style to accommodate older Vim before +" Funcref variables were added. +" +" We don't, however, have to deal with escaped backslashes, or any other +" character; you can read the source code for the ad-hoc tokenizer in +" copy_option_part() in src/misc2.c in Vim's source code and test it with some +" values of your own if you want to understand why. +" +" I'll factor this out into a global function if I ever need it anywhere else. " " Vim, I love you, but you are really weird. " +let runtimepath = map( + \ split(&runtimepath, '\\\@ Date: Fri, 14 Jun 2019 17:19:55 +1200 Subject: Use script-local runtimepath list --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 0b52a2f9..7a67920a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -101,12 +101,12 @@ scriptencoding utf-8 " " Vim, I love you, but you are really weird. " -let runtimepath = map( +let s:runtimepath = map( \ split(&runtimepath, '\\\@ Date: Fri, 14 Jun 2019 17:20:15 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index fee99ce1..c6a5dfe6 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v5.46.0 -Thu Jun 13 13:26:44 UTC 2019 +tejr dotfiles v6.0.0 +Fri Jun 14 05:20:15 UTC 2019 -- cgit v1.2.3