-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvim.init
49 lines (36 loc) · 1.14 KB
/
nvim.init
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
" Use `vim` colorscheme as that supports easy switching between light and dark
" probably because it just uses terminal colors and GUI terminals can switch those
colorscheme vim
" Enable the filetype detection
" filetype plugin indent on
" Enable syntax highlighting
" syntax on
" Configure backspace to also be able to delete indent, end of lines, and
" start of insert
" set backspace=indent,eol,start
" Highlight the current line
set cursorline
" set ruler
" Blink screen instead of play bell on errors
" set visualbell
" Always use UTF-8
" set encoding=utf-8
" Display line numbers by default
set number
" Break lines on whole words
set linebreak
" Indent using 4 spaces
set expandtab tabstop=4
set smartindent autoindent
" No automatic line breaks by default
set textwidth=0
" Special configuration for git commit messages:
" - Insert linebreaks after 72 characters
" - Disable mouse input
" - Enable spellcheck
" - Disable cursorline
autocmd Filetype gitcommit set textwidth=72 mouse= nonumber nocursorline spell
" Special configuration for markdown files:
" - Disable line numbers
" - Enable spellcheck
autocmd Filetype markdown set nonumber spell