summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-07-20 10:29:15 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2024-07-20 10:29:15 +0100
commit4bd01a5bae0cdec21cb4df4d5505de391a6ba869 (patch)
treeffe1ab82ee8b16d2a636c5bb57e852964a5abf5c /vim
parent6f1a4d035aaa084fdc3ba844df8cee0faf51e91a (diff)
vim: Use configuration from nvim
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
new file mode 100644
index 0000000..2a3050e
--- /dev/null
+++ b/vim/vimrc
@@ -0,0 +1,7 @@
+set expandtab
+set shiftwidth=2
+set tabstop=2
+set viminfo+=n${XDG_CACHE_HOME}/viminfo
+
+autocmd BufWritePre * %s/\s\+$//e
+autocmd FileType go setl noet