-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
54 lines (43 loc) · 1.07 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
""""""
"" .vimrc for Vim, everyone's favourite editor
"" By Ruben Schade, 2004-present
""
"" Displaying text
set linebreak
set lazyredraw
set number
"" Syntax, highlighting and spelling
syntax on
set background=light
set hlsearch "" highlight search results
"" Messages and info
set noerrorbells
set ruler
set showmode
"" Tabs and indenting
set autoindent
set expandtab
set shiftwidth=4
set smartindent
set smarttab
set tabstop=4
"" Reading and writing files
set encoding=utf-8
"" Disable arrow keys: old habits die hard
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
"" For MacVim and GVim (alternative to .gvimrc)
if has("gui_running")
set guifont=Source\ Code\ Pro:h14
set background=light
set guioptions-=T
set guioptions+=e
"" Taking a break from NerdTree; leaving here for reference
"" Open NERDTree by default
"" autocmd vimenter * NERDTree
"" Close Vim if only NERDTree is open
"" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
endif
"" EOF