-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
81 lines (64 loc) · 1.84 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
78
79
80
81
filetype off "Required for initializing Vundle
set nocompatible
" Commands are only available from VIM 7.3+
if v:version >= 703
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'L9'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'scrooloose/nerdtree'
Bundle 'mileszs/ack.vim'
Bundle 'wincent/Command-T'
Bundle 'msanders/snipmate.vim'
Bundle 'FuzzyFinder'
Bundle 'kchmck/vim-coffee-script'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-surround'
Bundle 'pangloss/vim-javascript'
Bundle 'godlygeek/tabular'
Bundle 'hallettj/jslint.vim'
Bundle 'manalang/jshint.vim'
Bundle 'scrooloose/nerdcommenter'
Bundle 'andreimaxim/vim-io'
endif
"Turn on smart indent
set smartindent
set tabstop=4 "set tab character to 4 characters
set expandtab "turn tabs into whitespace
set shiftwidth=4 "indent width for autoindent
filetype indent on "indent depends on filetype
"Turn on incremental search with ignore case (except explicit caps)
set incsearch
set smartcase
"Enable syntax highlighting and line numbers
syntax enable
set nu
"Set 256 colors and colorscheme / font
set t_Co=256
colorscheme xoria256
" Option for MacVim font
set guifont=Bitstream\ Vera\ Sans\ Mono:h14
"Show non space special chars
"set list
"Highlight line cursor is on
set cursorline
set ruler
set showmatch
" Set tab completion options
set wildmenu
set wildmode=list:longest,full
" Allow vim to write to local system clipboard on mac
set clipboard=unnamed
" Shortcut to rapidly toggle `set list`
nmap <leader>l :set list!<CR>
" Use the same symbols as TextMate for tabstops and EOLs
"set listchars=tab:▸\ ,eol:¬
" Allow to use mouse to point and click at help tags
if v:version >= 702
set mouse=a
endif
" Set GUI (MacVim) options
set guifont=Osaka-mono:h14