-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
56 lines (40 loc) · 916 Bytes
/
init.vim
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
50
51
52
53
54
55
" Basic Neovim configuration
" Enable relative line numbers
set relativenumber
set number
" Enable syntax highlighting
syntax on
" Set indentation settings
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
" Enable line wrapping
set wrap
" Enable mouse support
set mouse=a
" Enable clipboard access
set clipboard=unnamedplus
" Enable incremental search
set incsearch
set hlsearch
" Disable swap files
set noswapfile
" Set a more visible color column at 80 characters
set colorcolumn=80
" Enable persistent undo
set undofile
" Set the undo directory
if !isdirectory(expand('~/.config/nvim/undodir'))
call mkdir(expand('~/.config/nvim/undodir'), 'p')
endif
set undodir=~/.config/nvim/undodir
" Set the status line
set laststatus=2
" Show matching parentheses
set showmatch
" Set the background color to dark
set background=dark
" Highlight the current line
set cursorline