From 404bf6df0171ea3a8996ee94d0f7083d11e404f3 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 24 Mar 2014 17:46:29 +0100 Subject: [PATCH] [vim]Make default tabe size 8 --- .vim/indent_finder/indent_finder.py | 4 ++-- .vimrc | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.vim/indent_finder/indent_finder.py b/.vim/indent_finder/indent_finder.py index f98531b..df897f7 100755 --- a/.vim/indent_finder/indent_finder.py +++ b/.vim/indent_finder/indent_finder.py @@ -31,7 +31,7 @@ set sts=0 | set tabstop=4 | set noexpandtab | set shiftwidth=4 VERSION='1.4' ### Used when indentation is tab, to set tabstop in vim -DEFAULT_TAB_WIDTH = 4 +DEFAULT_TAB_WIDTH = 8 ### default values for files where indentation is not meaningful (empty files) # possible values: @@ -40,7 +40,7 @@ DEFAULT_TAB_WIDTH = 4 # DEFAULT_RESULT = ('space', 8 ) # DEFAULT_RESULT = ('tab', DEFAULT_TAB_WIDTH ) -DEFAULT_RESULT = ('space', 4 ) +DEFAULT_RESULT = ('space', 8 ) VERBOSE_QUIET = 0 VERBOSE_INFO = 1 diff --git a/.vimrc b/.vimrc index de8fbed..16a471c 100644 --- a/.vimrc +++ b/.vimrc @@ -106,9 +106,9 @@ set smarttab set smartindent set autoindent " tab=4 -set tabstop=4 -set softtabstop=4 -set shiftwidth=4 +set tabstop=8 +set softtabstop=8 +set shiftwidth=8 " real tabs " set noexpandtab @@ -405,3 +405,4 @@ imap it Tex_InsertItemOnThisLine let g:Tex_DefaultTargetFormat="pdf" colorscheme mycolor +cnoremap sudow w !sudo tee % >/dev/null