-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
56 lines (50 loc) · 1.69 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
syntax on "this is needed to see syntax
set background=dark "makes it easier to read with black background
colorscheme ir_black "set theme in ./vim/colors folder
set ls=2 " allways show status line
set hlsearch " highlight searches
set incsearch " do incremental searching
set ruler " show the cursor position all the time
set visualbell t_vb= " turn off error beep/flash
set ignorecase "ignore case while searching
set number "put numbers on side
set expandtab "inserts space characters whenever the tab key is pressed
set shiftwidth=2
set softtabstop=2
set fdm=indent
set nofoldenable
set foldlevel=1
set ruler
call pathogen#infect()
call pathogen#helptags()
" GUI Config
" TODO: settings for gvim and win
set guifont=Monaco:h10
" Indentation
set filetype=on
filetype plugin on
filetype indent on
" HTML (tab width 2 chr, no wrapping)
autocmd FileType html set shiftwidth=2
autocmd FileType html set tabstop=2
autocmd FileType html set softtabstop=2
autocmd FileType html set textwidth=0
" Python (tab width 4 chr, wrap at 79th char)
autocmd FileType python set sw=4
autocmd FileType python set ts=4
autocmd FileType python set sts=4
autocmd FileType python set textwidth=79
" CSS (tab width 2 chr, wrap at 79th char)
autocmd FileType css set sw=2
autocmd FileType css set ts=2
autocmd FileType css set sts=2
autocmd FileType css set textwidth=79
" JavaScript (tab width 4 chr, wrap at 79th)
autocmd FileType javascript set shiftwidth=4
autocmd FileType javascript set tabstop=4
autocmd FileType javascript set softtabstop=4
autocmd FileType javascript set textwidth=79
" More memory!
set history=1000
" NERDTree Config
let NERDTreeShowHidden=1