-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_vimrc
52 lines (43 loc) · 1.07 KB
/
dot_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
set directory=~/.vim.swap.d/
set nocompatible
" Always use a status line.
set laststatus=2
" j: merge comments with join,
" c: auto-wrap comments,
" r,o: insert comment leader in Insert and Normal mode
" q: allow formatting comments with 'gq'
" n: recognize lists when formatting text
set formatoptions+=jcroqn
" Mouse!
set mouse=a
" Use popup for completions (rather than an obnoxious extra window)
set completeopt+=popup
" TODO(shahms): Highlight trailing whitespace in yellow, but not when typing
" This is a workaround for now.
set list
" tabs are wrong
set expandtab
set shiftwidth=2
set tabstop=2
let mapleader=","
let maplocalleader=","
" incremental search and highlighting
set incsearch
set hlsearch
set ignorecase
set smartcase
" use UTF-8 where possible
set encoding=utf-8
" enable modeline support
set modeline
" set the default true color escape sequences if unset.
if &t_8f == ""
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
endif
if &t_8b == ""
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
endif
set termguicolors
" Restore all the things.
filetype plugin indent on
syntax enable