-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
140 lines (123 loc) · 3.5 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
" Start vundle setup
source $VIMRUNTIME/mswin.vim
set nocompatible
filetype off " required!
" Vundle pre-req
"
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" Snippets-related bundles
Plugin 'tomtom/tlib_vim'
Plugin 'MarcWeber/ultisnips'
Plugin 'honza/vim-snippets'
let g:UltiSnips = {}
let g:UltiSnips.ExpandTrigger = "<C-g>"
let g:UltiSnips.ListSnippets = "<C-h>"
let g:UltiSnips.JumpForwardTrigger = "<C-d>"
let g:UltiSnips.JumpBackwardTrigger = "<C-f>"
let g:UltiSnips.UltiSnips_ft_filter = {
\ 'default' : {'filetypes': ['all'] },
\ 'all' : {'filetypes': ['all', 'FILETYPE'], 'dir-regex': '.vim/bundle' },
\ 'php' : {'filetypes': ['php', 'html', 'javascript'], 'dir-regex': '.vim/bundle' },
\ 'html' : {'filetypes': ['xhtml', "html", "javascript", "_"], 'dir-regex': '.vim/bundle' },
\ 'xhtml' : {'filetypes': ["xhtml", "html", "javascript", "_"], 'dir-regex': '.vim/bundle' }
\ }
let g:UltiSnips.snipmate_ft_filter = {
\ 'default' : {'filetypes': ["FILETYPE", "_"] },
\ 'php' : {'filetypes': ['php', 'html', 'javascript', '_'], 'dir-regex': '.vim/bundle' },
\ 'html' : {'filetypes': ['xhtml', "html", "javascript", "_"], 'dir-regex': '.vim/bundle' },
\ 'xhtml' : {'filetypes': ["xhtml", "html", "javascript", "_"], 'dir-regex': '.vim/bundle' }
\ }
" General autocompletion bundles
Plugin 'ervandew/supertab'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
imap <C-z> <C-e>
Plugin 'closetag.vim'
imap <C-]> <C-_>
Plugin 'kien/ctrlp.vim'
Plugin 'camelcasemotion'
Plugin 'tpope/vim-surround'
Plugin 'matchit.zip'
"Plugin 'kshenoy/vim-signature'
nnoremap m4 <Nop>
nnoremap m6 <Nop>
Plugin 'bling/vim-airline'
Plugin 'bling/vim-bufferline'
let g:airline_powerline_fonts = 0
let g:airline_left_sep='>'
let g:airline_right_sep='<'
set laststatus=2
set noshowmode
Plugin 'bronson/vim-trailing-whitespace'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'ChrisYip/Better-CSS-Syntax-for-Vim'
Plugin 'skammer/vim-css-color'
Plugin 'flazz/vim-colorschemes'
Plugin 'vim-pandoc/vim-pandoc'
" Language-specific
Plugin 'scrooloose/syntastic'
Plugin 'tpope/vim-bundler'
Plugin 'vim-ruby/vim-ruby'
Plugin 'tpope/vim-rails'
Plugin 'saltstack/salt-vim'
Plugin 'derekwyatt/vim-scala'
Plugin 'xsbeats/vim-blade'
"Plugin 'jelera/vim-javascript-syntax'
Plugin 'moll/vim-node'
Plugin 'wookiehangover/jshint.vim'
let JSHintUpdateWriteOnly=1
Plugin 'maksimr/vim-jsbeautify'
Plugin 'einars/js-beautify'
map <c-f> :call JsBeautify()<cr>
call vundle#end()
filetype on
filetype indent on
filetype plugin on
" Move between buffers and panes
nmap <up> <C-W>k
nmap <down> <C-W>j
nmap <S-Left> <C-W>h
nmap <S-Right> <C-W>l
nmap <left> :bp!<CR>
nmap <right> :bn!<CR>
nnoremap H <C-w>w
nnoremap L <C-w>W
" Indentation
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent
set expandtab
set smarttab
" Annoyances
set noerrorbells
set number
set ruler
set nobackup
set noswapfile
"set autochdir
set foldmethod=indent
autocmd BufWinEnter * normal zR
" Sane searching and search highlights
set incsearch
set hlsearch
set showmatch
map - :nohls<CR>
set ignorecase
set smartcase
" Fold details
set foldminlines=3
" Diff stuff
set diffopt=filler,iwhite,vertical
" THIS IS AWESOME
nnoremap <Space> :
" Experimental / specific
imap <C-l> <Space>=><Space>
omap ri ggVG=
set guifont=DejaVu\ Sans\ Mono\ 16
"set lines=999
"set columns=999
colorscheme desert
autocmd FileType php setlocal shiftwidth=4 tabstop=4
"au FileType javascript call JavaScriptFold()