aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 023d548..4ce3564 100644
--- a/vimrc
+++ b/vimrc
@@ -1,3 +1,14 @@
+if 1
+ augroup vimStartup
+ au!
+
+ autocmd BufReadPost *
+ \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
+ \ | exe "normal! g`\""
+ \ | endif
+ augroup END
+endif
+
autocmd FileType rust setlocal ts=4 sw=4 expandtab
nnoremap <Enter> moO<Esc>`o