summaryrefslogtreecommitdiffstats
path: root/.vim/vimrc
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-12-10 18:50:58 -0500
committerMalfurious <m@lfurio.us>2022-12-10 18:50:58 -0500
commit1440add26da5d6ace5f5203f23fc5ec0d2bd0ddf (patch)
tree54cb576c5ccd13f61055f12e7a616967a9a2edb2 /.vim/vimrc
parent0e0eef8844103057b69ff3bf0f023165f1f660e0 (diff)
downloadrice-1440add26da5d6ace5f5203f23fc5ec0d2bd0ddf.tar.gz
rice-1440add26da5d6ace5f5203f23fc5ec0d2bd0ddf.zip
Update vimrc
Some settings were redundant with vim-polyglot, others unused by me. softtabstop is added for better backspacing behavior.
Diffstat (limited to '.vim/vimrc')
-rw-r--r--.vim/vimrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
new file mode 100644
index 0000000..a8cdec2
--- /dev/null
+++ b/.vim/vimrc
@@ -0,0 +1,12 @@
+set nocompatible " (Don't) Behave Vi-compatible as much as possible
+set tabstop=4 " Number of spaces that <Tab> characters display
+set softtabstop=4 " Number of spaces that <Tab> uses while editing
+set shiftwidth=4 " Number of spaces to use for autoindent
+set expandtab " Use spaces when <Tab> is inserted
+set autoindent " Take indent for new line from previous line
+
+" Readable diffs
+highlight DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
+highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
+highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
+highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red