-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
83 lines (73 loc) · 2.31 KB
/
.vimrc
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
" Damien Dart's ".vimrc".
"
" This file should only contain simple configuration stuff; anything
" more complex should get shipped off to self-contained files in
" "$TOOLBOX_ROOT/.vim/" (use "gf" to edit or view these files):
"
" - "$TOOLBOX_ROOT/.vim/after/ftplugin/markdown.vim"
" - "$TOOLBOX_ROOT/.vim/after/plugin/plugins.vim"
" - "$TOOLBOX_ROOT/.vim/after/syntax/markdown.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/additional-file-info.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/base64.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/colorcolumn.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/editorconfig.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/fuzzy-files.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/fuzzy-finders.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/fzf.vim"
" - "$TOOLBOX_ROOT/.vim/plugin/plugins.vim"
"
" (For more information about this organisation approach, please see
" <https://vimways.org/2018/from-vimrc-to-vim/>.)
"
" A cheat-sheet for some of the more frequently-used custom
" functionality is available at "$TOOLBOX_ROOT/.vim/doc/toolbox.txt" (or
" search for "toolbox" using Vim's help functionality if the help tags
" file for "toolbox.txt" has been generated).
"
" This file was written by Damien Dart, <[email protected]>. This is
" free and unencumbered software released into the public domain. For
" more information, please refer to the accompanying "UNLICENCE" file.
set encoding=utf-8
scriptencoding utf-8
set backspace=indent,eol,start
set display=truncate
set history=200
set laststatus=1
set lazyredraw
set nrformats-=octal
set scrolloff=5
set showcmd
set splitbelow
set splitright
set t_vb=
set ttimeout
set ttimeoutlen=100
set visualbell
set wildmenu
if executable('rg')
set grepformat+=%f:%l:%c:%m
set grepprg=rg\ --vimgrep\ --smart-case\ --hidden
endif
" Fixes some Vim-in-tmux colour-related funkiness caused by the
" "background" option being incorrectly set. For more information, see
" <https://github.com/vim/vim/issues/7867#issuecomment-781794423> and
" <https://unix.stackexchange.com/q/348771>.
if exists('$TMUX') && !exists('$VIM_TERMINAL')
let &t_RB = "\ePtmux;\e\e]11;?\007\e\\"
endif
if has('autocmd')
filetype plugin indent on
endif
if has('mouse')
set mouse=a
endif
if has('reltime')
set incsearch
endif
if has('syntax')
syntax enable
endif
packadd! matchit
if filereadable($HOME . '/.machine.vimrc')
source ~/.machine.vimrc
endif