forked from cspeterson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vim_plugins
121 lines (109 loc) · 4.45 KB
/
.vim_plugins
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
"###############################################3
"## Plugin stuff
"###############################################3
" Vundle Plugins Setup
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Examples:
" Plugin 'tpope/vim-fugitive'
" Plugin 'git://git.wincent.com/command-t.git'
" Plugin 'file:///home/gmarik/path/to/plugin'
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
"""""""""""""""""""""""""""""""""""""""""""
"" Install Vim plugins with Vundle here
"vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
" Install plugins here.
" They can be easily installed without entering Vim by running:
" vim +PluginInstall +qall
Plugin 'ConradIrwin/vim-bracketed-paste' " Automatic set paste when pasting. which is nice.
Plugin 'JamshedVesuna/vim-markdown-preview' " Preview markdown from vim in browser
Plugin 'Valloric/YouCompleteMe' " Code completion
Plugin 'altercation/vim-colors-solarized' " Pleasant colors
Plugin 'cspeterson/vim-convert' " Unit conversion
Plugin 'elzr/vim-json' " Better than standard javascript highlighting
Plugin 'godlygeek/tabular' " Aligns text
Plugin 'iamcco/markdown-preview.vim' " Md preview with commands MarkdownPreview and MarkdownPreviewStop
Plugin 'othree/html5.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'rodjek/vim-puppet'
Plugin 'scrooloose/nerdtree'
Plugin 'tmhedberg/SimpylFold' " smarter code folding
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-liquid'
Plugin 'tpope/vim-surround' " Easily work with surrounding objects eg parens, quotes, tags
Plugin 'vim-ruby/vim-ruby'
Plugin 'tmhedberg/matchit'
Plugin 'vim-syntastic/syntastic'
"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"" End list of plugins to install/manage
"""""""""""""""""""""""""""""""""""""""""""
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"###############################################3
"# vim-markdown-preview
"###############################################3
let vim_markdown_preview_github=1
"###############################################3
"# NerdTREE file browser
"###############################################3
map <C-f> :NERDTreeToggle<CR> " Ctrl+f toggles file pane
"###############################################3
"# vim-json
"###############################################3
" If this is left on (default), the editor only shows the quotes around keys and values
" for the active line
"let g:vim_json_syntax_conceal = 0
"###############################################3
"# Code completion
"###############################################3
" Via youCompleteMe plugin
" YCM only supports 7.4.1578+
if v:version <= 7.4.1578
let g:loaded_youcompleteme = 1
else
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
endif
"###############################################3
"# Markdown Preview
"###############################################3
:command Md MarkdownPreview
:command Mds MarkdownPreviewStop
"###############################################3
"# Theming
"###############################################3
syntax enable
let g:solarized_termcolors=256
colorscheme solarized
" Toggle dark/light colors
call togglebg#map("<F5>")
" now set it so it doesn't do that awful ugly blocky coloring behind text
" (this needs to be after the syntax line above)
hi Normal ctermbg=NONE
"###############################################3
"# Snytax
"###############################################3
"# Syntax highlighting options for Syntastic plugin
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0