diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-06 11:52:37 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-06 11:52:37 -0500 |
| commit | e27af754f935758eef4061cd2261130fae194125 (patch) | |
| tree | cf14b058553f9bfe5f1241b1352d872e93aad06e /vim | |
| parent | Adjust start-tmux script (diff) | |
| download | dotfiles-e27af754f935758eef4061cd2261130fae194125.zip | |
Enable indent plugin and sh specific settings for vim
Diffstat (limited to 'vim')
| -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 |