-
Notifications
You must be signed in to change notification settings - Fork 0
/
gvimrc
42 lines (36 loc) · 1.32 KB
/
gvimrc
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
" gvimrc
" ------
"
" SPDX-License-Identifier: CC0-1.0
"
" Written in 2012, 2016, 2019-2021, 2023 by Lawrence Velazquez
" <vq@larryv.me>.
"
" To the extent possible under law, the author has dedicated all
" copyright and related and neighboring rights to this software to the
" public domain worldwide. This software is distributed without any
" warranty.
"
" You should have received a copy of the CC0 Public Domain Dedication
" along with this software. If not, see
" <https://creativecommons.org/publicdomain/zero/1.0/>.
" Disable toolbar.
set guioptions-=T
" Show inactive menu items to aid discoverability.
set guioptions+=g
" Show absolute line numbers in the left gutter. This makes prefixing
" soft-wrapped lines largely pointless, so stop doing that.
set number
set showbreak&
" Avoid 'silent! source ~/.gvimrc.local' because that masks errors from
" within ~/.gvimrc.local itself. Can't use 'silent! try' because
" without +eval that *still* produces an error. (To avoid E484 when
" +eval is absent, create an empty, readable ~/.gvimrc.local file.)
silent! execute 'try'
source ~/.gvimrc.local
silent! catch /\m\C^Vim(source):E484:/
silent! endtry
" Do this down here to let ~/.gvimrc.local make tweaks first, if
" necessary (<https://vimhelp.org/syntax.txt.html#xterm-color>).
" The GUI always has colors.
silent! syntax enable