summaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.vim
blob: 18587de51d4a73ef6aafcf21381f6d0a52698ace (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
set clipboard+=unnamedplus
set nocompatible
set nohlsearch
set number
syntax on

" Automatically deletes all trailing whitespace and newlines at end of file on save.
	autocmd BufWritePre * %s/\s\+$//e
	autocmd BufWritepre * %s/\n\+\%$//e

" Update binds when sxhkdrc is updated.
	autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd