diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | IDEAS.md | 3 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/after/syntax/vim.vim | 2 | ||||
m--------- | vim/bundle/write_mkpath | 0 | ||||
-rw-r--r-- | vim/vimrc | 9 |
7 files changed, 17 insertions, 6 deletions
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"] @@ -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. @@ -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 \ @@ -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 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 diff --git a/vim/bundle/write_mkpath b/vim/bundle/write_mkpath new file mode 160000 +Subproject 53f1a5c423af025ea02ad3ee92099100994b8cb @@ -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 @@ -460,3 +462,10 @@ nnoremap <Leader>! ^"zyg_:!<C-R>z<CR> 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 |