diff --git a/.config/vim/ftplugin/bash.vim b/.config/vim/ftplugin/bash.vim new file mode 100644 index 0000000..c7c929a --- /dev/null +++ b/.config/vim/ftplugin/bash.vim @@ -0,0 +1,2 @@ +" source ./shell.vim (adds `-` to &iskeyword) +execute "source " .. expand(":h") .. "/shell.vim" diff --git a/.config/vim/ftplugin/shell.vim b/.config/vim/ftplugin/shell.vim new file mode 100644 index 0000000..eb618f5 --- /dev/null +++ b/.config/vim/ftplugin/shell.vim @@ -0,0 +1,2 @@ +" Include `-` in keyword characters since command names can contain them +setlocal iskeyword+=- diff --git a/.config/vim/ftplugin/zsh.vim b/.config/vim/ftplugin/zsh.vim new file mode 100644 index 0000000..c7c929a --- /dev/null +++ b/.config/vim/ftplugin/zsh.vim @@ -0,0 +1,2 @@ +" source ./shell.vim (adds `-` to &iskeyword) +execute "source " .. expand(":h") .. "/shell.vim"