-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.vimrc
60 lines (49 loc) · 1.68 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
"lots of content grabbed from
"https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=500
" For the yank/delete buffer size
set viminfo='20,<1000
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => VIM user interface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax enable
syntax sync fromstart
try
colorscheme monokai
catch
set background=dark
endtry
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
" Highlight tabs (hate those things)
hi UnwantedTabs ctermbg=green guibg=#0000ff
:autocmd BufWinEnter * match UnwantedTabs /\t/
" Highlight trailing spaces
hi TrailingWhitespace ctermbg=red guibg=#f92672
:autocmd BufWinEnter * 2match TrailingWhitespace /\s\+$/
" Highlight matches
set hlsearch
" syntax highlighting for non-recognized extensions
autocmd BufNewFile,BufRead *.gn set syntax=python
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set autoindent
set tabstop=2
set expandtab
set number
set nofixendofline
"Ignore case when searching except when using a capital letter
set ignorecase
set smartcase