From 17e09d364671be888be5ac986cb377bb80db9f98 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 17 Apr 2020 15:09:08 +0300 Subject: [PATCH] vimrc: enable filetype, don't touch tabs/spaces? --- rc/vimrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rc/vimrc b/rc/vimrc index af0cf2c4..d566ac23 100644 --- a/rc/vimrc +++ b/rc/vimrc @@ -27,9 +27,13 @@ set background=dark "Use modelines! set modeline -set tabstop=4 "four spaces is likely a tab + +" These may be difficult with multiple languages especially if Vim already +" knows what to do +"set tabstop=4 "four spaces is likely a tab "set shiftwidth=4 -set expandtab +"set expandtab + set autoindent " Longer history @@ -67,6 +71,8 @@ set fileencoding=utf-8 " via https://techwelkin.com/how-to-remove-byte-order-mark-bom-characters set nobomb +" Apply rules per filetype.vim +set filetype filetype plugin indent on " Return to last edit position when opening files (You want this!)