-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
83 lines (61 loc) · 2.22 KB
/
vimrc
File metadata and controls
83 lines (61 loc) · 2.22 KB
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
" Vim resource configuration / custom settings
" Global system-wide for all users are either at /etc/vim/vimrc or /etc/vimrc
" Use Vim defaults (much better!)
set nocompatible
" use filetype-based syntax highlighting, ftplugins, and indentation
syntax enable
" For plug-ins to load correctly
filetype plugin indent on
"""" Display settings """"
" set colorscheme to dark background
" see /usr/share/vim/vim74/colors/*.vim for options
" or in vim use tab complete or ctrl-d to get a list, e.g
" :colo[rscheme] ctrl+d
" blue default desert evening morning pablo ron slate zellner
" darkblue delek elflord koehler murphy peachpuff shine torte
colorscheme torte
" alternative way to use a dark background
" set background=dark
" show the cursor position all the time
set ruler
" Show matching brackets
set showmatch
" turn on line numbers
set number
" highlight current line
set cursorline
" always show statusline (even with only single window)
set laststatus=2
" Display different types of white spaces.
set list
" enter middle-dot '·' via ctrl+k then .M
" enter the right-angle-quote '»' via ctrl+k then >>
" enter the pilcrow mark '¶' via ctrl+k then PI
" enter BULLET OPERATOR '∙' via ctrl+k then Sb
" enter BLACK CIRLE '●' via ctrl+k then 0M
" enter DOT ABOVE '˙' via ctrl+k then '.
" :help digraphs
set listchars=tab:»·,trail:•,extends:#,nbsp:.
" two tab before comment with trailing tabs (2) and spaces(2)
"""" Tab settings """"
" number of spaces when hitting tab key when editing
" and the number of spaces that are removed when you backspace
set softtabstop=2
" turns tab into spaces
"set expandtab
" copy indent from current line when starting a new line
"set autoindent
" even better autoindent (e.g. add indent after '{')
"set smartindent
"""" Search settings """"
" search as characters are entered
set incsearch
" highlight matches
set hlsearch
" References:
" * A Good Vimrc
" https://dougblack.io/words/a-good-vimrc.html
" * Top 50 Vim Configuration Options
" https://www.shortcutfoo.com/blog/top-50-vim-configuration-options/
" * Introduction To Vim Customization
" https://www.linode.com/docs/tools-reference/tools/introduction-to-vim-customization/