-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
77 lines (60 loc) · 1.63 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 nocompatible
" Infect vim with pathogen goodness!
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
set number
set ruler
syntax on
" Default color scheme
color ir_black
" Directories for swp files
set backupdir=~/.vim/backup
set directory=~/.vim/backup
" Show (partial) command in the status line
set showcmd
" Set encoding
set encoding=utf-8
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set list listchars=tab:\ \ ,trail:·
set expandtab
" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Tab completion
set wildmode=list:longest,list:full
set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/,CVS*
" Status bar
set laststatus=2
" Code folding
set foldmethod=indent
set foldnestmax=3
set foldlevel=0
set nofoldenable
if has("autocmd")
" Remember last location in file
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal g'\"" | endif
" Drupal *.module and *.install files.
autocmd BufRead,BufNewFile *.{module,install,test,inc} set filetype=php.drupal.html
" Markdown
autocmd BufRead,BufNewFile *.{md,mkd,markdown} set filetype=markdown
" Ruby
autocmd BufRead,BufNewFile {Rakefile,Capfile,Gemfile} set filetype=ruby
" Python
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
endif
" NERDTree configuration
let NERDTreeIgnore=['\.pyc$', '\.rbc$', '\~$']
map <Leader>n :NERDTreeToggle<CR>
" Enable syntastic syntax checking
let g:syntastic_enable_signs=1
let g:syntastic_quiet_warnings=1
" MacVIM shift+arrow-keys behavior (required in .vimrc)
let macvim_hig_shift_movement = 1