From c8364bacada00264a6dc7d88729754de8e91d3df Mon Sep 17 00:00:00 2001 From: Edward Litherland-Smith Date: Wed, 16 Dec 2020 08:49:19 +0000 Subject: [PATCH] Add file specific indent settings, .gitignore --- .gitignore | 1 + .vimrc | 5 +---- after/ftplugin/fortran.vim | 1 + after/ftplugin/python.vim | 4 ++++ after/ftplugin/sh.vim | 4 ++++ 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 after/ftplugin/fortran.vim create mode 100644 after/ftplugin/python.vim create mode 100644 after/ftplugin/sh.vim diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..a0e76af9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.netrwhist diff --git a/.vimrc b/.vimrc index 5a60ecda..8a4c5676 100644 --- a/.vimrc +++ b/.vimrc @@ -9,12 +9,9 @@ if &diff syntax off endif -set expandtab +filetype plugin indent on set autoindent set smartindent -set tabstop=4 -set softtabstop=4 -set shiftwidth=4 noremap noremap diff --git a/after/ftplugin/fortran.vim b/after/ftplugin/fortran.vim new file mode 100644 index 00000000..5245bdc5 --- /dev/null +++ b/after/ftplugin/fortran.vim @@ -0,0 +1 @@ +setlocal expandtab diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim new file mode 100644 index 00000000..3cac491d --- /dev/null +++ b/after/ftplugin/python.vim @@ -0,0 +1,4 @@ +setlocal tabstop=4 +setlocal shiftwidth=4 +setlocal softtabstop=4 +setlocal expandtab diff --git a/after/ftplugin/sh.vim b/after/ftplugin/sh.vim new file mode 100644 index 00000000..5261b5ef --- /dev/null +++ b/after/ftplugin/sh.vim @@ -0,0 +1,4 @@ +setlocal tabstop=2 +setlocal shiftwidth=2 +setlocal softtabstop=2 +setlocal expandtab