-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
51 lines (40 loc) · 1.14 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
set nocompatible
call pathogen#infect()
"display tabs and trailing spaces
set list
set listchars=tab:▷⋅,trail:⋅,nbsp:⋅
set incsearch "find the next match as we type the search
set hlsearch "hilight searches by default
syntax on
set number
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
colorscheme monokai
"colorscheme lucario
set backspace=indent,eol,start
" For test262
au BufNewFile,BufRead *.template set ft=javascript
au BufNewFile,BufRead *.case set ft=javascript
" Open NERDTree if no given file
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
"default indent settings
set shiftwidth=2
set softtabstop=2
set expandtab "use spaces instead of tabs
set autoindent
" some stuff to get the mouse going in term
"set mouse=a
"set ttymouse=xterm2
" who needs mouse on vim?
"tell the term has 256 colors
set t_Co=256
"hide buffers when not displayed
set hidden
set wrap "dont wrap lines
set linebreak "wrap lines at convenient points
if v:version >= 703
"undo settings
set undodir=~/.vim/undofiles
set undofile
set colorcolumn=+1 "mark the ideal max text width
endif