-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
78 lines (57 loc) · 1.61 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
set number "show line numbers
set nocompatible "Use Vim settings, not vi-compatible
set backspace=indent,eol,start "allow backspacing over everything in insert mode
set autoread "update file if it has change on disk
" spaces for indenting and tab stops
set shiftwidth=0
set tabstop=2
set expandtab "Spaces instead of tabs
" Always set auto indenting on
set autoindent
set si "Smart indent
" select when using the mouse
set selectmode=mouse
" set the commandheight
set cmdheight=2
" do not keep a backup files
set nobackup
set nowritebackup
" keep 50 lines of command line history
set history=50
" show the cursor position all the time
set ruler
" show (partial) commands
set showcmd
" do incremental searches (annoying but handy);
set incsearch
" Set ignorecase on
set ignorecase
" smart search (override 'ic' when pattern has uppers)
set scs
" Set status line
set statusline=[%02n]\ %f\ %(\[%M%R%H]%)%=\ %4l,%02c%2V\ %P%*
" No annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500
" Enable filetype plugins
if has('gui_running')
" Enable syntax highlighting
syntax enable
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"colors darkblue
"colors atom-dark
" Always display a status line at the bottom of the window
set laststatus=2
" showmatch: Show the matching bracket for the last ')'?
set showmatch
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif