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