From: Iain Patterson Date: Wed, 26 Feb 2014 10:54:19 +0000 (+0000) Subject: Set shiftwidth and tabstop together. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=74d08aad488b6e7f74f5252cd5f313958bcdc08a;p=profile.git Set shiftwidth and tabstop together. When using {n} to set a tabstop of {n} columns also set the shiftwidth. --- diff --git a/.vimrc b/.vimrc index c2a88f8..21e3877 100644 --- a/.vimrc +++ b/.vimrc @@ -437,16 +437,16 @@ endfun "}}}2 call Mapping("-", "yyp:s/./-/g:let @/='':") call Mapping("=", "yyp:s/./=/g:let @/='':") -" Change to ts=2 with \2. -call Mapping("2", ":se ts=2:") -" Change to ts=4 with \4. -call Mapping("4", ":se ts=4:") -" Change to ts=8 with \8. -call Mapping("8", ":se ts=8:") -" Change to ts=16 with \6. -call Mapping("6", ":se ts=16:") -" Change to ts=32 with \3. -call Mapping("3", ":se ts=32:") +" Set 2-column tabs with \2. +call Mapping("2", ":se ts=2:se sw=2:") +" Set 4-column tabs with \4. +call Mapping("4", ":se ts=4:se sw=4:") +" Set 8-column tabs with \8. +call Mapping("8", ":se ts=8:se sw=8:") +" Set 16-column tabs with \6. +call Mapping("6", ":se ts=16:se sw=16:") +" Set 32-column tabs with \3. +call Mapping("3", ":se ts=32:se sw=32:") " Toggle paste mode with \p. call Mapping("p", ":se paste!:") " Swap case-sensitivity with \c.