vim:ftplug:shell*: Add - to &iskeyword
Add the dash to the keyword character list since command names can (and do) contain them.
This commit is contained in:
2
.config/vim/ftplugin/bash.vim
Normal file
2
.config/vim/ftplugin/bash.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" source ./shell.vim (adds `-` to &iskeyword)
|
||||
execute "source " .. expand("<sfile>:h") .. "/shell.vim"
|
||||
2
.config/vim/ftplugin/shell.vim
Normal file
2
.config/vim/ftplugin/shell.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" Include `-` in keyword characters since command names can contain them
|
||||
setlocal iskeyword+=-
|
||||
2
.config/vim/ftplugin/zsh.vim
Normal file
2
.config/vim/ftplugin/zsh.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" source ./shell.vim (adds `-` to &iskeyword)
|
||||
execute "source " .. expand("<sfile>:h") .. "/shell.vim"
|
||||
Reference in New Issue
Block a user