aboutsummaryrefslogtreecommitdiff
path: root/_posts/2023-11-07-personal-sane-vim-defaults.md
blob: 0d71cf80a1ee0a19bfc6fbcdcafd2ee8f87e90b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "Personal sane Vim defaults"
permalink: /apersonal-sane-vim-defaults.html
date: 2023-11-07T01:04:28+02:00
layout: post
type: note
draft: false
---

I have found many "sane" default configs on the net and this is my favorite
personal list. This is how my `.vimrc` file looks like.

```vimrc
syntax enable

set nocompatible
set relativenumber
set hlsearch
set smartcase
set ignorecase
set incsearch
set autoindent
set autoread
set nowrap
set noswapfile
set wildmenu
set tabstop=4
set shiftwidth=4
set expandtab
set scrolloff=4
```

I keep it pretty vanilla so this is about everything I have in the file.