aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-19 17:58:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-19 17:58:48 +1200
commitf9f1d3ba9426a6371b665541c84d84caffa33209 (patch)
treededc01ca7ea44c77f7742d1b0b46e4506d6798dc
parentSet filetype-appropriate 'foldlevel' (diff)
downloaddotfiles-f9f1d3ba9426a6371b665541c84d84caffa33209.tar.gz
dotfiles-f9f1d3ba9426a6371b665541c84d84caffa33209.zip
Enable 'smarttab' in Vim
-rw-r--r--vim/vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 165322ac..9bebf686 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -499,6 +499,7 @@ set path-=/usr/include
set autoindent " Use indent of previous line on new lines
set expandtab " Insert spaces when tab key is pressed in insert mode
set shiftwidth=4 " Indent command like < and > use four-space indents
+set smarttab " Tab at start of line means indent, otherwise means tab
" Apply 'softtabstop' option to make a tab key press in insert mode insert the
" same number of spaces as defined by the indent depth in 'shiftwidth'. If