aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-16 12:46:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-16 12:46:44 +1300
commitc8d8ae55b98503bc0c95d5ad1809a93ab92494e9 (patch)
treec7b22bd7b376d4f78284f8127635bf81a60c2474 /vim
parentAdd missing left angle bracket to filetype undo (diff)
downloaddotfiles-c8d8ae55b98503bc0c95d5ad1809a93ab92494e9.tar.gz
dotfiles-c8d8ae55b98503bc0c95d5ad1809a93ab92494e9.zip
Add Bash settings to Vim readline highlighting
This includes the creation of a hitherto-unneeded Makefile target install-vim-syntax.
Diffstat (limited to 'vim')
-rw-r--r--vim/after/syntax/readline.vim3
-rw-r--r--vim/syntax/readline.vim2
2 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/syntax/readline.vim b/vim/after/syntax/readline.vim
new file mode 100644
index 00000000..050b2dc1
--- /dev/null
+++ b/vim/after/syntax/readline.vim
@@ -0,0 +1,3 @@
+" Clear away the flag we set in syntax/readline.vim to include Bash commands
+" in the highlight list
+unlet! g:readline_has_bash
diff --git a/vim/syntax/readline.vim b/vim/syntax/readline.vim
new file mode 100644
index 00000000..874ebb32
--- /dev/null
+++ b/vim/syntax/readline.vim
@@ -0,0 +1,2 @@
+" Include Bash commands in the highlight list
+let g:readline_has_bash = 1