2017-01-02 10:38:23 +08:00
|
|
|
""
|
|
|
|
" @section Introduction, intro
|
2017-02-10 00:02:00 +08:00
|
|
|
" @stylized spacevim
|
2017-01-10 21:00:14 +08:00
|
|
|
" @library
|
2017-01-29 22:55:09 +08:00
|
|
|
" @order intro version dicts functions exceptions layers faq
|
2017-01-11 15:40:19 +08:00
|
|
|
" SpaceVim is a Modular configuration, a bundle of custom settings
|
|
|
|
" and plugins, for Vim. It got inspired by spacemacs.
|
2017-01-27 21:49:05 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
""
|
|
|
|
" @section CONFIGURATION, config
|
|
|
|
" SpaceVim use `~/.SpaceVim.d/init.vim` as it's default global config file.
|
|
|
|
" you can set all the SpaceVim options and layers in it. `~/.SpaceVim.d/` will
|
|
|
|
" also be added to runtimepath, so you can write your own script in it.
|
|
|
|
" SpaceVim also support local config of each project. It should be
|
|
|
|
" `.SpaceVim.d/init.vim` in the root directory of your project. and
|
|
|
|
" `.SpaceVim.d/` will also be added to runtimepath.
|
2017-01-02 10:38:23 +08:00
|
|
|
|
2017-01-04 23:53:49 +08:00
|
|
|
""
|
|
|
|
" Version of SpaceVim , this value can not be changed.
|
2017-01-11 01:03:52 +08:00
|
|
|
scriptencoding utf-8
|
2017-01-04 23:53:49 +08:00
|
|
|
let g:spacevim_version = '0.1.0-dev'
|
|
|
|
lockvar g:spacevim_version
|
2017-01-02 10:38:23 +08:00
|
|
|
""
|
2017-01-03 00:27:11 +08:00
|
|
|
" Change the default indent of SpaceVim. default is 2.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_default_indent = 2
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_default_indent = 2
|
|
|
|
""
|
2017-01-03 00:27:11 +08:00
|
|
|
" Change the max column of SpaceVim, default is 120.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_max_column = 120
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_max_column = 120
|
2017-01-03 00:27:11 +08:00
|
|
|
""
|
2017-01-06 19:13:33 +08:00
|
|
|
" Enable true color support in terminal.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_enable_guicolors = 1
|
|
|
|
" <
|
|
|
|
let g:spacevim_enable_guicolors = 1
|
|
|
|
""
|
2017-01-03 00:27:11 +08:00
|
|
|
" Enable/Disable google suggestion for neocomplete. by default it is Disabled.
|
|
|
|
" you can enable it by:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_enable_googlesuggest = 1
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_enable_googlesuggest = 0
|
2017-01-11 23:00:28 +08:00
|
|
|
""
|
|
|
|
" Windows function leader of SpaceVim, default is `s`, set to empty to disable
|
|
|
|
" this feature, or you can set to other char.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_windows_leader = ''
|
|
|
|
" <
|
|
|
|
let g:spacevim_windows_leader = 's'
|
|
|
|
""
|
|
|
|
" Unite work flow leader of SpaceVim, default is `f`, set to empty to disable
|
|
|
|
" this feature, or you can set to other char.
|
|
|
|
let g:spacevim_unite_leader = 'f'
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_neobundle_installed = 0
|
|
|
|
let g:spacevim_dein_installed = 0
|
|
|
|
let g:spacevim_vim_plug_installed = 0
|
2017-01-03 22:56:34 +08:00
|
|
|
""
|
|
|
|
" Set the cache dir of plugins, by default, it is `~/.cache/vimfiles`.
|
|
|
|
" you can set it by:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_plugin_bundle_dir = '~/.cache/vimplugs'
|
|
|
|
" <
|
2017-02-15 20:15:14 +08:00
|
|
|
let g:spacevim_plugin_bundle_dir = $HOME. join(['', '.cache', 'vimfiles', ''], SpaceVim#api#import('file').separator)
|
2017-01-15 19:50:56 +08:00
|
|
|
""
|
|
|
|
" Disable/Enable realtime leader guide, by default it is 0.
|
|
|
|
" to enable this feature:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_realtime_leader_guide = 1
|
|
|
|
" <
|
|
|
|
let g:spacevim_realtime_leader_guide = 0
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_autocomplete_method = ''
|
|
|
|
let g:spacevim_enable_cursorcolumn = 0
|
2017-02-16 20:01:33 +08:00
|
|
|
""
|
|
|
|
" SpaceVim default checker is neomake, if you want to use syntastic, use:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_enable_neomake = 0
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_enable_neomake = 1
|
|
|
|
""
|
|
|
|
" set the guifont of Spacevim, default is empty.
|
2017-01-11 01:03:52 +08:00
|
|
|
" >
|
|
|
|
" let g:spacevim_guifont = 'DejaVu\ Sans\ Mono\ for\ Powerline\ 11'
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_guifont = ''
|
|
|
|
""
|
2017-01-25 20:04:17 +08:00
|
|
|
" Disable/Enable YouCompleteMe, by default it is disabled. To enable it:
|
2017-01-11 01:03:52 +08:00
|
|
|
" >
|
|
|
|
" let g:spacevim_enable_ycm = 1
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_enable_ycm = 0
|
2017-02-16 21:27:49 +08:00
|
|
|
""
|
|
|
|
" Set the width of value of spacevim sidebar width, and this value will be
|
2017-02-16 21:46:37 +08:00
|
|
|
" used by tagbar, vimfiler. default it is 30.
|
2017-02-16 21:27:49 +08:00
|
|
|
let g:spacevim_sidebar_width = 30
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_enable_neocomplcache = 0
|
2017-01-11 01:03:52 +08:00
|
|
|
""
|
|
|
|
" Enable cursorline
|
|
|
|
" >
|
|
|
|
" let g:spacevim_enable_cursorline = 1
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_enable_cursorline = 0
|
|
|
|
""
|
2017-01-19 20:41:06 +08:00
|
|
|
" Set the error symbol of SpaceVim's syntax maker.
|
|
|
|
" example: >
|
|
|
|
" let g:spacevim_error_symbol = '+'
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_error_symbol = '✖'
|
2017-01-19 20:41:06 +08:00
|
|
|
""
|
|
|
|
" Set the warning symbol of SpaceVim's syntax maker.
|
|
|
|
" example: >
|
|
|
|
" let g:spacevim_warning_symbol = '!'
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_warning_symbol = '⚠'
|
|
|
|
let g:spacevim_use_colorscheme = 1
|
2017-01-19 20:41:06 +08:00
|
|
|
""
|
|
|
|
" Set the help language of vim. By default it is `en`, you can change it to
|
|
|
|
" chinese.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_vim_help_language = 'chinese'
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_vim_help_language = 'en'
|
|
|
|
""
|
2017-01-30 20:36:03 +08:00
|
|
|
" Set the message language of vim. By default it is empty, and the language is
|
|
|
|
" en_US.UTF-8. example:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_language = 'en_CA.utf8'
|
|
|
|
" <
|
|
|
|
let g:spacevim_language = ''
|
|
|
|
""
|
2017-01-02 10:38:23 +08:00
|
|
|
" The colorscheme of SpaceVim, if colorscheme groups are installed.
|
|
|
|
let g:spacevim_colorscheme = 'gruvbox'
|
|
|
|
""
|
2017-01-11 15:40:19 +08:00
|
|
|
" The default colorscheme of SpaceVim. By default SpaceVim use desert, if
|
|
|
|
" colorscheme which name is the value of g:spacevim_colorscheme has not been
|
|
|
|
" installed.you can change it in custom config file.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_colorscheme_default = 'other_color'
|
|
|
|
" <
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_colorscheme_default = 'desert'
|
|
|
|
""
|
2017-01-11 15:40:19 +08:00
|
|
|
" Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
|
|
|
|
" installed.
|
2017-01-11 20:47:23 +08:00
|
|
|
" >
|
|
|
|
" let g:spacevim_simple_mode = 1
|
|
|
|
" <
|
2017-01-11 15:40:19 +08:00
|
|
|
let g:spacevim_simple_mode = 0
|
|
|
|
""
|
2017-01-02 10:38:23 +08:00
|
|
|
" The default file manager of SpaceVim.
|
|
|
|
let g:spacevim_filemanager = 'vimfiler'
|
|
|
|
""
|
|
|
|
" The default plugin manager of SpaceVim, dein, neobundle or vim-plug. by
|
|
|
|
" default it is dein.
|
|
|
|
let g:spacevim_plugin_manager = 'dein' " neobundle or dein or vim-plug
|
2017-01-06 21:42:33 +08:00
|
|
|
""
|
2017-01-07 01:18:10 +08:00
|
|
|
" Enable/Disable checkinstall on SpaceVim startup. by default is 1.
|
2017-01-06 21:42:33 +08:00
|
|
|
"
|
2017-01-07 01:18:10 +08:00
|
|
|
" To disable it: >
|
|
|
|
" let g:spacevim_checkinstall = 0
|
2017-01-06 21:42:33 +08:00
|
|
|
" <
|
2017-01-07 01:18:10 +08:00
|
|
|
let g:spacevim_checkinstall = 1
|
2017-01-08 16:27:18 +08:00
|
|
|
""
|
|
|
|
" Enable/Disable debug mode for SpaceVim, by default it is disabled.
|
|
|
|
"
|
|
|
|
" to enable it: >
|
|
|
|
" let g:spacevim_enable_debug = 1
|
|
|
|
" <
|
|
|
|
let g:spacevim_enable_debug = 0
|
2017-01-08 23:02:49 +08:00
|
|
|
""
|
|
|
|
" Set the debug level of SpaceVim, by default it is 1.
|
|
|
|
let g:spacevim_debug_level = 1
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_hiddenfileinfo = 1
|
|
|
|
let g:spacevim_plugin_groups_exclude = []
|
2017-01-11 01:03:52 +08:00
|
|
|
|
|
|
|
|
2017-01-02 10:38:23 +08:00
|
|
|
""
|
2017-01-11 23:00:28 +08:00
|
|
|
" groups of plugins should be loaded.
|
2017-01-02 10:38:23 +08:00
|
|
|
"
|
|
|
|
" example: >
|
|
|
|
" let g:spacevim_plugin_groups = ['core', 'lang']
|
|
|
|
" <
|
|
|
|
" now Space Vim support these groups:
|
|
|
|
let g:spacevim_plugin_groups = []
|
|
|
|
""
|
2017-01-05 21:16:45 +08:00
|
|
|
" Disable plugins by names.
|
|
|
|
" example: >
|
|
|
|
" let g:spacevim_disabled_plugins = ['vim-foo', 'vim-bar']
|
|
|
|
" <
|
|
|
|
let g:spacevim_disabled_plugins = []
|
|
|
|
""
|
2017-01-09 22:50:06 +08:00
|
|
|
" Add custom plugins
|
|
|
|
" >
|
|
|
|
" let g:spacevim_custom_plugins = [
|
|
|
|
" \ ['plasticboy/vim-markdown', 'on_ft' : 'markdown'],
|
|
|
|
" \ ['wsdjeg/GitHub.vim'],
|
|
|
|
" \ ]
|
|
|
|
" <
|
|
|
|
let g:spacevim_custom_plugins = []
|
|
|
|
""
|
2017-01-10 00:27:52 +08:00
|
|
|
" SpaceVim will load global config after local config if set to 1. by default
|
|
|
|
" it is 0, if you has local config, the global config will not be loaded.
|
|
|
|
" >
|
|
|
|
" let g:spacevim_force_global_config = 1
|
|
|
|
" <
|
|
|
|
let g:spacevim_force_global_config = 0
|
|
|
|
""
|
2017-01-02 10:38:23 +08:00
|
|
|
" enable/disable SpaceVim with powerline symbols.
|
|
|
|
let g:spacevim_enable_powerline_fonts = 1
|
2017-01-07 23:01:13 +08:00
|
|
|
""
|
|
|
|
" Enable/Disable lint on save feature of SpaceVim's maker.
|
|
|
|
"
|
|
|
|
" To disable lint on save:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_lint_on_save = 0
|
|
|
|
" <
|
|
|
|
let g:spacevim_lint_on_save = 1
|
2017-02-04 00:47:16 +08:00
|
|
|
""
|
|
|
|
" Enable/Disable Vimfiler in the welcome windows, this will cause vim slow on startup if
|
|
|
|
" there are too many files in current directory. you can disable it by:
|
|
|
|
" >
|
|
|
|
" let g:spacevim_enable_vimfiler_welcome = 0
|
|
|
|
" <
|
|
|
|
let g:spacevim_enable_vimfiler_welcome = 1
|
2017-01-02 10:38:23 +08:00
|
|
|
let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default']
|
|
|
|
let g:spacevim_smartcloseignoreft = ['help']
|
|
|
|
let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler']
|
|
|
|
let g:spacevim_enable_javacomplete2_py = 0
|
|
|
|
let g:spacevim_src_root = 'E:\sources\'
|
|
|
|
""
|
|
|
|
" The host file url. this option is for chinese users who can not use
|
|
|
|
" google and twitter.
|
|
|
|
let g:spacevim_hosts_url = 'https://raw.githubusercontent.com/racaljk/hosts/master/hosts'
|
|
|
|
let g:spacevim_wildignore = '*/tmp/*,*.so,*.swp,*.zip,*.class,tags,*.jpg,
|
|
|
|
\*.ttf,*.TTF,*.png,*/target/*,
|
|
|
|
\.git,.svn,.hg,.DS_Store'
|
2016-12-29 18:53:29 +08:00
|
|
|
|
2016-12-28 21:36:11 +08:00
|
|
|
function! SpaceVim#loadCustomConfig() abort
|
2017-01-10 00:27:52 +08:00
|
|
|
let custom_confs_old = SpaceVim#util#globpath(getcwd(), '.local.vim')
|
|
|
|
let custom_confs = SpaceVim#util#globpath(getcwd(), '.SpaceVim.d/init.vim')
|
|
|
|
let custom_glob_conf_old = expand('~/.local.vim')
|
|
|
|
let custom_glob_conf = expand('~/.SpaceVim.d/init.vim')
|
|
|
|
" the old value will be remove
|
|
|
|
if filereadable(custom_glob_conf_old)
|
|
|
|
exe 'source ' . custom_glob_conf_old
|
2016-12-29 19:44:21 +08:00
|
|
|
endif
|
2017-01-10 00:27:52 +08:00
|
|
|
if !empty(custom_confs_old)
|
|
|
|
exe 'source ' . custom_confs_old[0]
|
2017-01-09 21:24:09 +08:00
|
|
|
endif
|
|
|
|
|
2016-12-28 21:36:11 +08:00
|
|
|
if !empty(custom_confs)
|
2017-01-10 00:27:52 +08:00
|
|
|
if isdirectory('.SpaceVim.d')
|
|
|
|
exe 'set rtp ^=' . expand('.SpaceVim.d')
|
|
|
|
endif
|
2017-01-15 08:11:23 +08:00
|
|
|
exe 'source ' . custom_confs[0]
|
2017-01-10 00:27:52 +08:00
|
|
|
if filereadable(custom_glob_conf) && g:spacevim_force_global_config
|
|
|
|
if isdirectory(expand('~/.SpaceVim.d/'))
|
|
|
|
set runtimepath^=~/.SpaceVim.d
|
|
|
|
endif
|
2017-01-15 08:11:23 +08:00
|
|
|
exe 'source ' . custom_glob_conf
|
2017-01-10 00:27:52 +08:00
|
|
|
endif
|
|
|
|
elseif filereadable(custom_glob_conf)
|
|
|
|
if isdirectory(expand('~/.SpaceVim.d/'))
|
|
|
|
set runtimepath^=~/.SpaceVim.d
|
|
|
|
endif
|
2017-01-15 08:11:23 +08:00
|
|
|
exe 'source ' . custom_glob_conf
|
2017-01-09 21:24:09 +08:00
|
|
|
endif
|
2016-12-28 21:36:11 +08:00
|
|
|
endfunction
|
2017-01-02 12:32:26 +08:00
|
|
|
|
2016-12-28 21:36:11 +08:00
|
|
|
|
|
|
|
function! SpaceVim#end() abort
|
2017-01-11 23:00:28 +08:00
|
|
|
if !empty(g:spacevim_windows_leader)
|
|
|
|
call SpaceVim#mapping#leader#defindWindowsLeader(g:spacevim_windows_leader)
|
|
|
|
endif
|
2017-01-12 12:43:13 +08:00
|
|
|
if !empty(g:spacevim_unite_leader)
|
|
|
|
call SpaceVim#mapping#leader#defindUniteLeader(g:spacevim_unite_leader)
|
|
|
|
endif
|
2017-02-16 20:34:03 +08:00
|
|
|
call SpaceVim#mapping#leader#defindglobalMappings()
|
2017-01-11 20:47:23 +08:00
|
|
|
if g:spacevim_simple_mode
|
|
|
|
let g:spacevim_plugin_groups = ['core']
|
|
|
|
else
|
|
|
|
for s:group in g:spacevim_plugin_groups_exclude
|
|
|
|
let s:i = index(g:spacevim_plugin_groups, s:group)
|
|
|
|
if s:i != -1
|
|
|
|
call remove(g:spacevim_plugin_groups, s:i)
|
|
|
|
endif
|
|
|
|
endfor
|
|
|
|
if g:spacevim_vim_help_language ==# 'cn'
|
|
|
|
call add(g:spacevim_plugin_groups, 'chinese')
|
|
|
|
endif
|
|
|
|
if g:spacevim_use_colorscheme==1
|
|
|
|
call add(g:spacevim_plugin_groups, 'colorscheme')
|
2016-12-29 18:53:29 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-11 20:47:23 +08:00
|
|
|
if has('nvim')
|
|
|
|
let g:spacevim_autocomplete_method = 'deoplete'
|
|
|
|
elseif has('lua')
|
|
|
|
let g:spacevim_autocomplete_method = 'neocomplete'
|
|
|
|
else
|
|
|
|
let g:spacevim_autocomplete_method = 'neocomplcache'
|
|
|
|
endif
|
|
|
|
if g:spacevim_enable_ycm
|
|
|
|
let g:spacevim_autocomplete_method = 'ycm'
|
|
|
|
endif
|
|
|
|
if g:spacevim_enable_neocomplcache
|
|
|
|
let g:spacevim_autocomplete_method = 'neocomplcache'
|
|
|
|
endif
|
2016-12-29 18:53:29 +08:00
|
|
|
endif
|
2017-01-02 16:02:54 +08:00
|
|
|
""
|
|
|
|
" generate tags for SpaceVim
|
|
|
|
let help = fnamemodify(g:Config_Main_Home, ':p:h:h') . '/doc'
|
|
|
|
exe 'helptags ' . help
|
2017-01-11 20:47:23 +08:00
|
|
|
|
2017-02-03 19:49:18 +08:00
|
|
|
""
|
|
|
|
" set language
|
|
|
|
if !empty(g:spacevim_language)
|
|
|
|
silent exec 'lan ' . g:spacevim_language
|
|
|
|
endif
|
|
|
|
|
2017-01-07 19:49:29 +08:00
|
|
|
call SpaceVim#plugins#load()
|
2016-12-29 18:53:29 +08:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
|
|
function! SpaceVim#default() abort
|
2017-01-05 22:18:55 +08:00
|
|
|
call SpaceVim#default#SetOptions()
|
2017-01-11 20:47:23 +08:00
|
|
|
call SpaceVim#default#SetPlugins()
|
2017-01-07 01:09:56 +08:00
|
|
|
call SpaceVim#default#SetMappings()
|
2016-12-29 18:53:29 +08:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! SpaceVim#defindFuncs() abort
|
2016-12-28 21:36:11 +08:00
|
|
|
endfunction
|
2016-12-31 00:34:31 +08:00
|
|
|
|
2017-01-07 10:50:28 +08:00
|
|
|
|
|
|
|
function! SpaceVim#welcome() abort
|
2017-02-02 00:55:16 +08:00
|
|
|
if exists(':VimFiler') == 2 && exists(':Startify') == 2
|
2017-02-04 00:47:16 +08:00
|
|
|
if g:spacevim_enable_vimfiler_welcome
|
|
|
|
VimFiler
|
|
|
|
endif
|
2017-02-02 00:55:16 +08:00
|
|
|
wincmd p
|
|
|
|
Startify
|
|
|
|
endif
|
2017-01-07 10:50:28 +08:00
|
|
|
endfunction
|
2017-01-25 20:04:17 +08:00
|
|
|
|
|
|
|
""
|
|
|
|
" @section FAQ, faq
|
2017-01-25 20:44:05 +08:00
|
|
|
" 1. How to enable YouCompleteMe? (I do not recommend to use YouCompleteMe, it
|
|
|
|
" is too big as a vim plugin, BTW I do not like using submodule in vim plugin,
|
|
|
|
" it is hard to manager by vim plugin manager.)
|
|
|
|
"
|
|
|
|
" >
|
|
|
|
" step 1: add `let g:spacevim_enable_ycm = 1` to custom_config, by default it
|
|
|
|
" should be `~/.SpaceVim.d/init.vim`.
|
|
|
|
"
|
|
|
|
" step 2: Get into the directory of YouCompleteMe's author, by default it
|
|
|
|
" should be `~/.cache/vimfiles/repos/github.com/Valloric/`, If you find the
|
|
|
|
" directory `YouCompleteMe` in it, just get into it, otherwise clone
|
|
|
|
" YouCompleteMe repo by
|
|
|
|
" `git clone https://github.com/Valloric/YouCompleteMe.git`, after cloning,
|
|
|
|
" get into it, run `git submodule update --init --recursive`.
|
|
|
|
"
|
|
|
|
" step 3: compile YouCompleteMe with the feature you want. if you just want
|
|
|
|
" support c family, you need run `./install.py --clang-completer`.
|
|
|
|
" <
|
2017-02-08 20:27:27 +08:00
|
|
|
"
|
|
|
|
" 2. How to add custom snippt?
|
|
|
|
"
|
|
|
|
" SpaceVim use neosnippet as default snippet engine. If you want to add
|
|
|
|
" snippet for vim filetype, open a vim file, run `:NeoSnippetEdit` command, a
|
|
|
|
" buffer will be opened, you can add your custom snippet, by default this
|
|
|
|
" buffer will be save in `~/.SpaceVim.d/snippets`, if you want to use other
|
|
|
|
" directory:
|
|
|
|
" >
|
|
|
|
" let g:neosnippet#snippets_directory = '~/path/to/snip_dir'
|
|
|
|
" <
|
|
|
|
" for more info about how to write snippet, please read ||neosnippet-snippet-syntax|.
|
2017-02-08 21:01:16 +08:00
|
|
|
"
|
|
|
|
" 3. Where is `<c-f>` in cmdline-mode?
|
|
|
|
"
|
|
|
|
" `<c-f>` is the default value of |cedit| option, but in SpaceVim we use same
|
|
|
|
" as `<Right>`, so maybe you can change the `ceite` option, or use
|
|
|
|
" `<leader>+<c-f>`.
|