aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-19 14:39:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-19 14:39:54 +1200
commit27644cdf6686f1e05a588382d41cfd9e375e8f74 (patch)
tree7814b6d808f03fb8311efbc4ee3ff6b91e5847ca
parentMerge branch 'release/v4.32.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-27644cdf6686f1e05a588382d41cfd9e375e8f74.tar.gz
dotfiles-27644cdf6686f1e05a588382d41cfd9e375e8f74.zip
Merge branch 'release/v4.33.0'v4.33.0
* release/v4.33.0: Bump VERSION Simplify 'path' definition Correct options order Reassure Vim that PuTTY is 'ttyfast' Add 'synmaxcol' setting Spell check tweaking Try doing without 'backspace' settings Update vim-regex-escape to v0.2.0 Update vim-insert-timeout to v0.3.0 Remove en passant assignment from Makefile Quote things in IDEAS.md to appease spellchecker Quote things in ISSUES.md to appease spellchecker
-rw-r--r--IDEAS.md37
-rw-r--r--ISSUES.md18
-rw-r--r--Makefile2
-rw-r--r--VERSION4
m---------vim/bundle/insert_timeout0
m---------vim/bundle/regex_escape0
-rw-r--r--vim/vimrc66
7 files changed, 65 insertions, 62 deletions
diff --git a/IDEAS.md b/IDEAS.md
index 8e30f48d..38ea9d47 100644
--- a/IDEAS.md
+++ b/IDEAS.md
@@ -1,27 +1,28 @@
Ideas
=====
-* A wrapper ksw(1df) (kill-switch) that traps SIGINT to kill a called program
- or loop immediately, rather than aborting a loop (is this possible?)
-* A wrapper sil(1df) or nec(1df) to turn stty -echo off for the duration of a
- paste?
-* I can probably share my psql() completions/shortcuts after sanitizing them a
- bit
-* Wouldn't be too hard to add some HTTP BASIC auth to ix(1df) to make pastes
- manageable
-* Have eds(1df) accept stdin with the "starting content" for the script
-* Convert all the manual pages to mandoc maybe?
+* A wrapper `ksw(1df)` (kill-switch) that traps `SIGINT` to kill a called
+ program or loop immediately, rather than aborting a loop (is this possible?)
+* A wrapper `sil(1df)` or `nec(1df)` to turn `stty -echo` off for the duration
+ of a paste?
+* I can probably share my `psql()` completions/shortcuts after sanitizing them
+ a bit
+* Wouldn't be too hard to add some HTTP BASIC authentication to `ix(1df)` to
+ make pastes manageable
+* Have `eds(1df)` accept standard input with the "starting content" for the
+ script
+* Convert all the manual pages to Mandoc format maybe?
<https://en.wikipedia.org/wiki/Mandoc>
-* qmp(1df)--quick man page
-* The solution to chn(1df) not running in parallel is probably backgrounded
- processes and mkfifo(1).
-* Write something like hcat(1df) or tcat(1df) that includes filename headings
- for each concatenated file.
+* `qmp(1df)`--quick man page
+* The solution to `chn(1df)` not running in parallel is probably backgrounded
+ processes and `mkfifo(1)`.
+* 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
+ that wraps around `td(1df)` and generates shell script to run, and calls that
via `eval`.
-* Ideally, the .awk and/or .sed scripts in the bin and games dirs should be
- syntax-checked or linted. I could at least add some patient application of
+* 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.
* Alternate buffer type switching would probably work rather well as a simple
plugin.
diff --git a/ISSUES.md b/ISSUES.md
index b2601de9..a4bb0ccb 100644
--- a/ISSUES.md
+++ b/ISSUES.md
@@ -1,16 +1,16 @@
Known issues
============
-* man(1) completion doesn't work on OpenBSD as manpath(1) isn't a thing on that
- system; need to find some way of finding which manual directories should be
- searched at runtime, if there is one.
-* The checks gscr(1df) makes to determine where it is are a bit naïve (don't
+* `man(1)` completion doesn't work on OpenBSD as `manpath(1)` isn't a thing on
+ that system; need to find some way of finding which manual directories should
+ be searched at runtime, if there is one.
+* The checks `gscr(1df)` makes to determine where it is are a bit naïve (don't
work with bare repos) and could probably be improved with some appropriate
- git-reflog(1) calls
-* dr(6df) is probably more practical in awk
+ `git-reflog(1)` calls
+* `dr(6df)` is probably more practical in awk
* Running the block of git(1) commands in the prompt leaves five "stale"
jobspecs around that flee after a jobs builtin run; only saw this manifest
- after 90dcadf; either I understand job specs really poorly or this may be a
+ after `90dcadf`; either I understand job specs really poorly or this may be a
bug in bash
* I can't find a clean way of detecting a restricted shell for ksh instances to
prevent trying to load anything fancy (works for Bash)
@@ -26,7 +26,7 @@ Known issues
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
it?
-* The b:undo\_indent definition for the perl filetype can probably be pushed
- upstream.
+* 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?
diff --git a/Makefile b/Makefile
index df29b947..11364324 100644
--- a/Makefile
+++ b/Makefile
@@ -539,7 +539,7 @@ install-neovim:
make install-vim \
VIM=nvim \
VIMDIR="$${XDG_CONFIG_HOME:-"$$HOME"/.config}/nvim" \
- VIMRC="$${XDG_CONFIG_HOME:="$$HOME"/.config}/nvim/init.vim"
+ VIMRC="$${XDG_CONFIG_HOME:-"$$HOME"/.config}/nvim/init.vim"
install-vim-after: install-vim-after-ftplugin \
install-vim-after-indent \
diff --git a/VERSION b/VERSION
index 83ce6dfe..71330ff8 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v4.32.0
-Sat May 18 00:40:59 UTC 2019
+tejr dotfiles v4.33.0
+Sun May 19 02:39:54 UTC 2019
diff --git a/vim/bundle/insert_timeout b/vim/bundle/insert_timeout
-Subproject 6cbacba5d66826497b3a136fb8d692921b47566
+Subproject a8e2ed01eb1b5deafb44f1c51b8ab8f78911a25
diff --git a/vim/bundle/regex_escape b/vim/bundle/regex_escape
-Subproject 2ffca0318642b6ee3bfd3ef36fd59244c8f48fa
+Subproject 7414c6e26a04f2901c131cafc9fb9ebe9b54380
diff --git a/vim/vimrc b/vim/vimrc
index ab4729ec..136c775a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -28,13 +28,8 @@ else
let &softtabstop = &shiftwidth
endif
-" Let me backspace over pretty much anything
-set backspace+=eol " Line breaks
-set backspace+=indent " Spaces from 'autoindent'
-set backspace+=start " The start of current insertion
-
-" Try to keep backups in one system-appropriate dir, including full encoded
-" path in filename (trailing double slash) if supported (v8.1.251)
+" Try to keep backups in one system-appropriate directory, including full
+" encoded path in filename (trailing double slash) if supported (v8.1.251)
set backup
if v:version > 801
\ || v:version == 801 && has('patch251')
@@ -46,8 +41,8 @@ endif
" Add some *nix paths not to back up
if has('unix')
set backupskip^=/dev/shm/* " Shared memory RAM disk
- set backupskip^=/usr/tmp/* " Hardcoded path for `sudo -e`
- set backupskip^=/var/tmp/* " Hardcoded path for `sudo -e`
+ set backupskip^=/usr/tmp/* " Hard-coded path for `sudo -e`
+ set backupskip^=/var/tmp/* " Hard-coded path for `sudo -e`
endif
" Indent wrapped lines if supported (v7.4.338)
@@ -69,11 +64,11 @@ set confirm
" Sentence objects are separated by two spaces
set cpoptions+=J
-" Try to keep swapfiles in one system-appropriate dir, including full encoded
-" path in filename (trailing double slash)
+" Try to keep swap files in one system-appropriate directory, including full
+" encoded path in filename (trailing double slash)
set directory^=$MYVIMRUNTIME/cache/swap//
-" Use UTF-8 if we can and env LANG didn't tell us not to
+" Use UTF-8 if we can and $LANG doesn't tell us not to
if has('multi_byte')
\ && !exists('$LANG')
\ && &encoding ==# 'latin1'
@@ -124,7 +119,7 @@ set include=
" Show search matches as I type my pattern
set incsearch
-" Don't show a statusline if there's only one window
+" Don't show a status line if there's only one window
" This is Vim's default, but not NeoVim's
if &laststatus != 1
set laststatus=1
@@ -149,9 +144,8 @@ set nomodeline
" Treat numbers with a leading zero as decimal, not octal
set nrformats-=octal
-" Options for file search with gf/:find
-set path-=/usr/include " Let the C/C++ filetypes set that
-set path+=** " Search current directory's whole tree
+" Search whole directory tree, and not /usr/include
+set path=**
" Disable command line display of file position
" This is Vim's default, but not NeoVim's
@@ -173,6 +167,14 @@ set showbreak=...
set splitbelow " Below the current window, not above
set splitright " Right of the current window, not left
+" Don't try to syntax highlight run-on lines
+set synmaxcol=500
+
+" PuTTY is a fast terminal
+if &term =~# '^putty'
+ set ttyfast
+endif
+
" No terminal mouse, even if we could; the manual says to set 't_RV', but I
" don't like that
" Not in NeoVim
@@ -180,13 +182,19 @@ if exists('+ttymouse') && &ttymouse !=# ''
set ttymouse=
endif
-" Try to keep persistent undo files in one system-appropriate dir (v7.2.438),
-" including full encoded path in filename (trailing double slash)
+" Try to keep persistent undo files in one system-appropriate directory
+" (v7.2.438), including full encoded path in filename (trailing double slash)
if has('persistent_undo')
set undofile
set undodir^=$MYVIMRUNTIME/cache/undo//
endif
+" Let me move beyond buffer text in visual block mode
+set virtualedit+=block
+
+" Never beep at me
+set visualbell t_vb=
+
" Tab completion settings
set wildignore=*~
\,*.7z
@@ -215,12 +223,6 @@ if exists('+wildignorecase')
endif
set wildmode=list:longest " Tab press completes and lists
-" Let me move beyond buffer text in visual block mode
-set virtualedit+=block
-
-" Never beep at me
-set visualbell t_vb=
-
" Load filetype settings, plugins, and maps
let maplocalleader = ','
filetype plugin indent on
@@ -230,8 +232,8 @@ if !exists('syntax_on')
syntax enable
endif
-" Try to use sahara colorscheme with 'cursorline' set; otherwise, use the
-" default colorscheme with a dark background
+" Try to use sahara color scheme with 'cursorline' set; otherwise, use the
+" default color scheme with a dark background
try
colorscheme sahara
set cursorline
@@ -275,7 +277,7 @@ nnoremap ]a :next<CR>
" Cycle through buffers
nnoremap [b :bprevious<CR>
nnoremap ]b :bnext<CR>
-" Cycle through quicklist/:helpgrep items
+" Cycle through quickfix list items
nnoremap [c :cprevious<CR>
nnoremap ]c :cnext<CR>
" Cycle through location list items
@@ -289,7 +291,7 @@ nmap ]<Space> <Plug>(PutBlankLinesBelow)
" \a toggles 'formatoptions' 'a' flag using a plugin
nnoremap <Leader>a :<C-U>ToggleFlagLocal formatoptions a<CR>
-" \b toggles copy-pasteable linebreak settings
+" \b toggles settings friendly to copying and pasting
nmap <Leader>b <Plug>(CopyLinebreakToggle)
" \c toggles 'cursorline'; no visual mode map as it doesn't work
@@ -324,13 +326,13 @@ nnoremap <Leader>H :<C-U>history :<CR>
" \i toggles showing matches as I enter my pattern
nnoremap <Leader>i :<C-U>set incsearch! incsearch?<CR>
-" \j jumps to buffers (jetpack)
+" \j jumps to buffers ("jetpack")
nnoremap <Leader>j :<C-U>buffers<CR>:buffer<Space>
" \k shows my marks
nnoremap <Leader>k :<C-U>marks<CR>
-" \l toggles showing tab, end-of-line, and trailing whitespace
+" \l toggles showing tab, end-of-line, and trailing white space
nnoremap <Leader>l :<C-U>setlocal list! list?<CR>
xnoremap <Leader>l :<C-U>setlocal list! list?<CR>gv
@@ -417,10 +419,10 @@ nnoremap <Leader>. :<C-U>lmake!<CR>
nnoremap <Leader><lt> :<C-U>'[,']<lt><CR>
nnoremap <Leader>> :<C-U>'[,']><CR>
-" \_ uses last changed or yanked text as a characterwise object
+" \_ uses last changed or yanked text as an object
onoremap <Leader>_ :<C-U>normal! `[v`]<CR>
-" \% uses entire buffer as a linewise object
+" \% uses entire buffer as an object
onoremap <Leader>% :<C-U>normal! 1GVG<CR>
" \{ and \} move to lines with non-space chars before current column