-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
63 lines (46 loc) · 1.12 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
"""" Arc's .vimrc.
"""" (;,;)/
""""""""""""""""""""
"""" Colors & themes
""""""""""""""""""""
set guifont=Courier:h18:cDEFAULT
" enables syntax highlighting
syntax enable
" Enable 256 colors
set t_Co=256
" changing colorscheme
colorscheme elflord
""""""""""""""""""""
"""" Spaces & tabs
""""""""""""""""""""
set tabstop=4 " number of visual spaces per tab
set softtabstop=4 " number of spaces per tab when editing
set shiftwidth=4
set expandtab " tabs are spaces
""""""""""""""""""""
"""" UI settings
""""""""""""""""""""
" displays line numbers
set number
" highlights current line
set cursorline
" allows auto indent depending on the file
filetype plugin indent on
" allows reload of the file if its modified elsewhere
set autoread
" sharing clipboard between OS and Vim
set clipboard=unnamed
" highlighting searches
set hlsearch
"""""""""""""""""""
"""" Vim behaviour
"""""""""""""""""""
" allows :e /file to hide current buffer instead of killing it
set hidden
" no backup and swap
set nobackup
set noswapfile
set autoindent
" NOTES
"" sudo -e filename TO OPEN AS SUDO WITH $EDITOR (USES YOUR .vimrc AND SAVES
"" AS SUDO)