From e27af754f935758eef4061cd2261130fae194125 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 6 Dec 2025 11:52:37 -0500 Subject: Enable indent plugin and sh specific settings for vim --- vim/.vim/after/ftplugin/sh.vim | 3 +++ vim/.vimrc | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 vim/.vim/after/ftplugin/sh.vim 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 diff --git a/vim/.vimrc b/vim/.vimrc index 130f31d..55e5084 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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 -- cgit v1.2.3