summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXian Wang <dev@xianwang.io>2022-07-08 14:15:34 -0700
committerXian Wang <dev@xianwang.io>2022-07-08 14:15:34 -0700
commit2879397dfd46f34ab3059b35453dc74eea229fc0 (patch)
treed8389dd351cbabf4c5bd8234799fc4ff84d693ac
parent99b6971f62cdb02d52c3c4f15f84c97dccaeb344 (diff)
downloaddotfiles-2879397dfd46f34ab3059b35453dc74eea229fc0.tar.gz
dotfiles-2879397dfd46f34ab3059b35453dc74eea229fc0.tar.bz2
dotfiles-2879397dfd46f34ab3059b35453dc74eea229fc0.zip
vimrc, zshrc: improve indentation handling
Signed-off-by: Xian Wang <dev@xianwang.io>
-rw-r--r--vimrc4
-rw-r--r--zshrc1
2 files changed, 2 insertions, 3 deletions
diff --git a/vimrc b/vimrc
index 0b38e10..51727e3 100644
--- a/vimrc
+++ b/vimrc
@@ -1,7 +1,5 @@
syntax on
set number
+set autoindent
set smartindent
-set softtabstop=2
-set shiftwidth=2
-set noexpandtab
set ruler
diff --git a/zshrc b/zshrc
index 895ee18..ba31f8d 100644
--- a/zshrc
+++ b/zshrc
@@ -48,6 +48,7 @@ alias mv='nocorrect mv'
alias cp='nocorrect cp'
alias rm='rm'
alias mkdir='nocorrect mkdir'
+alias grep='nocorrect grep'
alias ls="ls --color=auto"
alias ll="ls --color -l"