1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00

Merge branch 'dev' into sh-install-guard

This commit is contained in:
Marek Kubica 2017-01-22 11:08:19 +01:00 committed by GitHub
commit e49d6698de
14 changed files with 238 additions and 13 deletions

View File

@ -6,9 +6,13 @@
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](doc/SpaceVim.txt) [![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](doc/SpaceVim.txt)
[![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](https://jq.qq.com/?_wv=1027&k=43DB6SG) [![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](https://jq.qq.com/?_wv=1027&k=43DB6SG)
[![Gitter](https://badges.gitter.im/SpaceVim/SpaceVim.svg)](https://gitter.im/SpaceVim/SpaceVim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Gitter](https://badges.gitter.im/SpaceVim/SpaceVim.svg)](https://gitter.im/SpaceVim/SpaceVim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Twitter](https://img.shields.io/badge/Twitter-SpaceVim-blue.svg)](https://twitter.com/SpaceVim)
[![Facebook](https://img.shields.io/badge/FaceBook-SpaceVim-blue.svg)](https://www.facebook.com/SpaceVim) [![Facebook](https://img.shields.io/badge/FaceBook-SpaceVim-blue.svg)](https://www.facebook.com/SpaceVim)
[![GitHub watchers](https://img.shields.io/github/watchers/SpaceVim/SpaceVim.svg?style=social&label=Watch)](https://github.com/SpaceVim/SpaceVim)
[![GitHub stars](https://img.shields.io/github/stars/SpaceVim/SpaceVim.svg?style=social&label=Star)](https://github.com/SpaceVim/SpaceVim)
[![GitHub forks](https://img.shields.io/github/forks/SpaceVim/SpaceVim.svg?style=social&label=Fork)](https://github.com/SpaceVim/SpaceVim)
[![Twitter Follow](https://img.shields.io/twitter/follow/SpaceVim.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/SpaceVim)
![2017-01-07_1363x723](https://cloud.githubusercontent.com/assets/13142418/21739011/6c38c14e-d4ca-11e6-8f3e-2c21dfc489c0.png) ![2017-01-07_1363x723](https://cloud.githubusercontent.com/assets/13142418/21739011/6c38c14e-d4ca-11e6-8f3e-2c21dfc489c0.png)
[SpaceVim](https://github.com/SpaceVim/SpaceVim) is a Modular configuration, a bundle of custom settings and plugins for Vim, [SpaceVim](https://github.com/SpaceVim/SpaceVim) is a Modular configuration, a bundle of custom settings and plugins for Vim,
@ -151,7 +155,10 @@ unite work flow leader can only be used in normal mode. unite leader need unite
#### Unite centric work-flow #### Unite centric work-flow
- List all the plugins has been installed, fuzzy find what you want, - List all the plugins has been installed, fuzzy find what you want,
default action is open the github website of current plugin. default key is `<leader>lp` default action is open the github website of current plugin. default key is `<leader>lp`
![2016-12-29-22 31 27](https://cloud.githubusercontent.com/assets/13142418/21545996/c48d7728-ce16-11e6-8e30-0c72139f642f.png)
[layer name] [plugin name] [load type] [plugin options]
![2017-01-21_1358x725](https://cloud.githubusercontent.com/assets/13142418/22175019/ce42d902-e027-11e6-89cd-4f44f70a10cd.png)
- List all the mappings and description: `f<space>` - List all the mappings and description: `f<space>`
![2016-12-29-22 35 29](https://cloud.githubusercontent.com/assets/13142418/21546066/4896c5e2-ce17-11e6-8246-945b924df9aa.png) ![2016-12-29-22 35 29](https://cloud.githubusercontent.com/assets/13142418/21546066/4896c5e2-ce17-11e6-8246-945b924df9aa.png)

167
README_zh_cn.md Normal file
View File

@ -0,0 +1,167 @@
<p align="center"><img src="logo.jpg" alt="SpaceVim"/></p>
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
![Version 0.1.0-dev](https://img.shields.io/badge/version-0.1.0--dev-yellow.svg?style=flat-square)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](doc/SpaceVim.txt)
[![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](https://jq.qq.com/?_wv=1027&k=43DB6SG)
[![Gitter](https://badges.gitter.im/SpaceVim/SpaceVim.svg)](https://gitter.im/SpaceVim/SpaceVim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Facebook](https://img.shields.io/badge/FaceBook-SpaceVim-blue.svg)](https://www.facebook.com/SpaceVim)
[![GitHub watchers](https://img.shields.io/github/watchers/SpaceVim/SpaceVim.svg?style=social&label=Watch)](https://github.com/SpaceVim/SpaceVim)
[![GitHub stars](https://img.shields.io/github/stars/SpaceVim/SpaceVim.svg?style=social&label=Star)](https://github.com/SpaceVim/SpaceVim)
[![GitHub forks](https://img.shields.io/github/forks/SpaceVim/SpaceVim.svg?style=social&label=Fork)](https://github.com/SpaceVim/SpaceVim)
[![Twitter Follow](https://img.shields.io/twitter/follow/SpaceVim.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/SpaceVim)
![2017-01-07_1363x723](https://cloud.githubusercontent.com/assets/13142418/21739011/6c38c14e-d4ca-11e6-8f3e-2c21dfc489c0.png)
项 目 主 页: [spacevim.org](https://spacevim.org)
Github 地址 : [SpaceVim/SpaceVim](https://github.com/SpaceVim/SpaceVim), 欢迎Star或fork感谢支持! 使用过程中遇到问题在github提交issue将更容易被关注和修复。我们也欢迎喜欢vim的用户加入我们的QQ群一起讨论vim相关的技巧[点击加入Vim/SpaceVim用户群](https://jq.qq.com/?_wv=1027&k=43zWPlT)。
SpaceVim 是一个模块化配置集合包含针对各种语言开发的插件和相应的优化配置。目前支持多种语言的自动补全、语法检测、代码格式化而且启动速度飞快。SpaceVim的另一核心理念就是按序延迟加载目前90%的插件都是滞后加载。SpaceVim模块化的思想来源于 spacemacs的layer模块将各种功能包装好封装成一个layer用户根据自己的需要载入相应的layer实现自定义SpaceVim。
SpaceVim对于新手有着非常友好的界面界面格局和大多数IDE也比较类似。不过为了更好的体验SpaceVim建议对于vim需要有一定的了解如果有一定的英语基础建议阅读这篇关于vim的教程 vim-galore.
### 安装
#### Linux 或 Mac 下 SpaceVim的安装非常简单只需要执行以下命令即可
```sh
curl -sLf https://spacevim.org/install.sh | bash
```
想要获取更多的自定义的安装方式,请参考:
```sh
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
```
在初次使用SpaceVim的时候当你打开vim时SpaceVim会下载需要的插件请等待下载过程完成如果有失败的可以手动执行
```viml
:call dein#install()
```
SpaceVim是一种模块化配置可以运行在vim或者neovim上关于vim以及neovim的安装请参考以下链接
[安装neovim](https://github.com/neovim/neovim/wiki/Installing-Neovim)
[从源码编译vim](https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source)
#### windows系统下的安装步骤
Windows 下 vim 用户只需要将本仓库克隆到用户 HOME 目录下的 vimfiles 即可,打开 CMD 默认的目录默认即为 HOME 目录,只需要执行如下命令即可:
```sh
git clone https://github.com/SpaceVim/SpaceVim.git vimfiles
```
Windows 下 neovim 用户 需要将本仓库克隆到用户 HOME 目录下的 AppData\Local\nvim想要获取跟多关于 neovim 安装相关的知识,可以访问 neovim 的 wiki wiki 写的非常详细。打开 CMD 初始目录默认一般即为 HOME 目录,只需要执行如下命令即可:
```sh
git clone https://github.com/SpaceVim/SpaceVim.git AppData\Local\nvim
```
### 特性
以neovim为主的新特性实现
模块化设置
依赖 dein.vim 的延迟加载90%插件延迟加载,启动速度极快
高效,轻量级
Unite为主的工作平台
优雅的界面
针对不同语言开发的优化
可扩展的补全引擎vim下为neocomplete neovim 下为 deoplete
细致的tags管理
轻量级状态栏
优雅的主题
### 文件结构
- [config](./config)/ - Configuration
- [plugins](./config/plugins)/ - Plugin configurations
- [mappings.vim](./config/mappings.vim) - Key mappings
- [autocmds.vim](./config/autocmds.vim) - autocmd group
- [general.vim](./config/general.vim) - General configuration
- [init.vim](./config/init.vim) - `runtimepath` initialization
- [neovim.vim](./config/neovim.vim) - Neovim specific setup
- [plugins.vim](./config/plugins.vim) - Plugin bundles
- [commands.vim](./config/commands.vim) - Commands
- [functions.vim](./config/functions.vim) - Functions
- [main.vim](./config/main.vim) - Main config
- [ftplugin](./ftplugin)/ - Language specific custom settings
- [snippets](../../snippets)/ - Code snippets
- [filetype.vim](./filetype.vim) - Custom filetype detection
- [init.vim](./init.vim) - Sources `config/main.vim`
- [vimrc](./vimrc) - Sources `config/main.vim`
### 模块化设置
1. SpaceVim 将从 ~/.local.vim 和当前目录的 .local.vim 载入用户配置,(该方式将被舍弃).
2. SpaceVim 将从 ~/.SpaceVim.d/init.vim 和当前目录的 ./SpaceVim.d/init.vim 载入配置,并且更新 rtp用户可以在 ~/.SpaceVim.d/ 和 .SpaceVim.d/ 这两个文件夹下编辑自己的脚本,和 SpaceVim 的配置文件。
示例:
```viml
" here are some basic customizations, please refer to the top of the vimrc file for all possible options
let g:spacevim_default_indent = 3
let g:spacevim_max_column = 80
let g:spacevim_colorscheme = 'my_awesome_colorscheme'
let g:spacevim_plugin_manager = 'dein' " neobundle or dein or vim-plug
" change the default directory where all miscellaneous persistent files go
let g:spacevim_cache_dir = "/some/place/else"
" by default, language specific plugins are not loaded. this can be changed with the following:
let g:spacevim_plugin_groups_exclude = ['ruby', 'python']
" if there are groups you want always loaded, you can use this:
let g:spacevim_plugin_groups_include = ['go']
" alternatively, you can set this variable to load exactly what you want
let g:spacevim_plugin_groups = ['core', 'web']
" recommend to use layer function, all the layers's name can be find in `:h SpaceVim-layers`
call SpaceVim#layers#load('layer_name')
" if there is a particular plugin you don't like, you can define this variable to disable them entirely
let g:spacevim_disabled_plugins=['vim-foo', 'vim-bar']
" if you want to add some custom plugins, use this options.
let g:spacevim_custom_plugins = [
\ ['plasticboy/vim-markdown', 'on_ft' : 'markdown'],
\ ['wsdjeg/GitHub.vim'],
\ ]
" anything defined here are simply overrides
set backgroud=light
set nu
" but some options need to use spacevim's option, such as:
let g:spacevim_guifont = 'DejaVu\ Sans\ Mono\ for\ Powerline\ 11'
```
#### Unite 为主的工作流
1. 列出所有插件并且可以根据输入的字符模糊匹配回车将打开对应插件的github网站 这非常便于临时去github上面找文档默认的启动快捷键是 `<leader>lp`
[layer name] [plugin name] [load type] [plugin options]
![2017-01-21_1358x725](https://cloud.githubusercontent.com/assets/13142418/22175019/ce42d902-e027-11e6-89cd-4f44f70a10cd.png)
2. 列出所有按键映射以及描述,可以通过输入模糊搜索对应的快捷键,回车即可执行,默认启动该功能的快捷键是: `f<space>`
![2016-12-29-22 35 29](https://cloud.githubusercontent.com/assets/13142418/21546066/4896c5e2-ce17-11e6-8246-945b924df9aa.png)
3. 通过 Unite 列出自己在 github 上面所有的 star 的仓库名称以及描述,模糊搜索,回车通过浏览器打开相应的网站,默认的快捷键是 `<leader>ls`
![2016-12-29-22 38 52](https://cloud.githubusercontent.com/assets/13142418/21546148/c6836618-ce17-11e6-82a9-81e90017dbf1.png)
#### 友好的交互界面
1. 语法树 + 文件管理 + 语法检查
![2017-01-03-21 26 03](https://cloud.githubusercontent.com/assets/13142418/21609104/74567ce4-d1fb-11e6-9495-16aa5ad2e42d.png)
#### 已支持的开发语言
- java
- viml
- rust
- php
- c/c++
- js
- python
- php
- lua
- javascript

View File

@ -10,6 +10,7 @@ function! SpaceVim#autocmds#init() abort
autocmd FileType jsp call JspFileTypeInit() autocmd FileType jsp call JspFileTypeInit()
autocmd FileType html,css,jsp EmmetInstall autocmd FileType html,css,jsp EmmetInstall
autocmd FileType java call JavaFileTypeInit() autocmd FileType java call JavaFileTypeInit()
autocmd BufRead,BufNewFile *.pp setfiletype puppet
autocmd BufEnter,WinEnter,InsertLeave * set cursorline autocmd BufEnter,WinEnter,InsertLeave * set cursorline
autocmd BufLeave,WinLeave,InsertEnter * set nocursorline autocmd BufLeave,WinLeave,InsertEnter * set nocursorline
autocmd BufReadPost * autocmd BufReadPost *

View File

@ -94,6 +94,7 @@ function! SpaceVim#default#SetOptions() abort
set hidden set hidden
set ttimeout set ttimeout
set ttimeoutlen=50 set ttimeoutlen=50
set background=dark
endfunction endfunction
function! SpaceVim#default#SetPlugins() abort function! SpaceVim#default#SetPlugins() abort

View File

@ -1,5 +1,5 @@
function! SpaceVim#layers#chat#plugins() abort function! SpaceVim#layers#chat#plugins() abort
return [ return [
\ ['Shougo/denite.nvim',{ 'merged' : 0, 'loadconf' : 1}], \ ['vim-chat/vim-chat',{ 'merged' : 0, 'loadconf' : 1}],
\ ] \ ]
endfunction endfunction

View File

@ -1,5 +1,5 @@
function! SpaceVim#layers#edit#plugins() abort function! SpaceVim#layers#edit#plugins() abort
return [ let plugins = [
\ ['tpope/vim-surround'], \ ['tpope/vim-surround'],
\ ['terryma/vim-multiple-cursors'], \ ['terryma/vim-multiple-cursors'],
\ ['scrooloose/nerdcommenter'], \ ['scrooloose/nerdcommenter'],
@ -8,8 +8,11 @@ function! SpaceVim#layers#edit#plugins() abort
\ ['easymotion/vim-easymotion',{'on_map' : '<Plug>(easymotion-prefix)'}], \ ['easymotion/vim-easymotion',{'on_map' : '<Plug>(easymotion-prefix)'}],
\ ['editorconfig/editorconfig-vim', { 'on_cmd' : 'EditorConfigReload'}], \ ['editorconfig/editorconfig-vim', { 'on_cmd' : 'EditorConfigReload'}],
\ ['floobits/floobits-neovim', { 'on_cmd' : ['FlooJoinWorkspace','FlooShareDirPublic','FlooShareDirPrivate']}], \ ['floobits/floobits-neovim', { 'on_cmd' : ['FlooJoinWorkspace','FlooShareDirPublic','FlooShareDirPrivate']}],
\ ['lilydjwg/fcitx.vim', { 'on_i' : 1}],
\ ] \ ]
if executable('fcitx')
call add(plugins,['lilydjwg/fcitx.vim', { 'on_i' : 1}])
endif
return plugins
endfunction endfunction
function! SpaceVim#layers#edit#config() abort function! SpaceVim#layers#edit#config() abort

View File

@ -11,13 +11,9 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}], \ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}],
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}], \ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
\ ['Valloric/MatchTagAlways', { 'on_ft' : ['html' , 'xhtml' , 'xml' , 'jinja']}], \ ['Valloric/MatchTagAlways', { 'on_ft' : ['html' , 'xhtml' , 'xml' , 'jinja']}],
\ ['pangloss/vim-javascript', { 'on_ft' : ['javascript']}],
\ ['maksimr/vim-jsbeautify', { 'on_ft' : ['javascript']}],
\ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}], \ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}],
\ ['kchmck/vim-coffee-script', { 'on_ft' : ['coffee']}], \ ['kchmck/vim-coffee-script', { 'on_ft' : ['coffee']}],
\ ['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}],
\ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}], \ ['leshill/vim-json', { 'on_ft' : ['javascript','json']}],
\ ['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}],
\ ['syngan/vim-vimlint', { 'on_ft' : 'vim'}], \ ['syngan/vim-vimlint', { 'on_ft' : 'vim'}],
\ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}], \ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}],
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}], \ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
@ -28,6 +24,7 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}], \ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
\ ['lervag/vimtex', { 'on_ft' : 'tex'}], \ ['lervag/vimtex', { 'on_ft' : 'tex'}],
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}], \ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
\ ['voxpupuli/vim-puppet', {'on_ft' : 'puppet'}],
\ ['rust-lang/rust.vim', {'merged' : 1}], \ ['rust-lang/rust.vim', {'merged' : 1}],
\ ] \ ]
" python " python

View File

@ -0,0 +1,13 @@
function! SpaceVim#layers#lang#javascript#plugins() abort
let plugins = []
cal add(plugins,['pangloss/vim-javascript', { 'on_ft' : ['javascript']}])
if has('nvim')
call add(plugins,['carlitux/deoplete-ternjs', { 'on_ft' : ['javascript']}])
else
call add(plugins,['ternjs/tern_for_vim', { 'on_ft' : ['javascript']}])
endif
call add(plugins,['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}])
call add(plugins,['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}])
call add(plugins,['maksimr/vim-jsbeautify', { 'on_ft' : ['javascript']}])
return plugins
endfunction

View File

@ -0,0 +1,14 @@
"WolfgangMehner/lua-support
"http://lua-users.org/wiki/LuaEditorSupport
"
function! SpaceVim#layers#lang#lua#plugins() abort
let plugins = []
" Improved Lua 5.3 syntax and indentation support for Vim
call add(plugins, ['tbastos/vim-lua', {'on_ft' : 'lua'}])
call add(plugins, ['WolfgangMehner/lua-support', {'on_ft' : 'lua'}])
return plugins
endfunction
function! SpaceVim#layers#lang#lua#config() abort
endfunction

View File

@ -0,0 +1,9 @@
function! SpaceVim#layers#lang#perl#plugins() abort
let plugins = []
call add(plugins, ['WolfgangMehner/perl-support', {'on_ft' : 'perl'}])
return plugins
endfunction
function! SpaceVim#layers#lang#perl#config() abort
endfunction

View File

@ -11,6 +11,7 @@ function! SpaceVim#plugins#load() abort
endfunction endfunction
function! s:load_plugins() abort function! s:load_plugins() abort
for group in g:spacevim_plugin_groups for group in g:spacevim_plugin_groups
let g:spacevim_plugin_layer = group
for plugin in s:getLayerPlugins(group) for plugin in s:getLayerPlugins(group)
if len(plugin) == 2 if len(plugin) == 2
call zvim#plug#add(plugin[0], plugin[1]) call zvim#plug#add(plugin[0], plugin[1])
@ -26,6 +27,9 @@ function! s:load_plugins() abort
endfor endfor
call s:loadLayerConfig(group) call s:loadLayerConfig(group)
endfor endfor
if exists('g:spacevim_plugin_layer')
unlet g:spacevim_plugin_layer
endif
for plugin in g:spacevim_custom_plugins for plugin in g:spacevim_custom_plugins
if len(plugin) == 2 if len(plugin) == 2
call zvim#plug#add(plugin[0], plugin[1]) call zvim#plug#add(plugin[0], plugin[1])

View File

@ -59,7 +59,7 @@ function! s:install_manager()
elseif g:spacevim_plugin_manager == 'vim-plug' elseif g:spacevim_plugin_manager == 'vim-plug'
"auto install vim-plug "auto install vim-plug
if filereadable(expand('~/.cache/vim-plug/autoload/plug.vim')) if filereadable(expand('~/.cache/vim-plug/autoload/plug.vim'))
let g:spacevim_dein_installed = 1 let g:spacevim_vim_plug_installed = 1
else else
if executable('curl') if executable('curl')
exec '!curl -fLo ' exec '!curl -fLo '
@ -67,7 +67,7 @@ function! s:install_manager()
\ . ' --create-dirs ' \ . ' --create-dirs '
\ . 'https://raw.githubusercontent.com/' \ . 'https://raw.githubusercontent.com/'
\ . 'junegunn/vim-plug/master/plug.vim' \ . 'junegunn/vim-plug/master/plug.vim'
let g:spacevim_dein_installed = 1 let g:spacevim_vim_plug_installed = 1
else else
echohl WarningMsg echohl WarningMsg
echom "You need install curl!" echom "You need install curl!"
@ -158,9 +158,18 @@ function! zvim#plug#add(repo,...) abort
else else
call dein#add(a:repo) call dein#add(a:repo)
endif endif
elseif g:spacevim_plugin_manager == 'vim-plug'
if len(a:000) > 0
exec "Plug '".a:repo."', ".join(a:000,',')
else
exec "Plug '".a:repo."'"
endif
endif endif
let str = get(g:,'spacevim_plugin_layer', 'custom plugin')
let str = '[' . str . ']'
let str = str . repeat(' ', 25 - len(str))
exec 'call add(g:unite_source_menu_menus' exec 'call add(g:unite_source_menu_menus'
\ . '.AddedPlugins.command_candidates, ["[' \ . '.AddedPlugins.command_candidates, ["'. str . '['
\ . a:repo \ . a:repo
\ . (len(a:000) > 0 ? (']' \ . (len(a:000) > 0 ? (']'
\ . repeat(' ', 40 - len(a:repo)) \ . repeat(' ', 40 - len(a:repo))

View File

@ -5,7 +5,6 @@ if has('filterpipe')
set noshelltemp set noshelltemp
endif endif
if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=# '' "{{{ if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=# '' "{{{
set background=dark
try try
exec 'colorscheme '. g:spacevim_colorscheme exec 'colorscheme '. g:spacevim_colorscheme
catch catch

View File

@ -12,6 +12,7 @@ let g:deoplete#omni#input_patterns.java = [
\'[^. \t0-9]\::\w*', \'[^. \t0-9]\::\w*',
\] \]
let g:deoplete#omni#input_patterns.jsp = ['[^. \t0-9]\.\w*'] let g:deoplete#omni#input_patterns.jsp = ['[^. \t0-9]\.\w*']
let g:deoplete#omni#input_patterns.javascript = ['[^. \t0-9]\.\w*']
let g:deoplete#omni#input_patterns.php = '\h\w*\|[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' let g:deoplete#omni#input_patterns.php = '\h\w*\|[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {}) let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {})
let g:deoplete#omni_patterns.php = '->\|::' let g:deoplete#omni_patterns.php = '->\|::'