-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vim-bundles
More file actions
176 lines (138 loc) · 3.99 KB
/
Copy path.vim-bundles
File metadata and controls
176 lines (138 loc) · 3.99 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
"" Vundle plugin manager
"" Launch vim and run :PluginInstall to install additional stuff
"" http://www.erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/
let has_vundle=1
if !filereadable($HOME."/.vim/bundle/vundle/README.md")
echo 'Installing Vundle...'
echo ''
silent !mkdir -p $HOME/.vim/bundle
silent !git clone https://github.com/gmarik/vundle $HOME/.vim/bundle/vundle
let has_vundle=0
endif
"" Initialize Vundle
filetype off
set term=xterm
set t_Co=256
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
set rtp+=$HOME/.vim/bundle/vundle/
call vundle#rc()
"" Vundle can manage Vundle
Plugin 'gmarik/vundle'
"" precision colorscheme
Plugin 'sjl/badwolf'
Plugin 'altercation/vim-colors-solarized'
Plugin 'trevorrjohn/vim-obsidian'
Plugin 'chriskempson/tomorrow-theme'
Plugin 'tomasr/molokai'
" font
colorscheme molokai
set background = "dark"
" Theme stuff
nnoremap <leader>1 :colorscheme obsidian<cr>
nnoremap <leader>2 :colorscheme tomorrow-night-bright<cr>
nnoremap <leader>3 :colorscheme molokai<cr>
nnoremap <leader>4 :colorscheme badwolf<cr>
" badwolf settings
let g:badwolf_darkgutter = 1
let g:badwolf_tabline = 2
let g:badwolf_css_props_highlight = 1
let g:badwolf_html_link_underline = 1
"" Easy motions
Plugin 'Lokaltog/vim-easymotion'
let g:EasyMotion_do_mapping = 0 " Disable default mappings
map / <Plug>(easymotion-sn)
omap / <Plug>(easymotion-tn)
map n <Plug>(easymotion-next)
map N <Plug>(easymotion-prev)
" get a quick find
nmap s <Plug>(easymotion-s2)
" Turn on case insensitive feature
let g:EasyMotion_smartcase = 1
" JK motions: Line motions
map <Leader>j <Plug>(easymotion-j)
map <Leader>k <Plug>(easymotion-k)
"" Edit files using sudo/su (using sudoedit)
Plugin 'chrisbra/SudoEdit.vim'
"" Super easy commenting, toggle comments etc
Plugin 'scrooloose/nerdcommenter'
"" Filesystem navigation
Plugin 'scrooloose/nerdtree'
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
"" Awesome syntax and errors highlighter
Plugin 'scrooloose/syntastic'
" set different checkers
let g:syntastic_javascript_checkers = ['']
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
"" Simpler searching (if you know file name)
Plugin 'kien/ctrlp.vim'
" CtrlP settings
let g:ctrlp_map = '<leader>t'
let g:ctrlp_cmd = 'CtrlP'
"" HTML Fast Writing
Plugin 'mattn/emmet-vim'
"" Autoreloading
Plugin 'djoshea/vim-autoread'
"" UI Additions
Plugin 'bling/vim-airline'
let g:airline#extensions#tabline#enabled =1
let g:airline_powerline_fonts=1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols - use bn and bp for movement
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
set laststatus=2
"" Autoclose (, etc
Plugin 'Townk/vim-autoclose'
"" Surround (s key)
Plugin 'tpope/vim-surround'
"" Snippets
Plugin 'honza/vim-snippets'
"" Syntax highlight
"" Markdown Highlighting
Plugin 'plasticboy/vim-markdown'
let g:vim_markdown_folding_disabled = 1
"" Quick commenting
Plugin 'tomtom/tcomment_vim'
map <leader> <c-_><c-_>
"" SCSS
Plugin 'cakebaker/scss-syntax.vim'
"" Ruby
Plugin 'vim-ruby/vim-ruby'
Plugin 'tpope/vim-haml'
"" JavaScript
Plugin 'pangloss/vim-javascript'
Plugin 'kchmck/vim-coffee-script'
"" ES6/JSX
Plugin 'mxw/vim-jsx'
"" Jade
Plugin 'digitaltoad/vim-jade'
"" Slimbars
Plugin 'gaogao1030/vim-slimbars'
"" Installing plguins the first time
if has_vundle == 0
echo 'Installing Bundles, please ignore key map error messages'
echo ''
:BundleInstall
endif
"" required!
filetype plugin indent on