vimrc: enable filetype, don't touch tabs/spaces?

This commit is contained in:
Aminda Suomalainen 2020-04-17 15:09:08 +03:00
parent 0a14f20f8e
commit 17e09d3646
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -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!)