2014-02-20 23:24:20 -05:00
|
|
|
"=========================="
|
2014-04-02 19:51:33 -04:00
|
|
|
" "
|
2014-02-20 23:24:20 -05:00
|
|
|
" Plugins Configuration: "
|
2014-04-02 19:51:33 -04:00
|
|
|
" "
|
|
|
|
" Maintainer: Prurigro "
|
|
|
|
" License: MIT "
|
|
|
|
" "
|
2014-02-20 23:24:20 -05:00
|
|
|
"=========================="
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"PATHOGEN BUNDLED EXTENSIONS PLUGIN: {{{
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
execute pathogen#infect('bundle/{}', 'bundle.user/{}')
|
2014-02-20 23:24:20 -05:00
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"BREEZE: {{{
|
2014-04-07 02:40:35 -04:00
|
|
|
let g:breeze_active_filetypes="*.html,*.htm,*.xhtml,*.xml,*.php,*.aspx"
|
|
|
|
let g:breeze_shade_color = "String"
|
|
|
|
"}}}
|
|
|
|
|
|
|
|
"EMMET: ZENCODING FEATURES {{{
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:user_emmet_install_global=0
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
let g:use_emmet_complete_tag=1
|
|
|
|
let g:user_emmet_mode='a'
|
|
|
|
|
2014-04-05 03:20:53 -04:00
|
|
|
autocmd FileType css,json,htm,html,php,aspx EmmetInstall
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
|
|
|
|
if filereadable("~/.vim/snippets.json")
|
|
|
|
let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.vim/snippets.json')), "\n"))
|
|
|
|
endif
|
2014-03-11 03:05:09 -04:00
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"GITGUTTER: {{{
|
2014-04-07 10:20:47 -04:00
|
|
|
let g:gitgutter_sign_added = '++'
|
|
|
|
let g:gitgutter_sign_removed = '--'
|
|
|
|
let g:gitgutter_sign_modified = '~~'
|
2014-04-07 10:04:48 -04:00
|
|
|
let g:gitgutter_sign_modified_removed = '~-'
|
|
|
|
"}}}
|
|
|
|
|
|
|
|
"GUNDO: {{{
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:gundo_right=1
|
2014-04-03 07:48:52 -04:00
|
|
|
let g:gundo_width=35
|
|
|
|
let g:gundo_preview_height=10
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
|
|
|
|
autocmd FileType gundo setlocal nocursorcolumn
|
2014-04-02 11:17:12 -04:00
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"LIGHTLINE: {{{
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:unite_force_overwrite_statusline = 0
|
|
|
|
let g:vimfiler_force_overwrite_statusline = 0
|
|
|
|
|
|
|
|
function! LLModified()
|
|
|
|
return &ft =~ 'help' ? '' : &modified ? '+' : &modifiable ? '' : '-'
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLReadonly()
|
|
|
|
return &ft !~? 'help' && &readonly ? 'RO' : ''
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLFilename()
|
|
|
|
let fname = expand('%:t')
|
|
|
|
return
|
|
|
|
\ fname == '__Tagbar__' ? g:lightline.fname :
|
|
|
|
\ fname =~ '__Gundo' ? '' :
|
|
|
|
\ &ft == 'vimfiler' ? vimfiler#get_status_string() :
|
|
|
|
\ &ft == 'unite' ? unite#get_status_string() :
|
|
|
|
\ ('' != LLReadonly() ? LLReadonly() . ' ' : '') .
|
|
|
|
\ ('' != fname ? fname : '[No Name]') .
|
|
|
|
\ ('' != LLModified() ? ' ' . LLModified() : '')
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLFugitive()
|
|
|
|
try
|
|
|
|
if expand('%:t') !~? 'Tagbar\|Gundo' && &ft !~? 'vimfiler' && exists('*fugitive#head')
|
|
|
|
let mark = '' " edit here for cool mark
|
|
|
|
let _ = fugitive#head()
|
|
|
|
return strlen(_) ? mark._ : ''
|
|
|
|
endif
|
|
|
|
catch
|
|
|
|
endtry
|
|
|
|
return ''
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLFileformat()
|
|
|
|
return winwidth(0) > 70 ? &fileformat : ''
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLFiletype()
|
|
|
|
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : ''
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLFileencoding()
|
|
|
|
return winwidth(0) > 70 ? (strlen(&fenc) ? &fenc : &enc) : ''
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! LLMode()
|
|
|
|
let fname = expand('%:t')
|
|
|
|
return fname == '__Tagbar__' ? 'Tagbar' :
|
|
|
|
\ fname == '__Gundo__' ? 'Gundo' :
|
|
|
|
\ fname == '__Gundo_Preview__' ? 'Gundo Preview' :
|
|
|
|
\ &ft == 'unite' ? 'Unite' :
|
|
|
|
\ &ft == 'vimfiler' ? 'VimFiler' :
|
|
|
|
\ winwidth(0) > 60 ? lightline#mode() : ''
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
let g:tagbar_status_func = 'TagbarStatusFunc'
|
|
|
|
function! TagbarStatusFunc(current, sort, fname, ...) abort
|
|
|
|
let g:lightline.fname = a:fname
|
|
|
|
return lightline#statusline(0)
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
augroup AutoSyntastic
|
|
|
|
autocmd!
|
|
|
|
autocmd BufWritePost * call s:syntastic()
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
function! s:syntastic()
|
|
|
|
SyntasticCheck
|
|
|
|
call lightline#update()
|
|
|
|
endfunction
|
|
|
|
|
2014-04-05 03:20:53 -04:00
|
|
|
"status bar config with and without powerline fonts (defaults to off)
|
|
|
|
if !exists("g:powerlinefonts")
|
|
|
|
let g:powerlinefonts=0
|
|
|
|
endif
|
|
|
|
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
if (g:powerlinefonts == 1)
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:lightline = {
|
|
|
|
\ 'colorscheme': 'darkcloud',
|
|
|
|
\ 'active': {
|
|
|
|
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ],
|
|
|
|
\ 'right': [ [ 'syntastic', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]
|
|
|
|
\ },
|
|
|
|
\ 'component_function': {
|
|
|
|
\ 'fugitive': 'LLFugitive',
|
|
|
|
\ 'filename': 'LLFilename',
|
|
|
|
\ 'fileformat': 'LLFileformat',
|
|
|
|
\ 'filetype': 'LLFiletype',
|
|
|
|
\ 'fileencoding': 'LLFileencoding',
|
|
|
|
\ 'mode': 'LLMode',
|
|
|
|
\ },
|
|
|
|
\ 'component_expand': {
|
|
|
|
\ 'syntastic': 'SyntasticStatuslineFlag',
|
|
|
|
\ },
|
|
|
|
\ 'component_type': {
|
|
|
|
\ 'syntastic': 'error',
|
|
|
|
\ },
|
|
|
|
\ 'separator': {'left': '', 'right': ''},
|
|
|
|
\ 'subseparator': {'left': '', 'right': ''}
|
|
|
|
\ }
|
|
|
|
else
|
|
|
|
let g:lightline = {
|
|
|
|
\ 'colorscheme': 'darkcloud',
|
|
|
|
\ 'active': {
|
|
|
|
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ],
|
|
|
|
\ 'right': [ [ 'syntastic', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]
|
|
|
|
\ },
|
|
|
|
\ 'component_function': {
|
|
|
|
\ 'fugitive': 'LLFugitive',
|
|
|
|
\ 'filename': 'LLFilename',
|
|
|
|
\ 'fileformat': 'LLFileformat',
|
|
|
|
\ 'filetype': 'LLFiletype',
|
|
|
|
\ 'fileencoding': 'LLFileencoding',
|
|
|
|
\ 'mode': 'LLMode',
|
|
|
|
\ },
|
|
|
|
\ 'component_expand': {
|
|
|
|
\ 'syntastic': 'SyntasticStatuslineFlag',
|
|
|
|
\ },
|
|
|
|
\ 'component_type': {
|
|
|
|
\ 'syntastic': 'error',
|
|
|
|
\ },
|
|
|
|
\ 'separator': {'left': '', 'right': ''},
|
|
|
|
\ 'subseparator': {'left': '|', 'right': '|'}
|
|
|
|
\ }
|
|
|
|
endif
|
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"MARKDOWN VIM MODE: {{{
|
Added a new script that can be used to update the repo if bash is
available. Updated the README. Improved the theme by adding a bunch
of syntax highlighting definitions (mostly rooted in html, though
a bunch of other languages base their colours on it), as well as
tweaking visual selection to longer invert on the block with the cursor,
and parenthesis matching to look the same at both ends. Added a plugin
that improves the theme and adds some keyboard shortcuts to markdown,
which is what the README.md files in Github are written in. I realized
that the h,j,k,l shortcuts equivalent to the ones with arrow keys I'd
added were overwriting other shortcuts with the shift combinations, so
I removed those and the ctrl-ones for consistency. The diff shortcuts
weren't intuitive or easy on the hands, so I tried something else and
I think it works much better now (check vim/keyboard.vim). An update
script has also been added to simplify updating submodules; I'm not
completely clear as to whether following this method will properly
update the submodules in certain conditions like when one is removed,
but this should add new ones and update the existing ones after pulling
from the repo.
2014-04-01 00:03:52 -04:00
|
|
|
let g:vim_markdown_folding_disabled=0
|
|
|
|
let g:vim_markdown_initial_foldlevel=2
|
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"SYNTASTIC: {{{
|
2014-04-05 03:20:53 -04:00
|
|
|
if !exists("g:autostartchecker")
|
|
|
|
let g:autostartchecker=1
|
|
|
|
endif
|
|
|
|
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
if (g:autostartchecker == 1)
|
2014-04-03 06:17:16 -04:00
|
|
|
let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]}
|
|
|
|
let g:syntastic_check_on_open=1
|
|
|
|
else
|
|
|
|
let g:syntastic_mode_map = {'mode':'passive','active_filetypes':[],'passive_filetypes':[]}
|
|
|
|
let g:syntastic_check_on_open=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
let g:syntastic_always_populate_loc_list=1
|
|
|
|
let g:syntastic_auto_loc_list=1
|
|
|
|
let g:syntastic_loc_list_height=5
|
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"VIM FILER: {{{
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:vimfiler_as_default_explorer=1
|
2014-04-03 06:17:16 -04:00
|
|
|
let g:vimfiler_safe_mode_by_default=0
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:vimfiler_enable_auto_cd=1
|
|
|
|
|
2014-04-03 06:17:16 -04:00
|
|
|
let g:vimfiler_tree_indentation=2
|
|
|
|
let g:vimfiler_explorer_columns='type:time'
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:vimfiler_tree_closed_icon='▸'
|
|
|
|
let g:vimfiler_tree_opened_icon='▾'
|
|
|
|
let g:vimfiler_file_icon='-'
|
|
|
|
let g:vimfiler_marked_file_icon='+'
|
|
|
|
|
2014-04-03 06:17:16 -04:00
|
|
|
"edit files by double clicking them, and justify the cursor on the left
|
2014-04-07 10:04:48 -04:00
|
|
|
autocmd FileType vimfiler setlocal nonumber nocursorcolumn
|
2014-04-02 11:17:12 -04:00
|
|
|
|
|
|
|
"open automatically if vim was run without any files
|
2014-04-03 06:17:16 -04:00
|
|
|
autocmd VimEnter * if !argc() | VimFiler -quit -project | endif
|
2014-04-02 11:17:12 -04:00
|
|
|
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
"load the list of file extensions and handlers if it exists
|
|
|
|
if filereadable(glob("~/.vim/filetypes.vim"))
|
|
|
|
source ~/.vim/filetypes.vim
|
|
|
|
endif
|
2014-04-02 11:17:12 -04:00
|
|
|
"}}}
|
|
|
|
|
2014-04-07 10:04:48 -04:00
|
|
|
"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: {{{
|
2014-03-11 03:05:09 -04:00
|
|
|
let g:neocomplcache_enable_at_startup=1
|
|
|
|
let g:neocomplcache_enable_smart_case=1
|
|
|
|
let g:neocomplcache_min_syntax_length=3
|
|
|
|
let g:neocomplcache_enable_insert_char_pre=1
|
|
|
|
let g:neocomplcache_enable_underbar_completion=1
|
|
|
|
let g:neocomplcache_wildcard_characters={'_': '-'}
|
2014-02-20 23:24:20 -05:00
|
|
|
|
2014-04-02 11:17:12 -04:00
|
|
|
if !exists('g:neocomplcache_omni_patterns')
|
|
|
|
let g:neocomplcache_omni_patterns = {}
|
|
|
|
endif
|
|
|
|
if !exists('g:neocomplcache_force_omni_patterns')
|
|
|
|
let g:neocomplcache_force_omni_patterns = {}
|
2014-02-20 23:24:20 -05:00
|
|
|
endif
|
|
|
|
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:neocomplcache_omni_patterns.c='[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?'
|
|
|
|
let g:neocomplcache_omni_patterns.cpp='[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
|
2014-02-20 23:24:20 -05:00
|
|
|
let g:neocomplcache_omni_patterns.xml='<[^>]*'
|
|
|
|
let g:neocomplcache_omni_patterns.html='<[^>]*'
|
|
|
|
let g:neocomplcache_omni_patterns.xhtml='<[^>]*'
|
|
|
|
let g:neocomplcache_omni_patterns.markdown='<[^>]*'
|
|
|
|
let g:neocomplcache_omni_patterns.css='^\s\+\w+\|\w+[):;]?\s\+\|[@!]'
|
|
|
|
let g:neocomplcache_omni_patterns.less='^\s\+\w+\|\w+[):;]?\s\+\|[@!]'
|
|
|
|
let g:neocomplcache_omni_patterns.javascript='[^. \t]\.\%(\h\w*\)\?'
|
2014-03-11 03:05:09 -04:00
|
|
|
let g:neocomplcache_omni_patterns.python='[^. *\t]\.\h\w*\|\h\w*::'
|
|
|
|
let g:neocomplcache_omni_patterns.ruby='[^. *\t]\.\w*\|\h\w*::'
|
2014-04-02 11:17:12 -04:00
|
|
|
let g:neocomplcache_omni_patterns.php='[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
|
2014-03-11 03:05:09 -04:00
|
|
|
let g:neocomplcache_omni_patterns.actionscript='[^. \t][.:]\h\w*'
|
|
|
|
let g:neocomplcache_omni_patterns.python3='[^. *\t]\.\h\w*\|\h\w*::'
|
|
|
|
let g:neocomplcache_omni_patterns.go='\h\w*\%.'
|
|
|
|
let g:neocomplcache_omni_patterns.perl='\h\w*->\h\w*\|\h\w*::'
|
|
|
|
let g:neocomplcache_omni_patterns.java='\%(\h\w*\|)\)\.'
|
|
|
|
let g:neocomplcache_omni_patterns.objc='\h\w\+\|\h\w*\%(\.\|->\)\h\w*'
|
|
|
|
let g:neocomplcache_omni_patterns.objj='[\[ \.]\w\+$\|:\w*$'
|
2014-02-20 23:24:20 -05:00
|
|
|
"}}}
|