From e88f5662fada840951d3e67ceb655ccd5fca6620 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 19:41:14 +1200 Subject: Add check/lint for git-template-hooks to target --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index a9f03e41..4340835e 100644 --- a/Makefile +++ b/Makefile @@ -657,6 +657,7 @@ install-zsh: check-zsh install-sh cp -p -- zsh/zshrc.d/* $(HOME)/.zshrc.d check: check-bin \ + check-git-template-hooks \ check-login-shell \ check-man \ check-sh @@ -697,6 +698,7 @@ check-zsh: lint: lint-bash \ lint-bin \ lint-games \ + lint-git-template-hooks \ lint-ksh \ lint-sh \ lint-urxvt \ -- cgit v1.2.3 From 2956d0cb5d9ae3b7e57d96a05949e7bab89a66d9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 22:44:30 +1200 Subject: Get full path before testing for :CompilerSet --- vim/after/syntax/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/after/syntax/vim.vim b/vim/after/syntax/vim.vim index cae5c815..e67803cc 100644 --- a/vim/after/syntax/vim.vim +++ b/vim/after/syntax/vim.vim @@ -3,7 +3,7 @@ syntax clear vimCommentString " Highlight :CompilerSet commands like :set/:setlocal, but only in compiler " scripts in recognisable paths -if expand('%:h:t') ==# 'compiler' +if expand('%:p:h:t') ==# 'compiler' \ && expand('%:e') ==# 'vim' syntax keyword vimCommand contained \ CompilerSet -- cgit v1.2.3 From 6be65a3f5008657c89d8806d66e7ad7804b6c828 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 23:46:02 +1200 Subject: Reload vimrc on save --- vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index fe3cb647..ff8197e0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -460,3 +460,10 @@ nnoremap ! ^"zyg_:!z inoreabbrev almsot almost inoreabbrev wrnog wrong inoreabbrev Fielding Feilding + +" Reload this file when I save it, modified or nay +augroup vimrc + autocmd! + autocmd BufWritePost $MYVIMRC,$MYVIM/vimrc + \ source $MYVIMRC +augroup END -- cgit v1.2.3 From dce460683072e034282352870fc05064353a4efb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 23:51:13 +1200 Subject: Explicitly set colorscheme if sahara fails --- vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index ff8197e0..2852ee57 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -232,7 +232,9 @@ try colorscheme sahara set cursorline catch + colorscheme default set background=dark + set nocursorline endtry " Space bar scrolls down a page, :next if plugin available -- cgit v1.2.3 From 8ec5b0b5af03bd93a5f82c473409fffa410fd510 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 00:48:06 +1200 Subject: Add vim-write-mkpath v0.1.0 --- .gitmodules | 3 +++ IDEAS.md | 3 --- vim/bundle/write_mkpath | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 160000 vim/bundle/write_mkpath diff --git a/.gitmodules b/.gitmodules index 715d34b5..2526e82f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -71,6 +71,9 @@ [submodule "vim/bundle/vimrc_reload_filetype"] path = vim/bundle/vimrc_reload_filetype url = https://sanctum.geek.nz/code/vim-vimrc-reload-filetype.git +[submodule "vim/bundle/write_mkpath"] + path = vim/bundle/write_mkpath + url = https://sanctum.geek.nz/code/vim-write-mkpath.git # Vim filetype plugins [submodule "vim/bundle/diff_prune"] diff --git a/IDEAS.md b/IDEAS.md index adbc1d59..fdfe7939 100644 --- a/IDEAS.md +++ b/IDEAS.md @@ -26,9 +26,6 @@ Ideas appropriate `gawk --lint` calls for each of the .awk scripts. * Alternate buffer type switching would probably work rather well as a simple plugin. -* Write my own take on a plugin that creates paths if they don't exist before - saving a file. I already have \P, but it might be nice to automate it, maybe - with a prompt for security raisins. * Write a ftplugin for Perl to switch between punctuation variable names and English variable names., i.e. \e on `$?` would change to `$CHILD_ERROR`, and vice-versa. diff --git a/vim/bundle/write_mkpath b/vim/bundle/write_mkpath new file mode 160000 index 00000000..53f1a5c4 --- /dev/null +++ b/vim/bundle/write_mkpath @@ -0,0 +1 @@ +Subproject commit 53f1a5c423af025ea02ad3ee92099100994b8cb9 -- cgit v1.2.3 From e20539706f6f7d9be679957d7eb2f7ee249df534 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 00:50:49 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b3bfc24a..e50cd32c 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v5.9.0 -Wed May 29 07:22:03 UTC 2019 +tejr dotfiles v5.10.0 +Wed May 29 12:50:49 UTC 2019 -- cgit v1.2.3