From 35673384ab679299f39d4e8891c799a23093847b Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 19 Jan 2017 20:41:06 +0800 Subject: [PATCH 1/3] Update doc --- autoload/SpaceVim.vim | 16 +++++++++++++++- doc/SpaceVim.txt | 18 +++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 73257f382..11b546555 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -87,10 +87,24 @@ let g:spacevim_enable_neocomplcache = 0 " < let g:spacevim_enable_cursorline = 0 "" -" The error symbol used by maker. +" Set the error symbol of SpaceVim's syntax maker. +" example: > +" let g:spacevim_error_symbol = '+' +" < let g:spacevim_error_symbol = '✖' +"" +" Set the warning symbol of SpaceVim's syntax maker. +" example: > +" let g:spacevim_warning_symbol = '!' +" < let g:spacevim_warning_symbol = '⚠' let g:spacevim_use_colorscheme = 1 +"" +" Set the help language of vim. By default it is `en`, you can change it to +" chinese. +" > +" let g:spacevim_vim_help_language = 'chinese' +" < let g:spacevim_vim_help_language = 'en' "" " The colorscheme of SpaceVim, if colorscheme groups are installed. diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 2824f0eee..89ecb7b3d 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -86,7 +86,23 @@ Enable cursorline < *g:spacevim_error_symbol* -The error symbol used by maker. +Set the error symbol of SpaceVim's syntax maker. example: +> + let g:spacevim_error_symbol = '+' +< + + *g:spacevim_warning_symbol* +Set the warning symbol of SpaceVim's syntax maker. example: +> + let g:spacevim_warning_symbol = '!' +< + + *g:spacevim_vim_help_language* +Set the help language of vim. By default it is `en`, you can change it to +chinese. +> + let g:spacevim_vim_help_language = 'chinese' +< *g:spacevim_colorscheme* The colorscheme of SpaceVim, if colorscheme groups are installed. From aeb61f74c908c116eae331691cd259a9f90461d2 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 19 Jan 2017 21:46:37 +0800 Subject: [PATCH 2/3] Update php layer doc --- autoload/SpaceVim.vim | 2 +- autoload/SpaceVim/autocmds.vim | 2 +- autoload/SpaceVim/layers/lang/php.vim | 13 ++++++++++--- doc/SpaceVim.txt | 20 ++++++++++++++++++++ 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 11b546555..667266c57 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -2,7 +2,7 @@ " @section Introduction, intro " @stylized Maktaba " @library -" @order intro version dicts functions exceptions layers +" @order intro version dicts functions exceptions layers layer-lang-php " SpaceVim is a Modular configuration, a bundle of custom settings " and plugins, for Vim. It got inspired by spacemacs. diff --git a/autoload/SpaceVim/autocmds.vim b/autoload/SpaceVim/autocmds.vim index cb252d0f1..38de9cfdd 100644 --- a/autoload/SpaceVim/autocmds.vim +++ b/autoload/SpaceVim/autocmds.vim @@ -36,7 +36,7 @@ function! SpaceVim#autocmds#init() abort autocmd FileType python setlocal omnifunc=pythoncomplete#Complete autocmd FileType php setlocal omnifunc=phpcomplete_extended#CompletePHP autocmd BufEnter * - \ if empty(&buftype)&&has('nvim') + \ if empty(&buftype) && has('nvim') && &filetype != 'help' \| nnoremap :call MyTagfunc() \| nnoremap :call MyTagfuncBack() \| else diff --git a/autoload/SpaceVim/layers/lang/php.vim b/autoload/SpaceVim/layers/lang/php.vim index cfed1359a..225778eb8 100644 --- a/autoload/SpaceVim/layers/lang/php.vim +++ b/autoload/SpaceVim/layers/lang/php.vim @@ -1,11 +1,18 @@ +"" +" @section Layer-lang-php " lang#php : -" this layer is for php development, and it provide auto codo completion, -" and syntax check, and jump to the definition location. +" +" this layer is for php development, and it provide auto codo completion, +" and syntax check, and jump to the definition location. " -" requirement: +" requirement: +" " PHP 5.3+ +" " PCNTL Extension +" " Msgpack 0.5.7+(for NeoVim) Extension or JSON(for Vim 7.4+) Extension +" " Composer Project " diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 89ecb7b3d..faa72d9f7 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -7,6 +7,7 @@ CONTENTS *SpaceVim-contents* 2. Configuration...........................................|SpaceVim-config| 3. Functions............................................|SpaceVim-functions| 4. Layers..................................................|SpaceVim-layers| + 5. Layer-lang-php..................................|SpaceVim-layer-lang-php| ============================================================================== INTRODUCTION *SpaceVim-intro* @@ -219,5 +220,24 @@ LAYERS *SpaceVim-layers* SpaceVim support such layers: +============================================================================== +LAYER-LANG-PHP *SpaceVim-layer-lang-php* + +lang#php : + + this layer is for php development, and it provide auto codo completion, and +syntax check, and jump to the definition location. + + requirement: + + PHP 5.3+ + + PCNTL Extension + + Msgpack 0.5.7+(for NeoVim) Extension or JSON(for Vim 7.4+) Extension + + Composer Project + + vim:tw=78:ts=8:ft=help:norl: From 3a1fda3470036d55de0f43d1471fcbe1432387cb Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 19 Jan 2017 23:49:11 +0800 Subject: [PATCH 3/3] Add lang/c layer doc --- autoload/SpaceVim.vim | 2 +- autoload/SpaceVim/layers/lang/c.vim | 2 ++ doc/SpaceVim.txt | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 667266c57..59f3a3abe 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -2,7 +2,7 @@ " @section Introduction, intro " @stylized Maktaba " @library -" @order intro version dicts functions exceptions layers layer-lang-php +" @order intro version dicts functions exceptions layers layer-lang-php layer-lang-c " SpaceVim is a Modular configuration, a bundle of custom settings " and plugins, for Vim. It got inspired by spacemacs. diff --git a/autoload/SpaceVim/layers/lang/c.vim b/autoload/SpaceVim/layers/lang/c.vim index 6fb28facd..7516781eb 100644 --- a/autoload/SpaceVim/layers/lang/c.vim +++ b/autoload/SpaceVim/layers/lang/c.vim @@ -1,3 +1,5 @@ +"" +" @section Layer-lang-c " lang#c : " " this layer provide c family language code completion. diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index faa72d9f7..66014705c 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -8,6 +8,7 @@ CONTENTS *SpaceVim-contents* 3. Functions............................................|SpaceVim-functions| 4. Layers..................................................|SpaceVim-layers| 5. Layer-lang-php..................................|SpaceVim-layer-lang-php| + 6. Layer-lang-c......................................|SpaceVim-layer-lang-c| ============================================================================== INTRODUCTION *SpaceVim-intro* @@ -239,5 +240,14 @@ syntax check, and jump to the definition location. Composer Project +============================================================================== +LAYER-LANG-C *SpaceVim-layer-lang-c* + +lang#c : + + this layer provide c family language code completion. + + requirement: clang libclang + vim:tw=78:ts=8:ft=help:norl: