From 10c1ac01c1c4f210d5bcbd0d2a6cd8ed45174b18 Mon Sep 17 00:00:00 2001 From: Alexis Leclerc Date: Thu, 10 Oct 2019 16:05:52 +0300 Subject: [PATCH] 2 tabs by default --- files/my_configs.vim | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/files/my_configs.vim b/files/my_configs.vim index f158fa4..2b4ab0c 100644 --- a/files/my_configs.vim +++ b/files/my_configs.vim @@ -7,14 +7,10 @@ autocmd BufWritePre * :%s/\s\+$//e " show all characters (trailing space, tab, eol) set list lcs=tab:▸\ ,eol:¬,trail:· -" set tab to 2 for Ruby files -au FileType ruby call RubyTab() -function! RubyTab() - " nb auto indent spaces - set shiftwidth=2 - " nb of spaces per tab - set softtabstop=2 -endfunction +"nb auto indent spaces +set shiftwidth=2 +" nb of spaces per tab +set softtabstop=2 " Remove indent after newline in YAML files let g:ansible_unindent_after_newline = 1