From 4a9500fe379d19ce9432cebbf8defd842203519a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Wadstr=C3=B6m?= Date: Wed, 2 Sep 2020 21:07:18 +0200 Subject: [PATCH] Finalize vimrc --- .vimrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.vimrc b/.vimrc index 323bb99..60f0938 100644 --- a/.vimrc +++ b/.vimrc @@ -52,6 +52,18 @@ set tabstop=4 " Default to UTF-8 encoding set encoding=utf-8 +" Some languages have different indentation preferences. Try to use them. +filetype plugin indent on + +" Don't try to be Vi compatible. Just stick to Vim! +set nocompatible + +" Allow backspace to always work, across linebreaks/indentation etc. +set backspace=indent,eol,start + +" Blink matching bracket +set showmatch + " We never use octals, but we do use zero-prefixed numbers. set nrformats-=octal @@ -74,6 +86,14 @@ set wildmenu " Stop asking me, just reload the changed file! set autoread +" Don't litter backup files. Don't do swaps (we're not that paranoid) +set nobackup +set nowritebackup +set noswapfile + +" Check for file endings +set fileformats=unix,dos + " Quicky to exit insert mode inoremap