-
Notifications
You must be signed in to change notification settings - Fork 3
/
dot_vimrc.tmpl
56 lines (44 loc) · 1.7 KB
/
dot_vimrc.tmpl
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
set nu
set autoindent " useful when writing code to maintain indenting
" goes back one indent while still in insert mode
set smartindent " starts indenting based on language of code
set ignorecase " causes searches to be case insensitive
set smartcase " case sensitive search when item has an upper case letter
set incsearch " starts search as you type the search pattern
set nohlsearch " future matches aren't highlighted
set backspace=indent,eol,start " backspace key acts like standard text editor
set showmatch " matches { [ and ( as your type
set shiftround " maintains indent when tabs and spaces are mixed
set noerrorbells " errors won't make noise
set visualbell " screen flashes moving beyond begin/end and unmatched close
" Show the mode
set showmode " reports when inserting, otherwise, you are in command mode
set report=0 " reports changes involving more than 0 lines
set ruler " reports line and column number
" Show syntax
syntax on " colors keywords in language
" Tab completion works properly (UNIX Style) and shows menu of possible options.
set wildmenu
set wildmode=longest,list,full
set wildignore=*.o,*.bak,*.data,*.class
{{ if eq .chezmoi.os "linux" }}
" Clipboard
set clipboard=unnamedplus
{{ end }}
set shiftwidth=4
set softtabstop=4
set expandtab
" Get colors right in TUI
if exists('+termguicolors')
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
" Stop highlighting being deleted on bufleave
let g:colorizer_disable_bufleave = 1
let g:colorizer_use_virtual_text = 1
{{ if eq .chezmoi.os "linux" }}
let g:suda#prefix = 'sudo://'
{{ end }}
" Set colors
set t_Co=256