diff options
| -rw-r--r-- | vim/.vim/after/ftplugin/sh.vim | 3 | ||||
| -rw-r--r-- | vim/.vimrc | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/vim/.vim/after/ftplugin/sh.vim b/vim/.vim/after/ftplugin/sh.vim new file mode 100644 index 0000000..5e33d4a --- /dev/null +++ b/vim/.vim/after/ftplugin/sh.vim @@ -0,0 +1,3 @@ +setlocal shiftwidth=2 +setlocal tabstop=2 +setlocal softtabstop=2 @@ -6,10 +6,11 @@ set nocompatible " to the current line the cursor is on. set relativenumber -" Enable filetype detection to apply filetype-specific -" settings e.g. syntax highlighting and enable filetype -" plugins. -filetype plugin on +" 1. Enable filetype detection to apply filetype-specific +" settings e.g. syntax highlighting +" 2. Enable filetype plugins. +" 3. Enable the indent plugin for automatic indentation +filetype plugin indent on " Turn on syntax highlighting syntax on |