-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.osx_vimrc
86 lines (69 loc) · 2.03 KB
/
.osx_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
82
83
84
85
86
set clipboard=unnamed
if has("gui_running")
autocmd VimEnter * NERDTree
set guioptions-=T "don't show toolbar
set guioptions-=l " Hide the left hand toolbar
set guioptions-=r " Hide the right hand toolbar
set guioptions-=b " Hide the bottom hand toolbar
endif
set clipboard=unnamed
set number "view line numbers
set tabstop=4 "spaces per tab
set shiftwidth=4
set complete+=k
set nocompatible
set cursorline
set backspace=indent,eol,start "Allow backspacing over these chars
set noswapfile
set mouse=a "allow mouse"
set hlsearch
syntax on
"Case-insensitive search, unless mixed case is used
set ignorecase
set smartcase
"Start gVim in full screen
au GUIEnter * simalt ~x
" Plugins
""""""""""""
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'pangloss/vim-javascript'
Plugin 'rking/ag.vim'
let g:ag_working_path_mode="r"
Plugin 'kien/ctrlp.vim'
let g:ctrlp_root_markers = ['.ctrlp_root']
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](node_modules|\.git)$',
\ }
Plugin 'mustache/vim-mustache-handlebars'
au BufNewFile,BufRead *.handlebars setlocal filetype=mustache
Plugin 'scrooloose/syntastic'
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_jump = 1
let g:syntastic_check_on_open = 1
let g:syntastic_aggregate_errors = 1
let g:syntastic_javascript_checkers = ['jshint', 'eslint']
Plugin 'altercation/vim-colors-solarized'
set background=dark
set t_Co=256
let g:solarized_visibility = 'low'
Plugin 'groenewege/vim-less'
Plugin 'tpope/vim-commentary' " gc to comment line
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround'
Plugin 'christoomey/vim-tmux-navigator'
call vundle#end()
noremap <F2> :NERDTreeToggle<CR>
nmap <SPACE> <SPACE>:noh<CR>
colorscheme solarized
set listchars=tab:\ \ ,trail:_
hi SpecialKey ctermfg=red guifg=red
set list
set exrc
set secure
" Closes vim if NERDTree is the only thing left open
" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
filetype off
filetype plugin indent on