From c1155dfd3a50ca5fcf907cf1ec92232aee75c0ae Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 5 Aug 2019 10:53:01 +0100 Subject: [PATCH] Do not expand tabs --- vimrc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index bd21709..44a368f 100644 --- a/vimrc +++ b/vimrc @@ -46,7 +46,6 @@ set complete-=i set directory=$TEMP//,/tmp//,. set display+=lastline set encoding=utf-8 -set expandtab set formatoptions-=t set history=1000 set ignorecase @@ -57,6 +56,7 @@ set linebreak set list set listchars=tab:→·,trail:~,extends:>,precedes:< set modelines=0 +set noexpandtab set nomodeline set nrformats-=octal set numberwidth=8 @@ -64,11 +64,10 @@ set omnifunc=syntaxcomplete#Complete set relativenumber set ruler set sessionoptions-=options -set shiftwidth=4 set smartcase set smarttab set spl=en_gb nospell -set tabstop=8 +set tabstop=4 set textwidth=78 set ttimeout set ttimeoutlen=100 @@ -114,7 +113,7 @@ endif " Settings based on feature detection. if has("autocmd") - autocmd BufRead,BufNewFile *.go set noexpandtab shiftwidth=8 tabstop=8 + autocmd BufRead,BufNewFile *.go set shiftwidth=8 tabstop=8 autocmd BufRead,BufNewFile *.html set shiftwidth=2 autocmd BufRead,BufNewFile *.md set filetype=markdown tabstop=4 autocmd BufRead,BufNewFile *.opml set shiftwidth=2 @@ -163,4 +162,4 @@ endif " ====================================================================== " End of config file. -" vim:set ft=vim et sw=4: +" vim:set ft=vim: