mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
vimrc: enable filetype, don't touch tabs/spaces?
This commit is contained in:
parent
0a14f20f8e
commit
17e09d3646
10
rc/vimrc
10
rc/vimrc
@ -27,9 +27,13 @@ set background=dark
|
|||||||
|
|
||||||
"Use modelines!
|
"Use modelines!
|
||||||
set modeline
|
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 shiftwidth=4
|
||||||
set expandtab
|
"set expandtab
|
||||||
|
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
" Longer history
|
" Longer history
|
||||||
@ -67,6 +71,8 @@ set fileencoding=utf-8
|
|||||||
" via https://techwelkin.com/how-to-remove-byte-order-mark-bom-characters
|
" via https://techwelkin.com/how-to-remove-byte-order-mark-bom-characters
|
||||||
set nobomb
|
set nobomb
|
||||||
|
|
||||||
|
" Apply rules per filetype.vim
|
||||||
|
set filetype
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
" Return to last edit position when opening files (You want this!)
|
" Return to last edit position when opening files (You want this!)
|
||||||
|
Loading…
Reference in New Issue
Block a user