mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
Merge branch 'dev' into plugin_manager
This commit is contained in:
commit
831ee98d15
16
README.md
16
README.md
@ -59,6 +59,11 @@ If you are new to vim, you should learning about Vim in general, read [vim-galor
|
|||||||
[conventions](http://spacevim.org/development/).
|
[conventions](http://spacevim.org/development/).
|
||||||
- **Neovim centric:** Dark powered mode of SpaceVim
|
- **Neovim centric:** Dark powered mode of SpaceVim
|
||||||
|
|
||||||
|
This is the Unite centric work-flow:
|
||||||
|
|
||||||
|
![unite](https://cloud.githubusercontent.com/assets/13142418/23955542/26fd5348-09d5-11e7-8253-1f43991439b0.png)
|
||||||
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
### Quick start guide
|
### Quick start guide
|
||||||
@ -142,10 +147,19 @@ Try these Neovim hangouts for any questions, problems or comments.
|
|||||||
|
|
||||||
### Linux/Mac
|
### Linux/Mac
|
||||||
|
|
||||||
|
**Install SpaceVim with the command below**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -sLf https://spacevim.org/install.sh | bash
|
curl -sLf https://spacevim.org/install.sh | bash
|
||||||
```
|
```
|
||||||
with this command, SpaceVim will be installed. all the plugins will be install automatically when first time run vim/nvim. Please wait for the end of the installation process.
|
|
||||||
|
**After SpaceVim is installed, launch `vim` and SpaceVim will automatically install plugins**
|
||||||
|
|
||||||
|
Once plugins start installing, at the bottom of the vim window, you will see
|
||||||
|
`[dein] Install started: (YYYY/MM/DD HH:MM:SS)`
|
||||||
|
|
||||||
|
Please wait for all the plugins to complete installing before using vim. Once the plugin installation completes, you will see
|
||||||
|
`[dein] Done: (YYYY/MM/DD HH:MM:SS) `. At this point you can start using vim.
|
||||||
|
|
||||||
SpaceVim required Vim7.4 above or neovim, here is the installation of neovim/vim with python support:
|
SpaceVim required Vim7.4 above or neovim, here is the installation of neovim/vim with python support:
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
""
|
""
|
||||||
" Version of SpaceVim , this value can not be changed.
|
" Version of SpaceVim , this value can not be changed.
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
let g:spacevim_version = '0.2.0-dev'
|
let g:spacevim_version = '0.3.0-dev'
|
||||||
lockvar g:spacevim_version
|
lockvar g:spacevim_version
|
||||||
""
|
""
|
||||||
" Change the default indentation of SpaceVim. Default is 2.
|
" Change the default indentation of SpaceVim. Default is 2.
|
||||||
@ -128,6 +128,18 @@ let g:spacevim_error_symbol = '✖'
|
|||||||
" let g:spacevim_warning_symbol = '!'
|
" let g:spacevim_warning_symbol = '!'
|
||||||
" <
|
" <
|
||||||
let g:spacevim_warning_symbol = '⚠'
|
let g:spacevim_warning_symbol = '⚠'
|
||||||
|
""
|
||||||
|
" Set the SpaceVim cursor shape in the terminal. Set to 0 to prevent Nvim from
|
||||||
|
" changing the cursor shape. Set to 1 to enable non-blinking mode-sensitive
|
||||||
|
" cursor (this is the default). Set to 2 to enable blinking mode-sensitive
|
||||||
|
" cursor. Host terminal must support the DECSCUSR CSI escape sequence.
|
||||||
|
"
|
||||||
|
" Depending on the terminal emulator, using this option with nvim under
|
||||||
|
" tmux might require adding the following to ~/.tmux.conf:
|
||||||
|
" >
|
||||||
|
" set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
|
||||||
|
" <
|
||||||
|
let g:spacevim_terminal_cursor_shape = 2
|
||||||
let g:spacevim_use_colorscheme = 1
|
let g:spacevim_use_colorscheme = 1
|
||||||
""
|
""
|
||||||
" Set the help language of vim. Default is 'en'.
|
" Set the help language of vim. Default is 'en'.
|
||||||
@ -170,7 +182,7 @@ let g:spacevim_plugin_manager = 'dein'
|
|||||||
""
|
""
|
||||||
" Enable/Disable checkinstall on SpaceVim startup. Default is 1.
|
" Enable/Disable checkinstall on SpaceVim startup. Default is 1.
|
||||||
" >
|
" >
|
||||||
" let g:spacevim_checkinstall = 0
|
" let g:spacevim_checkinstall = 1
|
||||||
" <
|
" <
|
||||||
let g:spacevim_checkinstall = 1
|
let g:spacevim_checkinstall = 1
|
||||||
""
|
""
|
||||||
|
164
autoload/SpaceVim/api/job.vim
Normal file
164
autoload/SpaceVim/api/job.vim
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
|
||||||
|
function! SpaceVim#api#data#list#get() abort
|
||||||
|
return map({'start' : '',
|
||||||
|
\ 'stop' : '',
|
||||||
|
\ 'send' : '',
|
||||||
|
\ 'status' : '',
|
||||||
|
\ 'list' : '',
|
||||||
|
\ 'info' : ''
|
||||||
|
\ },
|
||||||
|
\ "function('s:' . v:key)"
|
||||||
|
\ )
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" make vim and neovim use same job func.
|
||||||
|
let s:jobs = {}
|
||||||
|
let s:nvim_job = has('nvim')
|
||||||
|
let s:vim_job = !has('nvim') && has('job') && has('patch-7.4.1590')
|
||||||
|
function! s:warn(...) abort
|
||||||
|
if len(a:000) == 0
|
||||||
|
echohl WarningMsg | echom 'Current version do not support job feature!' | echohl None
|
||||||
|
elseif len(a:000) == 1 && type(a:1) == type('')
|
||||||
|
echohl WarningMsg | echom a:1| echohl None
|
||||||
|
else
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
function! s:warp(argv, opts) abort
|
||||||
|
let obj = {}
|
||||||
|
let obj._argv = a:argv
|
||||||
|
let obj._opts = a:opts
|
||||||
|
|
||||||
|
function! obj._out_cb(job_id, data) abort
|
||||||
|
if has_key(self._opts, 'on_stdout')
|
||||||
|
call self._opts.on_stdout(a:job_id, [a:data], 'stdout')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! obj._err_cb(job_id, data) abort
|
||||||
|
if has_key(self._opts, 'on_stderr')
|
||||||
|
call self._opts.on_stderr(a:job_id, [a:data], 'stderr')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! obj._exit_cb(job_id, data) abort
|
||||||
|
if has_key(self._opts, 'on_exit')
|
||||||
|
call self._opts.on_exit(a:job_id, [a:data], 'exit')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
let obj = {
|
||||||
|
\ 'argv': a:argv,
|
||||||
|
\ 'opts': {
|
||||||
|
\ 'mode': 'nl',
|
||||||
|
\ 'out_cb': obj._out_cb,
|
||||||
|
\ 'err_cb': obj._err_cb,
|
||||||
|
\ 'exit_cb': obj._exit_cb,
|
||||||
|
\ }
|
||||||
|
\ }
|
||||||
|
|
||||||
|
return obj
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" start a job, and return the job_id.
|
||||||
|
function! s:start(argv, ...) abort
|
||||||
|
if s:nvim_job
|
||||||
|
if len(a:000) > 0
|
||||||
|
let job = jobstart(a:argv, a:1)
|
||||||
|
else
|
||||||
|
let job = jobstart(a:argv)
|
||||||
|
endi
|
||||||
|
let msg = ['process '. jobpid(job), ' run']
|
||||||
|
call extend(s:jobs, {job : msg})
|
||||||
|
return job
|
||||||
|
elseif s:vim_job
|
||||||
|
if len(a:000) > 0
|
||||||
|
let opts = a:1
|
||||||
|
else
|
||||||
|
let opts = {}
|
||||||
|
endif
|
||||||
|
let wrapped = s:warp(a:argv, opts)
|
||||||
|
let job = job_start(wrapped.argv, wrapped.opts)
|
||||||
|
let id = len(s:jobs) + 1
|
||||||
|
call extend(s:jobs, {id : job})
|
||||||
|
return id
|
||||||
|
else
|
||||||
|
call s:warn()
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:stop(id) abort
|
||||||
|
if s:nvim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
call jobstop(a:id)
|
||||||
|
call remove(s:jobs, a:id)
|
||||||
|
else
|
||||||
|
call s:warn('No job with such id')
|
||||||
|
endif
|
||||||
|
elseif s:vim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
call job_stop(get(s:jobs, a:id))
|
||||||
|
call remove(s:jobs, a:id)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
call s:warn()
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:send(id, data) abort
|
||||||
|
if s:nvim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
if type(a:data) == type('')
|
||||||
|
call jobsend(a:id, [a:data, ''])
|
||||||
|
else
|
||||||
|
call jobsend(a:id, a:data)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
call s:warn('No job with such id')
|
||||||
|
endif
|
||||||
|
elseif s:vim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
let job = get(s:jobs, a:id)
|
||||||
|
let chanel = job_getchannel(job)
|
||||||
|
call ch_sendraw(chanel, a:data . "\n")
|
||||||
|
else
|
||||||
|
call s:warn('No job with such id')
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
call s:warn()
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:status(id) abort
|
||||||
|
if s:nvim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
return get(s:jobs, a:id)[1]
|
||||||
|
endif
|
||||||
|
elseif s:vim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
return job_status(get(s:jobs, a:id))
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
call s:warn('No job with such id!')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:list() abort
|
||||||
|
return copy(s:jobs)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:info(id) abort
|
||||||
|
let info = {}
|
||||||
|
if s:nvim_job
|
||||||
|
let info.status = s:status(a:id)
|
||||||
|
let info.job_id = a:id
|
||||||
|
return info
|
||||||
|
elseif s:vim_job
|
||||||
|
if has_key(s:jobs, a:id)
|
||||||
|
return job_info(get(s:jobs, a:id))
|
||||||
|
else
|
||||||
|
call s:warn('No job with such id!')
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
call s:warn()
|
||||||
|
endif
|
||||||
|
endfunction
|
@ -32,5 +32,7 @@ function! SpaceVim#layers#edit#config() abort
|
|||||||
"noremap <SPACE> <Plug>(wildfire-fuel)
|
"noremap <SPACE> <Plug>(wildfire-fuel)
|
||||||
vnoremap <C-SPACE> <Plug>(wildfire-water)
|
vnoremap <C-SPACE> <Plug>(wildfire-water)
|
||||||
let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it']
|
let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it']
|
||||||
map <Leader><Leader> <Plug>(easymotion-prefix)
|
if empty(maparg('<leader><leader>', ''))
|
||||||
|
map <Leader><Leader> <Plug>(easymotion-prefix)
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -6,7 +6,7 @@ function! SpaceVim#layers#lang#plugins() abort
|
|||||||
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
|
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
|
||||||
\ ['ap/vim-css-color', { 'on_ft' : ['css','scss','sass','less','styl']}],
|
\ ['ap/vim-css-color', { 'on_ft' : ['css','scss','sass','less','styl']}],
|
||||||
\ ['othree/html5.vim', { 'on_ft' : ['html']}],
|
\ ['othree/html5.vim', { 'on_ft' : ['html']}],
|
||||||
\ ['wavded/vim-stylus', { 'on_ft' : ['styl']}],
|
\ ['wavded/vim-stylus', { 'on_ft' : ['stylus']}],
|
||||||
\ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}],
|
\ ['digitaltoad/vim-jade', { 'on_ft' : ['jade']}],
|
||||||
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
|
\ ['juvenn/mustache.vim', { 'on_ft' : ['mustache']}],
|
||||||
\ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}],
|
\ ['leafgarland/typescript-vim', { 'on_ft' : ['typescript']}],
|
||||||
|
12
autoload/SpaceVim/layers/lang/crystal.vim
Normal file
12
autoload/SpaceVim/layers/lang/crystal.vim
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
""
|
||||||
|
" @section lang#crystal, layer-lang-crystal
|
||||||
|
" @parentsection layers
|
||||||
|
" @subsection Intro
|
||||||
|
" The lang#crystal layer provides crystal filetype detection and syntax highlight,
|
||||||
|
" crystal tool and crystal spec integration.
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#crystal#plugins() abort
|
||||||
|
let plugins = []
|
||||||
|
call add(plugins, ['rhysd/vim-crystal', {'on_ft' : 'crystal'}])
|
||||||
|
return plugins
|
||||||
|
endfunction
|
@ -1,6 +1,7 @@
|
|||||||
function! SpaceVim#layers#tools#plugins() abort
|
function! SpaceVim#layers#tools#plugins() abort
|
||||||
return [
|
return [
|
||||||
\ ['tpope/vim-scriptease'],
|
\ ['tpope/vim-scriptease'],
|
||||||
|
\ ['SpaceVim/cscope.vim'],
|
||||||
\ ['wsdjeg/vim-cheat', { 'on_cmd' : 'Cheat'}],
|
\ ['wsdjeg/vim-cheat', { 'on_cmd' : 'Cheat'}],
|
||||||
\ ['wsdjeg/SourceCounter.vim', { 'on_cmd' : 'SourceCounter'}],
|
\ ['wsdjeg/SourceCounter.vim', { 'on_cmd' : 'SourceCounter'}],
|
||||||
\ ['junegunn/goyo.vim', { 'on_cmd' : 'Goyo',
|
\ ['junegunn/goyo.vim', { 'on_cmd' : 'Goyo',
|
||||||
@ -60,8 +61,12 @@ function! SpaceVim#layers#tools#config() abort
|
|||||||
" List of colors that you do not want. ANSI code or #RRGGBB
|
" List of colors that you do not want. ANSI code or #RRGGBB
|
||||||
let g:rainbow#blacklist = [233, 234]
|
let g:rainbow#blacklist = [233, 234]
|
||||||
nnoremap <Leader>fz :FZF<CR>
|
nnoremap <Leader>fz :FZF<CR>
|
||||||
vnoremap <silent> <C-l> <Esc>:Ydv<CR>
|
if maparg('<C-l>', 'v') ==# ''
|
||||||
nnoremap <silent> <C-l> <Esc>:Ydc<CR>
|
vnoremap <silent> <C-l> <Esc>:Ydv<CR>
|
||||||
|
endif
|
||||||
|
if maparg('<C-l>', 'n') ==# ''
|
||||||
|
nnoremap <silent> <C-l> <Esc>:Ydc<CR>
|
||||||
|
endif
|
||||||
map <unique> <Leader>td <Plug>TaskList
|
map <unique> <Leader>td <Plug>TaskList
|
||||||
noremap <silent> <F8> :TlistToggle<CR>
|
noremap <silent> <F8> :TlistToggle<CR>
|
||||||
function! OpenOrCloseNERDTree() abort
|
function! OpenOrCloseNERDTree() abort
|
||||||
|
@ -181,4 +181,30 @@ function! SpaceVim#mapping#close_current_buffer() abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! SpaceVim#mapping#close_term_buffer(...) abort
|
||||||
|
let buffers = g:_spacevim_list_buffers
|
||||||
|
let abuf = str2nr(g:_spacevim_termclose_abuf)
|
||||||
|
let index = index(buffers, abuf)
|
||||||
|
let g:wsd = [index, abuf, buffers]
|
||||||
|
if index != -1
|
||||||
|
if index == 0
|
||||||
|
if len(buffers) > 1
|
||||||
|
exe 'b' . buffers[1]
|
||||||
|
exe 'bd!' . abuf
|
||||||
|
else
|
||||||
|
exe 'bd! ' . abuf
|
||||||
|
endif
|
||||||
|
elseif index > 0
|
||||||
|
if index + 1 == len(buffers)
|
||||||
|
exe 'b' . buffers[index - 1]
|
||||||
|
exe 'bd!' . abuf
|
||||||
|
else
|
||||||
|
exe 'b' . buffers[index + 1]
|
||||||
|
exe 'bd!' . abuf
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
" vim:set et sw=2 cc=80:
|
" vim:set et sw=2 cc=80:
|
||||||
|
@ -258,8 +258,8 @@ function! SpaceVim#mapping#leader#defindUniteLeader(key) abort
|
|||||||
nnoremap <silent> [unite]n :<C-u>Unite session/new<CR>
|
nnoremap <silent> [unite]n :<C-u>Unite session/new<CR>
|
||||||
let g:_spacevim_mappings_unite.n = ['Unite session/new',
|
let g:_spacevim_mappings_unite.n = ['Unite session/new',
|
||||||
\ 'unite session/new']
|
\ 'unite session/new']
|
||||||
nnoremap <silent> [unite]/ :Unite -auto-preview grep:.<cr>
|
nnoremap <silent> [unite]/ :Unite grep:.<cr>
|
||||||
let g:_spacevim_mappings_unite['/'] = ['Unite -auto-preview grep:.',
|
let g:_spacevim_mappings_unite['/'] = ['Unite grep:.',
|
||||||
\ 'unite grep with preview']
|
\ 'unite grep with preview']
|
||||||
nnoremap <silent> [unite]w
|
nnoremap <silent> [unite]w
|
||||||
\ :<C-u>Unite -buffer-name=files -no-split
|
\ :<C-u>Unite -buffer-name=files -no-split
|
||||||
|
@ -26,6 +26,10 @@ if !empty(g:spacevim_guifont)
|
|||||||
exe 'set guifont=' . g:spacevim_guifont
|
exe 'set guifont=' . g:spacevim_guifont
|
||||||
endif
|
endif
|
||||||
if g:spacevim_enable_guicolors == 1
|
if g:spacevim_enable_guicolors == 1
|
||||||
|
if !has('nvim') && has('patch-7.4.1770')
|
||||||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
|
endif
|
||||||
if exists('+termguicolors')
|
if exists('+termguicolors')
|
||||||
set termguicolors
|
set termguicolors
|
||||||
elseif exists('+guicolors')
|
elseif exists('+guicolors')
|
||||||
|
@ -16,8 +16,7 @@ endfunction
|
|||||||
command! -range=% REPLSendSelection call REPLSend(s:GetVisual())
|
command! -range=% REPLSendSelection call REPLSend(s:GetVisual())
|
||||||
command! REPLSendLine call REPLSend([getline('.')])
|
command! REPLSendLine call REPLSend([getline('.')])
|
||||||
" }}}
|
" }}}
|
||||||
"let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
let $NVIM_TUI_ENABLE_CURSOR_SHAPE = g:spacevim_terminal_cursor_shape
|
||||||
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=2
|
|
||||||
"silent! let &t_SI = "\<Esc>]50;CursorShape=1\x7"
|
"silent! let &t_SI = "\<Esc>]50;CursorShape=1\x7"
|
||||||
"silent! let &t_SR = "\<Esc>]50;CursorShape=2\x7"
|
"silent! let &t_SR = "\<Esc>]50;CursorShape=2\x7"
|
||||||
"silent! let &t_EI = "\<Esc>]50;CursorShape=0\x7"
|
"silent! let &t_EI = "\<Esc>]50;CursorShape=0\x7"
|
||||||
@ -56,7 +55,7 @@ augroup Terminal
|
|||||||
au!
|
au!
|
||||||
au TermOpen * let g:last_terminal_job_id = b:terminal_job_id | IndentLinesDisable
|
au TermOpen * let g:last_terminal_job_id = b:terminal_job_id | IndentLinesDisable
|
||||||
au BufWinEnter term://* startinsert | IndentLinesDisable
|
au BufWinEnter term://* startinsert | IndentLinesDisable
|
||||||
au TermClose * exe expand('<abuf>').'bd!'
|
au TermClose * let g:_spacevim_termclose_abuf = expand('<abuf>') | call SpaceVim#mapping#close_term_buffer()
|
||||||
augroup END
|
augroup END
|
||||||
augroup nvimrc_aucmd
|
augroup nvimrc_aucmd
|
||||||
autocmd!
|
autocmd!
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
let g:Lf_StlSeparator = { 'left': '', 'right': '' }
|
let g:Lf_StlSeparator = get(g:, 'Lf_StlSeparator', { 'left': '', 'right': '' })
|
||||||
let g:Lf_StlColorscheme = 'spacevim'
|
let g:Lf_StlColorscheme = get(g:, 'Lf_StlColorscheme', 'spacevim')
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
let g:ag_prg='ag --vimgrep'
|
let g:ag_prg= get(g:, 'ag_prg', 'ag --vimgrep')
|
||||||
let g:ag_working_path_mode='r'
|
let g:ag_working_path_mode= get(g:, 'ag_working_path_mode', 'r')
|
||||||
|
@ -1,37 +1,39 @@
|
|||||||
let g:ctrlp_map = get(g:,'ctrlp_map', '<c-p>')
|
let g:ctrlp_map = get(g:,'ctrlp_map', '<c-p>')
|
||||||
let g:ctrlp_cmd = 'CtrlP'
|
let g:ctrlp_cmd = get(g:, 'ctrlp_cmd', 'CtrlP')
|
||||||
let g:ctrlp_working_path_mode = 'ra'
|
let g:ctrlp_working_path_mode = get(g:, 'ctrlp_working_path_mode', 'ra')
|
||||||
let g:ctrlp_root_markers = 'pom.xml'
|
let g:ctrlp_root_markers = get(g:, 'ctrlp_root_markers', 'pom.xml')
|
||||||
let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:15,results:15'
|
let g:ctrlp_match_window = get(g:, 'ctrlp_match_window', 'bottom,order:btt,min:1,max:15,results:15')
|
||||||
let g:ctrlp_show_hidden = 1
|
let g:ctrlp_show_hidden = get(g:, 'ctrlp_show_hidden', 1)
|
||||||
"for caching
|
"for caching
|
||||||
let g:ctrlp_use_caching = 500
|
let g:ctrlp_use_caching = get(g:, 'ctrlp_use_caching', 500)
|
||||||
let g:ctrlp_clear_cache_on_exit = 1
|
let g:ctrlp_clear_cache_on_exit = get(g:, 'ctrlp_clear_cache_on_exit', 1)
|
||||||
let g:ctrlp_cache_dir = $HOME.'/.cache/ctrlp'
|
let g:ctrlp_cache_dir = get(g:, 'ctrlp_cache_dir', $HOME.'/.cache/ctrlp')
|
||||||
"let g:ctrlp_map = ',,'
|
"let g:ctrlp_map = ',,'
|
||||||
"let g:ctrlp_open_multiple_files = 'v'
|
"let g:ctrlp_open_multiple_files = 'v'
|
||||||
"if you have install ag, the g:ctrlp_custom_ignore will not work
|
"if you have install ag, the g:ctrlp_custom_ignore will not work
|
||||||
let g:ctrlp_custom_ignore = {
|
let g:ctrlp_custom_ignore = get(g:, 'ctrlp_custom_ignore', {
|
||||||
\ 'dir': '\v[\/]\.(git|hg|svn)$|target',
|
\ 'dir': '\v[\/]\.(git|hg|svn)$|target|node_modules|te?mp$|logs?$|public$|dist$',
|
||||||
\ 'file': '\v\.(exe|so|dll|ttf|png)$|\-rplugin\~',
|
\ 'file': '\v\.(exe|so|dll|ttf|png|gif|jpe?g|bpm)$|\-rplugin\~',
|
||||||
\ 'link': 'some_bad_symbolic_links',
|
\ 'link': 'some_bad_symbolic_links',
|
||||||
\ }
|
\ })
|
||||||
if executable('rg')
|
if executable('rg') && !exists('g:ctrlp_user_command')
|
||||||
let g:ctrlp_user_command = 'rg %s --no-ignore --hidden --files -g "" '
|
let g:ctrlp_user_command = 'rg %s --no-ignore --hidden --files -g "" '
|
||||||
\ . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'rg'))
|
\ . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'rg'))
|
||||||
elseif executable('ag')
|
elseif executable('ag') && !exists('g:ctrlp_user_command')
|
||||||
let g:ctrlp_user_command = 'ag %s --hidden -i -g "" ' . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'ag'))
|
let g:ctrlp_user_command = 'ag %s --hidden -i -g "" ' . join(zvim#util#Generate_ignore(g:spacevim_wildignore,'ag'))
|
||||||
endif
|
endif
|
||||||
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
|
if !exists('g:ctrlp_match_func') && (has('python') || has('python3'))
|
||||||
|
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
|
||||||
|
endif
|
||||||
"nnoremap <Leader>kk :CtrlPMixed<Cr>
|
"nnoremap <Leader>kk :CtrlPMixed<Cr>
|
||||||
" comment for ctrlp-funky {{{
|
" comment for ctrlp-funky {{{
|
||||||
nnoremap <Leader>fu :CtrlPFunky<Cr>
|
nnoremap <Leader>fu :CtrlPFunky<Cr>
|
||||||
" narrow the list down with a word under cursor
|
" narrow the list down with a word under cursor
|
||||||
nnoremap <Leader>fU :execute 'CtrlPFunky ' . expand('<cword>')<Cr>
|
nnoremap <Leader>fU :execute 'CtrlPFunky ' . expand('<cword>')<Cr>
|
||||||
let g:ctrlp_funky_syntax_highlight = 1
|
let g:ctrlp_funky_syntax_highlight = get(g:, 'ctrlp_funky_syntax_highlight', 1)
|
||||||
" }}}
|
" }}}
|
||||||
"for ctrlp_nerdtree {{{
|
"for ctrlp_nerdtree {{{
|
||||||
let g:ctrlp_nerdtree_show_hidden = 1
|
let g:ctrlp_nerdtree_show_hidden = get(g:, 'ctrlp_nerdtree_show_hidden', 1)
|
||||||
"}}}
|
"}}}
|
||||||
"for ctrlp_sessions{{{
|
"for ctrlp_sessions{{{
|
||||||
let g:ctrlp_extensions = ['funky', 'sessions' , 'k' , 'tag', 'mixed', 'quickfix', 'undo', 'line', 'changes', 'cmdline', 'menu']
|
let g:ctrlp_extensions = ['funky', 'sessions' , 'k' , 'tag', 'mixed', 'quickfix', 'undo', 'line', 'changes', 'cmdline', 'menu']
|
||||||
|
@ -4,7 +4,8 @@ let s:sys = SpaceVim#api#import('system')
|
|||||||
|
|
||||||
|
|
||||||
" denite option
|
" denite option
|
||||||
let s:denite_options = {'default' : {
|
let s:denite_options = {
|
||||||
|
\ 'default' : {
|
||||||
\ 'winheight' : 15,
|
\ 'winheight' : 15,
|
||||||
\ 'mode' : 'insert',
|
\ 'mode' : 'insert',
|
||||||
\ 'quit' : 'true',
|
\ 'quit' : 'true',
|
||||||
|
@ -1,70 +1,70 @@
|
|||||||
" deoplete options
|
" deoplete options
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = get(g:, 'deoplete#enable_at_startup', 1)
|
||||||
let g:deoplete#enable_ignore_case = 1
|
let g:deoplete#enable_ignore_case = get(g:, 'deoplete#enable_ignore_case', 1)
|
||||||
let g:deoplete#enable_smart_case = 1
|
let g:deoplete#enable_smart_case = get(g:, 'deoplete#enable_smart_case', 1)
|
||||||
let g:deoplete#enable_camel_case = 1
|
let g:deoplete#enable_camel_case = get(g:, 'deoplete#enable_camel_case', 1)
|
||||||
let g:deoplete#enable_refresh_always = 1
|
let g:deoplete#enable_refresh_always = get(g:, 'deoplete#enable_refresh_always', 1)
|
||||||
let g:deoplete#max_abbr_width = 0
|
let g:deoplete#max_abbr_width = get(g:, 'deoplete#max_abbr_width', 0)
|
||||||
let g:deoplete#max_menu_width = 0
|
let g:deoplete#max_menu_width = get(g:, 'deoplete#max_menu_width', 0)
|
||||||
" init deoplet option dict
|
" init deoplet option dict
|
||||||
let g:deoplete#ignore_sources = get(g:,'deoplete#ignore_sources',{})
|
let g:deoplete#ignore_sources = get(g:,'deoplete#ignore_sources',{})
|
||||||
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
|
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
|
||||||
let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {})
|
let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {})
|
||||||
|
|
||||||
" java && jsp
|
" java && jsp
|
||||||
let g:deoplete#omni#input_patterns.java = [
|
let g:deoplete#omni#input_patterns.java = get(g:deoplete#omni#input_patterns, 'java', [
|
||||||
\'[^. \t0-9]\.\w*',
|
\'[^. \t0-9]\.\w*',
|
||||||
\'[^. \t0-9]\->\w*',
|
\'[^. \t0-9]\->\w*',
|
||||||
\'[^. \t0-9]\::\w*',
|
\'[^. \t0-9]\::\w*',
|
||||||
\]
|
\])
|
||||||
let g:deoplete#omni#input_patterns.jsp = ['[^. \t0-9]\.\w*']
|
let g:deoplete#omni#input_patterns.jsp = get(g:deoplete#omni#input_patterns, 'jsp', ['[^. \t0-9]\.\w*'])
|
||||||
if g:spacevim_enable_javacomplete2_py
|
if g:spacevim_enable_javacomplete2_py
|
||||||
let g:deoplete#ignore_sources.java = ['omni']
|
let g:deoplete#ignore_sources.java = get(g:deoplete#ignore_sources, 'java', ['omni'])
|
||||||
call deoplete#custom#set('javacomplete2', 'mark', '')
|
call deoplete#custom#set('javacomplete2', 'mark', '')
|
||||||
else
|
else
|
||||||
let g:deoplete#ignore_sources.java = ['javacomplete2']
|
let g:deoplete#ignore_sources.java = get(g:deoplete#ignore_sources, 'java', ['javacomplete2'])
|
||||||
call deoplete#custom#set('omni', 'mark', '')
|
call deoplete#custom#set('omni', 'mark', '')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" go
|
" go
|
||||||
let g:deoplete#ignore_sources.go = ['omni']
|
let g:deoplete#ignore_sources.go = get(g:deoplete#ignore_sources, 'go', ['omni'])
|
||||||
call deoplete#custom#set('go', 'mark', '')
|
call deoplete#custom#set('go', 'mark', '')
|
||||||
call deoplete#custom#set('go', 'rank', 9999)
|
call deoplete#custom#set('go', 'rank', 9999)
|
||||||
|
|
||||||
" perl
|
" perl
|
||||||
let g:deoplete#omni#input_patterns.perl = [
|
let g:deoplete#omni#input_patterns.perl = get(g:deoplete#omni#input_patterns, 'perl', [
|
||||||
\'[^. \t0-9]\.\w*',
|
\'[^. \t0-9]\.\w*',
|
||||||
\'[^. \t0-9]\->\w*',
|
\'[^. \t0-9]\->\w*',
|
||||||
\'[^. \t0-9]\::\w*',
|
\'[^. \t0-9]\::\w*',
|
||||||
\]
|
\])
|
||||||
|
|
||||||
" javascript
|
" javascript
|
||||||
let g:deoplete#omni#input_patterns.javascript = ['[^. \t0-9]\.\w*']
|
let g:deoplete#omni#input_patterns.javascript = get(g:deoplete#omni#input_patterns, 'javascript', ['[^. \t0-9]\.\w*'])
|
||||||
|
|
||||||
" php
|
" php
|
||||||
let g:deoplete#omni#input_patterns.php = [
|
let g:deoplete#omni#input_patterns.php = get(g:deoplete#omni#input_patterns, 'php', [
|
||||||
\'[^. \t0-9]\.\w*',
|
\'[^. \t0-9]\.\w*',
|
||||||
\'[^. \t0-9]\->\w*',
|
\'[^. \t0-9]\->\w*',
|
||||||
\'[^. \t0-9]\::\w*',
|
\'[^. \t0-9]\::\w*',
|
||||||
\]
|
\])
|
||||||
let g:deoplete#ignore_sources.php = ['omni', 'around', 'member']
|
let g:deoplete#ignore_sources.php = get(g:deoplete#ignore_sources, 'php', ['omni', 'around', 'member'])
|
||||||
call deoplete#custom#set('phpcd', 'mark', '')
|
call deoplete#custom#set('phpcd', 'mark', '')
|
||||||
call deoplete#custom#set('phpcd', 'input_pattern', '\w*|[^. \t]->\w*|\w*::\w*')
|
call deoplete#custom#set('phpcd', 'input_pattern', '\w*|[^. \t]->\w*|\w*::\w*')
|
||||||
|
|
||||||
" lua
|
" lua
|
||||||
let g:deoplete#omni_patterns.lua = '.'
|
let g:deoplete#omni_patterns.lua = get(g:deoplete#omni_patterns, 'lua', '.')
|
||||||
|
|
||||||
" c c++
|
" c c++
|
||||||
call deoplete#custom#set('clang2', 'mark', '')
|
call deoplete#custom#set('clang2', 'mark', '')
|
||||||
let g:deoplete#ignore_sources.c = ['omni']
|
let g:deoplete#ignore_sources.c = get(g:deoplete#ignore_sources, 'c', ['omni'])
|
||||||
|
|
||||||
" rust
|
" rust
|
||||||
let g:deoplete#ignore_sources.rust = ['omni']
|
let g:deoplete#ignore_sources.rust = get(g:deoplete#ignore_sources, 'rust', ['omni'])
|
||||||
call deoplete#custom#set('racer', 'mark', '')
|
call deoplete#custom#set('racer', 'mark', '')
|
||||||
|
|
||||||
" public settings
|
" public settings
|
||||||
call deoplete#custom#set('_', 'matchers', ['matcher_full_fuzzy'])
|
call deoplete#custom#set('_', 'matchers', ['matcher_full_fuzzy'])
|
||||||
let g:deoplete#ignore_sources._ = ['around']
|
let g:deoplete#ignore_sources._ = get(g:deoplete#ignore_sources, '_', ['around'])
|
||||||
inoremap <expr><C-h> deoplete#mappings#smart_close_popup()."\<C-h>"
|
inoremap <expr><C-h> deoplete#mappings#smart_close_popup()."\<C-h>"
|
||||||
inoremap <expr><BS> deoplete#mappings#smart_close_popup()."\<C-h>"
|
inoremap <expr><BS> deoplete#mappings#smart_close_popup()."\<C-h>"
|
||||||
set isfname-==
|
set isfname-==
|
||||||
|
@ -1 +1 @@
|
|||||||
let g:gruvbox_italic = 0
|
let g:gruvbox_italic = get(g:, 'gruvbox_italic', 0)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
let g:java_getset_disable_map = 1
|
let g:java_getset_disable_map = get(g:, 'java_getset_disable_map', 1)
|
||||||
let g:javagetset_setterTemplate =
|
let g:javagetset_setterTemplate = get(g:, 'javagetset_setterTemplate',
|
||||||
\ "/**\n" .
|
\ "/**\n" .
|
||||||
\ " * Set %varname%.\n" .
|
\ " * Set %varname%.\n" .
|
||||||
\ " *\n" .
|
\ " *\n" .
|
||||||
@ -7,8 +7,8 @@ let g:javagetset_setterTemplate =
|
|||||||
\ " */\n" .
|
\ " */\n" .
|
||||||
\ "%modifiers% void %funcname%(%type% %varname%){\n" .
|
\ "%modifiers% void %funcname%(%type% %varname%){\n" .
|
||||||
\ " this.%varname% = %varname%;\n" .
|
\ " this.%varname% = %varname%;\n" .
|
||||||
\ "}"
|
\ "}")
|
||||||
let g:javagetset_getterTemplate =
|
let g:javagetset_getterTemplate = get(g:, 'javagetset_getterTemplate',
|
||||||
\ "/**\n" .
|
\ "/**\n" .
|
||||||
\ " * Get %varname%.\n" .
|
\ " * Get %varname%.\n" .
|
||||||
\ " *\n" .
|
\ " *\n" .
|
||||||
@ -16,6 +16,6 @@ let g:javagetset_getterTemplate =
|
|||||||
\ " */\n" .
|
\ " */\n" .
|
||||||
\ "%modifiers% %type% %funcname%(){\n" .
|
\ "%modifiers% %type% %funcname%(){\n" .
|
||||||
\ " return %varname%;\n" .
|
\ " return %varname%;\n" .
|
||||||
\ "}"
|
\ "}")
|
||||||
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -1,41 +1,41 @@
|
|||||||
"---------------------------------------------------------------------------
|
"---------------------------------------------------------------------------
|
||||||
" neocomplache.vim
|
" neocomplache.vim
|
||||||
"
|
"
|
||||||
let g:neocomplcache_enable_at_startup = 1
|
let g:neocomplcache_enable_at_startup = get(g:, 'neocomplcache_enable_at_startup', 1)
|
||||||
" Use smartcase
|
" Use smartcase
|
||||||
let g:neocomplcache_enable_smart_case = 1
|
let g:neocomplcache_enable_smart_case = get(g:, 'neocomplcache_enable_smart_case', 1)
|
||||||
" Use camel case completion.
|
" Use camel case completion.
|
||||||
let g:neocomplcache_enable_camel_case_completion = 1
|
let g:neocomplcache_enable_camel_case_completion = get(g:, 'neocomplcache_enable_camel_case_completion', 1)
|
||||||
" Use underbar completion.
|
" Use underbar completion.
|
||||||
let g:neocomplcache_enable_underbar_completion = 1
|
let g:neocomplcache_enable_underbar_completion = get(g:, 'neocomplcache_enable_underbar_completion', 1)
|
||||||
" Use fuzzy completion.
|
" Use fuzzy completion.
|
||||||
let g:neocomplcache_enable_fuzzy_completion = 1
|
let g:neocomplcache_enable_fuzzy_completion = get(g:, 'neocomplcache_enable_fuzzy_completion', 1)
|
||||||
|
|
||||||
" Set minimum syntax keyword length.
|
" Set minimum syntax keyword length.
|
||||||
let g:neocomplcache_min_syntax_length = 3
|
let g:neocomplcache_min_syntax_length = get(g:, 'neocomplcache_min_syntax_length', 3)
|
||||||
" Set auto completion length.
|
" Set auto completion length.
|
||||||
let g:neocomplcache_auto_completion_start_length = 2
|
let g:neocomplcache_auto_completion_start_length = get(g:, 'neocomplcache_auto_completion_start_length', 2)
|
||||||
" Set manual completion length.
|
" Set manual completion length.
|
||||||
let g:neocomplcache_manual_completion_start_length = 0
|
let g:neocomplcache_manual_completion_start_length = get(g:, 'neocomplcache_manual_completion_start_length', 0)
|
||||||
" Set minimum keyword length.
|
" Set minimum keyword length.
|
||||||
let g:neocomplcache_min_keyword_length = 3
|
let g:neocomplcache_min_keyword_length = get(g:, 'neocomplcache_min_keyword_length', 3)
|
||||||
" let g:neocomplcache_enable_cursor_hold_i = v:version > 703 ||
|
" let g:neocomplcache_enable_cursor_hold_i = v:version > 703 ||
|
||||||
" \ v:version == 703 && has('patch289')
|
" \ v:version == 703 && has('patch289')
|
||||||
let g:neocomplcache_enable_cursor_hold_i = 0
|
let g:neocomplcache_enable_cursor_hold_i = get(g:, 'neocomplcache_enable_cursor_hold_i', 0)
|
||||||
let g:neocomplcache_cursor_hold_i_time = 300
|
let g:neocomplcache_cursor_hold_i_time = get(g:, 'neocomplcache_cursor_hold_i_time', 300)
|
||||||
let g:neocomplcache_enable_insert_char_pre = 1
|
let g:neocomplcache_enable_insert_char_pre = get(g:, 'neocomplcache_enable_insert_char_pre', 1)
|
||||||
let g:neocomplcache_enable_prefetch = 1
|
let g:neocomplcache_enable_prefetch = get(g:, 'neocomplcache_enable_prefetch', 1)
|
||||||
let g:neocomplcache_skip_auto_completion_time = '0.6'
|
let g:neocomplcache_skip_auto_completion_time = get(g:, 'neocomplcache_skip_auto_completion_time', '0.6')
|
||||||
|
|
||||||
" For auto select.
|
" For auto select.
|
||||||
let g:neocomplcache_enable_auto_select = 0
|
let g:neocomplcache_enable_auto_select = get(g:, 'neocomplcache_enable_auto_select', 0)
|
||||||
|
|
||||||
let g:neocomplcache_enable_auto_delimiter = 1
|
let g:neocomplcache_enable_auto_delimiter = get(g:, 'neocomplcache_enable_auto_delimiter', 1)
|
||||||
let g:neocomplcache_disable_auto_select_buffer_name_pattern =
|
let g:neocomplcache_disable_auto_select_buffer_name_pattern = get(g:, 'neocomplcache_disable_auto_select_buffer_name_pattern',
|
||||||
\ '\[Command Line\]'
|
\ '\[Command Line\]')
|
||||||
"let g:neocomplcache_disable_auto_complete = 0
|
"let g:neocomplcache_disable_auto_complete = 0
|
||||||
let g:neocomplcache_max_list = 100
|
let g:neocomplcache_max_list = get(g:, 'neocomplcache_max_list', 100)
|
||||||
let g:neocomplcache_force_overwrite_completefunc = 1
|
let g:neocomplcache_force_overwrite_completefunc = get(g:, 'neocomplcache_force_overwrite_completefunc', 1)
|
||||||
if !exists('g:neocomplcache_omni_patterns')
|
if !exists('g:neocomplcache_omni_patterns')
|
||||||
let g:neocomplcache_omni_patterns = {}
|
let g:neocomplcache_omni_patterns = {}
|
||||||
endif
|
endif
|
||||||
@ -45,21 +45,24 @@ endif
|
|||||||
if !exists('g:neocomplcache_force_omni_patterns')
|
if !exists('g:neocomplcache_force_omni_patterns')
|
||||||
let g:neocomplcache_force_omni_patterns = {}
|
let g:neocomplcache_force_omni_patterns = {}
|
||||||
endif
|
endif
|
||||||
let g:neocomplcache_enable_auto_close_preview = 1
|
let g:neocomplcache_enable_auto_close_preview = get(g:, 'neocomplcache_enable_auto_close_preview', 1)
|
||||||
" let g:neocomplcache_force_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
|
" let g:neocomplcache_force_omni_patterns.ruby = get(g:, ': ,[^. *\t]\.\w*\|\h\w*::')
|
||||||
let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
|
let g:neocomplcache_omni_patterns.ruby = get(g:neocomplcache_omni_patterns, 'ruby',
|
||||||
let g:neocomplcache_omni_patterns.java = '[^. *\t]\.\w*\|\h\w*::'
|
\ '[^. *\t]\.\w*\|\h\w*::')
|
||||||
let g:neocomplcache_force_omni_patterns.java = '[^. *\t]\.\w*\|\h\w*::'
|
let g:neocomplcache_omni_patterns.java = get(g:neocomplcache_omni_patterns, 'java',
|
||||||
|
\ '[^. *\t]\.\w*\|\h\w*::')
|
||||||
|
let g:neocomplcache_force_omni_patterns.java = get(g:neocomplcache_force_omni_patterns, 'java',
|
||||||
|
\ '[^. *\t]\.\w*\|\h\w*::')
|
||||||
|
|
||||||
" For clang_complete.
|
" For clang_complete.
|
||||||
let g:neocomplcache_force_overwrite_completefunc = 1
|
let g:neocomplcache_force_overwrite_completefunc = get(g:, 'neocomplcache_force_overwrite_completefunc', 1)
|
||||||
let g:neocomplcache_force_omni_patterns.c =
|
let g:neocomplcache_force_omni_patterns.c = get(g:neocomplcache_force_omni_patterns, 'c',
|
||||||
\ '[^.[:digit:] *\t]\%(\.\|->\)'
|
\ '[^.[:digit:] *\t]\%(\.\|->\)')
|
||||||
let g:neocomplcache_force_omni_patterns.cpp =
|
let g:neocomplcache_force_omni_patterns.cpp = get(g:neocomplcache_force_omni_patterns, 'cpp',
|
||||||
\ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
|
\ '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::')
|
||||||
let g:clang_complete_auto = 0
|
let g:clang_complete_auto = get(g:, 'clang_complete_auto', 0)
|
||||||
let g:clang_auto_select = 0
|
let g:clang_auto_select = get(g:, 'clang_auto_select', 0)
|
||||||
let g:clang_use_library = 1
|
let g:clang_use_library = get(g:, 'clang_use_library', 1)
|
||||||
|
|
||||||
" Define keyword pattern.
|
" Define keyword pattern.
|
||||||
if !exists('g:neocomplcache_keyword_patterns')
|
if !exists('g:neocomplcache_keyword_patterns')
|
||||||
@ -67,9 +70,9 @@ if !exists('g:neocomplcache_keyword_patterns')
|
|||||||
endif
|
endif
|
||||||
let g:neocomplcache_keyword_patterns['default'] = '[0-9a-zA-Z:#_]\+'
|
let g:neocomplcache_keyword_patterns['default'] = '[0-9a-zA-Z:#_]\+'
|
||||||
let g:neocomplcache_keyword_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
|
let g:neocomplcache_keyword_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
|
||||||
let g:neocomplete#enable_multibyte_completion = 1
|
let g:neocomplete#enable_multibyte_completion = get(g:, 'neocomplete#enable_multibyte_completion', 1)
|
||||||
|
|
||||||
let g:neocomplcache_vim_completefuncs = {
|
let g:neocomplcache_vim_completefuncs = get(g:, 'neocomplcache_vim_completefuncs', {
|
||||||
\ 'Ref' : 'ref#complete',
|
\ 'Ref' : 'ref#complete',
|
||||||
\ 'Unite' : 'unite#complete_source',
|
\ 'Unite' : 'unite#complete_source',
|
||||||
\ 'VimShellExecute' :
|
\ 'VimShellExecute' :
|
||||||
@ -81,6 +84,6 @@ let g:neocomplcache_vim_completefuncs = {
|
|||||||
\ 'VimShell' : 'vimshell#complete',
|
\ 'VimShell' : 'vimshell#complete',
|
||||||
\ 'VimFiler' : 'vimfiler#complete',
|
\ 'VimFiler' : 'vimfiler#complete',
|
||||||
\ 'Vinarise' : 'vinarise#complete',
|
\ 'Vinarise' : 'vinarise#complete',
|
||||||
\}
|
\})
|
||||||
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -1,32 +1,31 @@
|
|||||||
let g:neocomplete#data_directory='~/.cache/neocomplete'
|
let g:neocomplete#data_directory= get(g:, 'neocomplete#data_directory', '~/.cache/neocomplete')
|
||||||
let g:acp_enableAtStartup = 0
|
let g:acp_enableAtStartup = get(g:, 'acp_enableAtStartup', 0)
|
||||||
let g:neocomplete#enable_at_startup = 1
|
let g:neocomplete#enable_at_startup = get(g:, 'neocomplete#enable_at_startup', 1)
|
||||||
" Use smartcase.
|
" Use smartcase.
|
||||||
let g:neocomplete#enable_smart_case = 1
|
let g:neocomplete#enable_smart_case = get(g:, 'neocomplete#enable_smart_case', 1)
|
||||||
let g:neocomplete#enable_camel_case = 1
|
let g:neocomplete#enable_camel_case = get(g:, 'neocomplete#enable_camel_case', 1)
|
||||||
"let g:neocomplete#enable_ignore_case = 1
|
"let g:neocomplete#enable_ignore_case = 1
|
||||||
let g:neocomplete#enable_fuzzy_completion = 1
|
let g:neocomplete#enable_fuzzy_completion = get(g:, 'neocomplete#enable_fuzzy_completion', 1)
|
||||||
" Set minimum syntax keyword length.
|
" Set minimum syntax keyword length.
|
||||||
let g:neocomplete#sources#syntax#min_keyword_length = 3
|
let g:neocomplete#sources#syntax#min_keyword_length = get(g:, 'neocomplete#sources#syntax#min_keyword_length', 3)
|
||||||
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*'
|
let g:neocomplete#lock_buffer_name_pattern = get(g:, 'neocomplete#lock_buffer_name_pattern', '\*ku\*')
|
||||||
|
|
||||||
" Define dictionary.
|
" Define dictionary.
|
||||||
let g:neocomplete#sources#dictionary#dictionaries = {
|
let g:neocomplete#sources#dictionary#dictionaries = get(g:, 'neocomplete#sources#dictionary#dictionaries', {
|
||||||
\ 'default' : '',
|
\ 'default' : '',
|
||||||
\ 'vimshell' : $CACHE.'/vimshell/command-history',
|
\ 'vimshell' : $CACHE.'/vimshell/command-history',
|
||||||
\ 'java' : '~/.vim/dict/java.dict',
|
\ 'java' : '~/.vim/dict/java.dict',
|
||||||
\ 'ruby' : '~/.vim/dict/ruby.dict',
|
\ 'ruby' : '~/.vim/dict/ruby.dict',
|
||||||
\ 'scala' : '~/.vim/dict/scala.dict',
|
\ 'scala' : '~/.vim/dict/scala.dict',
|
||||||
\ }
|
\ })
|
||||||
|
|
||||||
let g:neocomplete#enable_auto_delimiter = 1
|
let g:neocomplete#enable_auto_delimiter = get(g:, 'neocomplete#enable_auto_delimiter', 1)
|
||||||
|
|
||||||
" Define keyword.
|
" Define keyword.
|
||||||
if !exists('g:neocomplete#keyword_patterns')
|
if !exists('g:neocomplete#keyword_patterns')
|
||||||
let g:neocomplete#keyword_patterns = {}
|
let g:neocomplete#keyword_patterns = {}
|
||||||
endif
|
endif
|
||||||
let g:neocomplete#keyword_patterns._ = '\h\k*(\?'
|
let g:neocomplete#keyword_patterns._ = get(g:neocomplete#keyword_pattern, '_', '\h\k*(\?')
|
||||||
|
|
||||||
|
|
||||||
" AutoComplPop like behavior.
|
" AutoComplPop like behavior.
|
||||||
let g:neocomplete#enable_auto_select = 0
|
let g:neocomplete#enable_auto_select = 0
|
||||||
@ -35,10 +34,12 @@ if !exists('g:neocomplete#sources#omni#input_patterns')
|
|||||||
let g:neocomplete#sources#omni#input_patterns = {}
|
let g:neocomplete#sources#omni#input_patterns = {}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:neocomplete#sources#omni#input_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
|
let g:neocomplete#sources#omni#input_patterns.perl = get(g:neocomplete#sources#omni#input_patterns, 'perl', '\h\w*->\h\w*\|\h\w*::')
|
||||||
let g:neocomplete#sources#omni#input_patterns.java ='[^. \t0-9]\.\w*'
|
let g:neocomplete#sources#omni#input_patterns.java = get(g:neocomplete#sources#omni#input_patterns, 'java','[^. \t0-9]\.\w*')
|
||||||
let g:neocomplete#sources#omni#input_patterns.lua ='[^. \t0-9]\.\w*'
|
let g:neocomplete#sources#omni#input_patterns.lua = get(g:neocomplete#sources#omni#input_patterns, 'lua','[^. \t0-9]\.\w*')
|
||||||
let g:neocomplete#force_omni_input_patterns = {}
|
if !exists('g:neocomplete#force_omni_input_patterns')
|
||||||
|
let g:neocomplete#force_omni_input_patterns = {}
|
||||||
|
endif
|
||||||
"let g:neocomplete#force_omni_input_patterns.java = '^\s*'
|
"let g:neocomplete#force_omni_input_patterns.java = '^\s*'
|
||||||
" <C-h>, <BS>: close popup and delete backword char.
|
" <C-h>, <BS>: close popup and delete backword char.
|
||||||
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
|
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
|
||||||
|
@ -3,12 +3,12 @@ scriptencoding utf-8
|
|||||||
let g:neomake_open_list = get(g:, 'neomake_open_list', 2)
|
let g:neomake_open_list = get(g:, 'neomake_open_list', 2)
|
||||||
let g:neomake_verbose = get(g:, 'neomake_verbose', 0)
|
let g:neomake_verbose = get(g:, 'neomake_verbose', 0)
|
||||||
let g:neomake_java_javac_delete_output = get(g:, 'neomake_java_javac_delete_output', 0)
|
let g:neomake_java_javac_delete_output = get(g:, 'neomake_java_javac_delete_output', 0)
|
||||||
let g:neomake_error_sign = {
|
let g:neomake_error_sign = get(g:, 'neomake_error_sign', {
|
||||||
\ 'text': get(g:, 'spacevim_error_symbol', '✖'),
|
\ 'text': get(g:, 'spacevim_error_symbol', '✖'),
|
||||||
\ 'texthl': (g:spacevim_colorscheme ==# 'gruvbox' ? 'GruvboxRedSign' : 'error'),
|
\ 'texthl': (g:spacevim_colorscheme ==# 'gruvbox' ? 'GruvboxRedSign' : 'error'),
|
||||||
\ }
|
\ })
|
||||||
let g:neomake_warning_sign = {
|
let g:neomake_warning_sign = get(g:, 'neomake_warning_sign', {
|
||||||
\ 'text': get(g:,'spacevim_warning_symbol', '➤'),
|
\ 'text': get(g:,'spacevim_warning_symbol', '➤'),
|
||||||
\ 'texthl': (g:spacevim_colorscheme ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
|
\ 'texthl': (g:spacevim_colorscheme ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
|
||||||
\ }
|
\ })
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -10,9 +10,12 @@ endif
|
|||||||
if g:spacevim_force_global_config == 0
|
if g:spacevim_force_global_config == 0
|
||||||
let g:neosnippet#snippets_directory = [getcwd() . '/.Spacevim.d/snippets'] + g:neosnippet#snippets_directory
|
let g:neosnippet#snippets_directory = [getcwd() . '/.Spacevim.d/snippets'] + g:neosnippet#snippets_directory
|
||||||
endif
|
endif
|
||||||
let g:neosnippet#enable_snipmate_compatibility=1
|
let g:neosnippet#enable_snipmate_compatibility = get(g:, 'neosnippet#enable_snipmate_compatibility', 1)
|
||||||
let g:neosnippet#enable_complete_done = 1
|
let g:neosnippet#enable_complete_done = get(g:, 'neosnippet#enable_complete_done', 1)
|
||||||
let g:neosnippet#completed_pairs= {}
|
|
||||||
|
if !exists('g:neosnippet#completed_pairs')
|
||||||
|
let g:neosnippet#completed_pairs = {}
|
||||||
|
endif
|
||||||
let g:neosnippet#completed_pairs.java = {'(' : ')'}
|
let g:neosnippet#completed_pairs.java = {'(' : ')'}
|
||||||
if g:neosnippet#enable_complete_done
|
if g:neosnippet#enable_complete_done
|
||||||
let g:neopairs#enable = 0
|
let g:neopairs#enable = 0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"for open-browser {{{
|
"for open-browser {{{
|
||||||
" This is my setting.
|
" This is my setting.
|
||||||
let g:netrw_nogx = 1 " disable netrw's gx mapping.
|
let g:netrw_nogx = get(g:, 'netrw_nogx', 1) " disable netrw's gx mapping.
|
||||||
"nmap gx <Plug>(openbrowser-smart-search)
|
"nmap gx <Plug>(openbrowser-smart-search)
|
||||||
"vmap gx <Plug>(openbrowser-smart-search)
|
"vmap gx <Plug>(openbrowser-smart-search)
|
||||||
"" Open URI under cursor.
|
"" Open URI under cursor.
|
||||||
|
@ -2,19 +2,19 @@ scriptencoding utf-8
|
|||||||
if !filereadable('pom.xml') && !filereadable('build.gradle') && isdirectory('bin')
|
if !filereadable('pom.xml') && !filereadable('build.gradle') && isdirectory('bin')
|
||||||
let g:syntastic_java_javac_options = '-d bin'
|
let g:syntastic_java_javac_options = '-d bin'
|
||||||
endif
|
endif
|
||||||
let g:syntastic_java_javac_config_file_enabled = 1
|
let g:syntastic_java_javac_config_file_enabled = get(g:, 'syntastic_java_javac_config_file_enabled', 1)
|
||||||
let g:syntastic_java_javac_delete_output = 0
|
let g:syntastic_java_javac_delete_output = get(g:, 'syntastic_java_javac_delete_output', 0)
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
let g:syntastic_always_populate_loc_list = get(g:, 'syntastic_always_populate_loc_list', 1)
|
||||||
let g:syntastic_auto_loc_list = 1
|
let g:syntastic_auto_loc_list = get(g:, 'syntastic_auto_loc_list', 1)
|
||||||
let g:syntastic_check_on_open = 0
|
let g:syntastic_check_on_open = get(g:, 'syntastic_check_on_open', 0)
|
||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = get(g:, 'syntastic_check_on_wq', 0)
|
||||||
let g:syntastic_error_symbol = get(g:, 'spacevim_error_symbol', '✖')
|
let g:syntastic_error_symbol = get(g:, 'spacevim_error_symbol', '✖')
|
||||||
let g:syntastic_warning_symbol = get(g:, 'spacevim_warning_symbol', '➤')
|
let g:syntastic_warning_symbol = get(g:, 'spacevim_warning_symbol', '➤')
|
||||||
let g:syntastic_vimlint_options = {
|
let g:syntastic_vimlint_options = get(g:, 'syntastic_vimlint_options', {
|
||||||
\'EVL102': 1 ,
|
\'EVL102': 1 ,
|
||||||
\'EVL103': 1 ,
|
\'EVL103': 1 ,
|
||||||
\'EVL205': 1 ,
|
\'EVL205': 1 ,
|
||||||
\'EVL105': 1 ,
|
\'EVL105': 1 ,
|
||||||
\}
|
\})
|
||||||
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
let g:tagbar_width = g:spacevim_sidebar_width
|
let g:tagbar_width = get(g:, 'tagbar_width', g:spacevim_sidebar_width)
|
||||||
let g:tagbar_left = 1
|
let g:tagbar_left = get(g:, 'tagbar_left', 1)
|
||||||
let g:tagbar_sort = 0
|
let g:tagbar_sort = get(g:, 'tagbar_sort', 0)
|
||||||
let g:tagbar_compact = 1
|
let g:tagbar_compact = get(g:, 'tagbar_compact', 1)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
if !executable('ctags')
|
if !executable('ctags')
|
||||||
let g:Tlist_Ctags_Cmd = '/usr/bin/ctags' "设置ctags执行路径
|
let g:Tlist_Ctags_Cmd = get(g:, 'Tlist_Ctags_Cmd', '/usr/bin/ctags') "设置ctags执行路径
|
||||||
endif
|
endif
|
||||||
let g:Tlist_Auto_Update=1
|
let g:Tlist_Auto_Update = get(g:, 'Tlist_Auto_Update', 1)
|
||||||
let g:Tlist_Auto_Open =0
|
let g:Tlist_Auto_Open = get(g:, 'Tlist_Auto_Open', 0)
|
||||||
let g:Tlist_Use_Right_Window=1
|
let g:Tlist_Use_Right_Window = get(g:, 'Tlist_Use_Right_Window', 1)
|
||||||
let g:Tlist_Show_One_File=0
|
let g:Tlist_Show_One_File = get(g:, 'Tlist_Show_One_File', 0)
|
||||||
let g:Tlist_File_Fold_Auto_Close=1
|
let g:Tlist_File_Fold_Auto_Close = get(g:, 'Tlist_File_Fold_Auto_Close', 1)
|
||||||
let g:Tlist_Exit_OnlyWindow=1
|
let g:Tlist_Exit_OnlyWindow = get(g:, 'Tlist_Exit_OnlyWindow', 1)
|
||||||
let g:Tlist_Show_Menu=1
|
let g:Tlist_Show_Menu = get(g:, 'Tlist_Show_Menu', 1)
|
||||||
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -4,8 +4,8 @@ nnoremap <leader>gr :execute 'Unite -auto-preview -start-insert -no-split gtags
|
|||||||
nnoremap <leader>gg :execute 'Unite -auto-preview -start-insert -no-split gtags/grep'<CR>
|
nnoremap <leader>gg :execute 'Unite -auto-preview -start-insert -no-split gtags/grep'<CR>
|
||||||
"nnoremap <leader>gp :execute 'Unite -auto-preview -start-insert -no-split gtags/completion'<CR>
|
"nnoremap <leader>gp :execute 'Unite -auto-preview -start-insert -no-split gtags/completion'<CR>
|
||||||
vnoremap <leader>gd <ESC>:execute 'Unite -auto-preview -start-insert -no-split gtags/def:'.GetVisualSelection()<CR>
|
vnoremap <leader>gd <ESC>:execute 'Unite -auto-preview -start-insert -no-split gtags/def:'.GetVisualSelection()<CR>
|
||||||
let g:unite_source_gtags_project_config = {
|
let g:unite_source_gtags_project_config = get(g:, 'unite_source_gtags_project_config', {
|
||||||
\ '_': { 'treelize': 0 }
|
\ '_': { 'treelize': 0 }
|
||||||
\ }
|
\ })
|
||||||
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2:
|
||||||
|
@ -1 +1 @@
|
|||||||
let g:unite_source_radio_play_cmd='mpv'
|
let g:unite_source_radio_play_cmd= get(g:, 'unite_source_radio_play_cmd', 'mpv')
|
||||||
|
@ -23,20 +23,29 @@ call unite#custom#profile('default', 'context', {
|
|||||||
call unite#custom#profile('source/neobundle/update', 'context', {
|
call unite#custom#profile('source/neobundle/update', 'context', {
|
||||||
\ 'start_insert' : 0,
|
\ 'start_insert' : 0,
|
||||||
\ })
|
\ })
|
||||||
let g:unite_source_codesearch_ignore_case = 1
|
let g:unite_source_codesearch_ignore_case = get(g:,
|
||||||
let g:unite_source_buffer_time_format = '(%m-%d-%Y %H:%M:%S) '
|
\ 'unite_source_codesearch_ignore_case', 1)
|
||||||
let g:unite_source_file_mru_time_format = '(%m-%d-%Y %H:%M:%S) '
|
let g:unite_source_buffer_time_format = get(g:,
|
||||||
let g:unite_source_directory_mru_time_format = '(%m-%d-%Y %H:%M:%S) '
|
\ 'unite_source_buffer_time_format', '(%m-%d-%Y %H:%M:%S) ')
|
||||||
let g:unite_source_directory_mru_limit = 80
|
let g:unite_source_file_mru_time_format = get(g:,
|
||||||
let g:unite_source_file_rec_max_depth = 6
|
\ 'unite_source_file_mru_time_format', '(%m-%d-%Y %H:%M:%S) ')
|
||||||
let g:unite_enable_ignore_case = 1
|
let g:unite_source_directory_mru_time_format = get(g:,
|
||||||
let g:unite_enable_smart_case = 1
|
\ 'unite_source_directory_mru_time_format', '(%m-%d-%Y %H:%M:%S) ')
|
||||||
let g:unite_data_directory='~/.cache/unite'
|
let g:unite_source_directory_mru_limit = get(g:,
|
||||||
|
\ 'unite_source_directory_mru_limit', 80)
|
||||||
|
let g:unite_source_file_rec_max_depth = get(g:,
|
||||||
|
\ 'unite_source_file_rec_max_depth', 6)
|
||||||
|
let g:unite_enable_ignore_case = get(g:, 'unite_enable_ignore_case', 1)
|
||||||
|
let g:unite_enable_smart_case = get(g:, 'unite_enable_smart_case', 1)
|
||||||
|
let g:unite_data_directory = get(g:, 'unite_data_directory','~/.cache/unite')
|
||||||
"let g:unite_enable_start_insert=1
|
"let g:unite_enable_start_insert=1
|
||||||
let g:unite_source_history_yank_enable=1
|
let g:unite_source_history_yank_enable = get(g:,
|
||||||
let g:unite_split_rule = 'botright'
|
\ 'unite_source_history_yank_enable', 1)
|
||||||
let g:unite_winheight=25
|
let g:unite_split_rule = get(g:, 'unite_split_rule', 'botright')
|
||||||
let g:unite_source_grep_default_opts = '-iRHn'
|
let g:unite_winheight = get(g:, 'unite_winheight', 25)
|
||||||
|
let g:unite_source_grep_default_opts = get(g:,
|
||||||
|
\ 'unite_source_grep_default_opts',
|
||||||
|
\ '-iRHn'
|
||||||
\ . " --exclude='tags'"
|
\ . " --exclude='tags'"
|
||||||
\ . " --exclude='cscope*'"
|
\ . " --exclude='cscope*'"
|
||||||
\ . " --exclude='*.svn*'"
|
\ . " --exclude='*.svn*'"
|
||||||
@ -46,13 +55,13 @@ let g:unite_source_grep_default_opts = '-iRHn'
|
|||||||
\ . " --exclude-dir='CVS'"
|
\ . " --exclude-dir='CVS'"
|
||||||
\ . " --exclude-dir='.svn'"
|
\ . " --exclude-dir='.svn'"
|
||||||
\ . " --exclude-dir='.git'"
|
\ . " --exclude-dir='.git'"
|
||||||
\ . " --exclude-dir='node_modules'"
|
\ . " --exclude-dir='node_modules'")
|
||||||
let g:unite_launch_apps = [
|
let g:unite_launch_apps = get(g:, 'unite_launch_apps', [
|
||||||
\ 'rake',
|
\ 'rake',
|
||||||
\ 'make',
|
\ 'make',
|
||||||
\ 'git pull',
|
\ 'git pull',
|
||||||
\ 'git push']
|
\ 'git push'])
|
||||||
let g:unite_source_menu_menus = get(g:,'unite_source_menu_menus',{})
|
let g:unite_source_menu_menus = get(g:, 'unite_source_menu_menus', {})
|
||||||
let g:unite_source_menu_menus.git = {
|
let g:unite_source_menu_menus.git = {
|
||||||
\ 'description' : ' gestionar repositorios git
|
\ 'description' : ' gestionar repositorios git
|
||||||
\ ⌘ [espacio]g',
|
\ ⌘ [espacio]g',
|
||||||
@ -90,52 +99,96 @@ let g:unite_source_menu_menus.git.command_candidates = [
|
|||||||
"===============================================================================
|
"===============================================================================
|
||||||
" HTTP Status Code Definitions
|
" HTTP Status Code Definitions
|
||||||
"===============================================================================
|
"===============================================================================
|
||||||
let g:unite_source_menu_menus.StatusCodeDefinitions = {'description': 'HTTP status code definitions <leader>sc'}
|
let g:unite_source_menu_menus.StatusCodeDefinitions = {'description':
|
||||||
|
\ 'HTTP status code definitions <leader>sc'}
|
||||||
let g:unite_source_menu_menus.StatusCodeDefinitions.command_candidates = [
|
let g:unite_source_menu_menus.StatusCodeDefinitions.command_candidates = [
|
||||||
\['➤ 100 Continue ', 'echo "Continue"'],
|
\['➤ 100 Continue ',
|
||||||
\['➤ 101 Switching Protocols ', 'echo "Switching Protocols"'],
|
\ 'echo "Continue"'],
|
||||||
\['➤ 200 OK ', 'echo "OK"'],
|
\['➤ 101 Switching Protocols ',
|
||||||
\['➤ 201 Created ', 'echo "Created"'],
|
\ 'echo "Switching Protocols"'],
|
||||||
\['➤ 202 Accepted ', 'echo "Accepted"'],
|
\['➤ 200 OK ',
|
||||||
\['➤ 203 Non-Authoritative Information ', 'echo "Non-Authoritative Information"'],
|
\ 'echo "OK"'],
|
||||||
\['➤ 204 No Content ', 'echo "No Content"'],
|
\['➤ 201 Created ',
|
||||||
\['➤ 205 Reset Content ', 'echo "Reset Content"'],
|
\ 'echo "Created"'],
|
||||||
\['➤ 206 Partial Content ', 'echo "Partial Content"'],
|
\['➤ 202 Accepted ',
|
||||||
\['➤ 300 Multiple Choices ', 'echo "Multiple Choices"'],
|
\ 'echo "Accepted"'],
|
||||||
\['➤ 301 Moved Permanently ', 'echo "Moved Permanently"'],
|
\['➤ 203 Non-Authoritative Information ',
|
||||||
\['➤ 302 Found ', 'echo "Found"'],
|
\ 'echo "Non-Authoritative Information"'],
|
||||||
\['➤ 303 See Other ', 'echo "See Other"'],
|
\['➤ 204 No Content ',
|
||||||
\['➤ 304 Not Modified ', 'echo "Not Modified"'],
|
\ 'echo "No Content"'],
|
||||||
\['➤ 305 Use Proxy ', 'echo "Use Proxy"'],
|
\['➤ 205 Reset Content ',
|
||||||
\['➤ 307 Temporary Redirect ', 'echo "Temporary Redirect"'],
|
\ 'echo "Reset Content"'],
|
||||||
\['➤ 400 Bad Request ', 'echo "Bad Request"'],
|
\['➤ 206 Partial Content ',
|
||||||
\['➤ 401 Unauthorized ', 'echo "Unauthorized"'],
|
\ 'echo "Partial Content"'],
|
||||||
\['➤ 402 Payment Required ', 'echo "Payment Required"'],
|
\['➤ 300 Multiple Choices ',
|
||||||
\['➤ 403 Forbidden ', 'echo "Forbidden"'],
|
\ 'echo "Multiple Choices"'],
|
||||||
\['➤ 404 Not Found ', 'echo "Not Found"'],
|
\['➤ 301 Moved Permanently ',
|
||||||
\['➤ 405 Method Not Allowed ', 'echo "Method Not Allowed"'],
|
\ 'echo "Moved Permanently"'],
|
||||||
\['➤ 406 Not Acceptable ', 'echo "Not Acceptable"'],
|
\['➤ 302 Found ',
|
||||||
\['➤ 407 Proxy Authentication Required ', 'echo "Proxy Authoritative Required"'],
|
\ 'echo "Found"'],
|
||||||
\['➤ 408 Request Timeout ', 'echo "Request Timeout"'],
|
\['➤ 303 See Other ',
|
||||||
\['➤ 409 Conflict ', 'echo "Conflict"'],
|
\ 'echo "See Other"'],
|
||||||
\['➤ 410 Gone ', 'echo "Gone"'],
|
\['➤ 304 Not Modified ',
|
||||||
\['➤ 411 Length Required ', 'echo "Length Required"'],
|
\ 'echo "Not Modified"'],
|
||||||
\['➤ 412 Precondition Failed ', 'echo "Precondition Failed"'],
|
\['➤ 305 Use Proxy ',
|
||||||
\['➤ 413 Request Entity Too Large ', 'echo "Request Entity Too Large"'],
|
\ 'echo "Use Proxy"'],
|
||||||
\['➤ 414 Request-URI Too Long ', 'echo "Request-URI Too Long"'],
|
\['➤ 307 Temporary Redirect ',
|
||||||
\['➤ 415 Unsupported Media Type ', 'echo "Unsupported Media Type"'],
|
\ 'echo "Temporary Redirect"'],
|
||||||
\['➤ 416 Requested Range Not Satisfiable ', 'echo "Requested Range Not Satisfiable"'],
|
\['➤ 400 Bad Request ',
|
||||||
\['➤ 417 Expectation Failed ', 'echo "Expectation Failed"'],
|
\ 'echo "Bad Request"'],
|
||||||
\['➤ 422 Unprocessable Entity ', 'echo "Unprocessable Entity"'],
|
\['➤ 401 Unauthorized ',
|
||||||
\['➤ 500 Internal Server Error ', 'echo "Internal Server Error"'],
|
\ 'echo "Unauthorized"'],
|
||||||
\['➤ 501 Not Implemented ', 'echo "Not Implemented"'],
|
\['➤ 402 Payment Required ',
|
||||||
\['➤ 502 Bad Gateway ', 'echo "Bad Gateway"'],
|
\ 'echo "Payment Required"'],
|
||||||
\['➤ 503 Service Unavailable ', 'echo "Service Unavailable"'],
|
\['➤ 403 Forbidden ',
|
||||||
\['➤ 504 Gateway Timeout ', 'echo "Gateway Timeout"'],
|
\ 'echo "Forbidden"'],
|
||||||
\['➤ 505 HTTP Version Not Supported ', 'echo "HTTP Version Not Supported"'],
|
\['➤ 404 Not Found ',
|
||||||
|
\ 'echo "Not Found"'],
|
||||||
|
\['➤ 405 Method Not Allowed ',
|
||||||
|
\ 'echo "Method Not Allowed"'],
|
||||||
|
\['➤ 406 Not Acceptable ',
|
||||||
|
\ 'echo "Not Acceptable"'],
|
||||||
|
\['➤ 407 Proxy Authentication Required ',
|
||||||
|
\ 'echo "Proxy Authoritative Required"'],
|
||||||
|
\['➤ 408 Request Timeout ',
|
||||||
|
\ 'echo "Request Timeout"'],
|
||||||
|
\['➤ 409 Conflict ',
|
||||||
|
\ 'echo "Conflict"'],
|
||||||
|
\['➤ 410 Gone ',
|
||||||
|
\ 'echo "Gone"'],
|
||||||
|
\['➤ 411 Length Required ',
|
||||||
|
\ 'echo "Length Required"'],
|
||||||
|
\['➤ 412 Precondition Failed ',
|
||||||
|
\ 'echo "Precondition Failed"'],
|
||||||
|
\['➤ 413 Request Entity Too Large ',
|
||||||
|
\ 'echo "Request Entity Too Large"'],
|
||||||
|
\['➤ 414 Request-URI Too Long ',
|
||||||
|
\ 'echo "Request-URI Too Long"'],
|
||||||
|
\['➤ 415 Unsupported Media Type ',
|
||||||
|
\ 'echo "Unsupported Media Type"'],
|
||||||
|
\['➤ 416 Requested Range Not Satisfiable ',
|
||||||
|
\ 'echo "Requested Range Not Satisfiable"'],
|
||||||
|
\['➤ 417 Expectation Failed ',
|
||||||
|
\ 'echo "Expectation Failed"'],
|
||||||
|
\['➤ 422 Unprocessable Entity ',
|
||||||
|
\ 'echo "Unprocessable Entity"'],
|
||||||
|
\['➤ 500 Internal Server Error ',
|
||||||
|
\ 'echo "Internal Server Error"'],
|
||||||
|
\['➤ 501 Not Implemented ',
|
||||||
|
\ 'echo "Not Implemented"'],
|
||||||
|
\['➤ 502 Bad Gateway ',
|
||||||
|
\ 'echo "Bad Gateway"'],
|
||||||
|
\['➤ 503 Service Unavailable ',
|
||||||
|
\ 'echo "Service Unavailable"'],
|
||||||
|
\['➤ 504 Gateway Timeout ',
|
||||||
|
\ 'echo "Gateway Timeout"'],
|
||||||
|
\['➤ 505 HTTP Version Not Supported ',
|
||||||
|
\ 'echo "HTTP Version Not Supported"'],
|
||||||
\]
|
\]
|
||||||
nnoremap <silent><leader>sc :Unite -silent -winheight=17 -start-insert menu:StatusCodeDefinitions<CR>
|
nnoremap <silent><leader>sc :Unite -silent -winheight=17
|
||||||
let g:unite_source_grep_max_candidates = 200
|
\ -start-insert menu:StatusCodeDefinitions<CR>
|
||||||
|
let g:unite_source_grep_max_candidates = get(g:,
|
||||||
|
\ 'unite_source_grep_max_candidates', 200)
|
||||||
if executable('hw')
|
if executable('hw')
|
||||||
" Use hw (highway)
|
" Use hw (highway)
|
||||||
" https://github.com/tkengo/highway
|
" https://github.com/tkengo/highway
|
||||||
@ -146,9 +199,8 @@ elseif executable('ag')
|
|||||||
" Use ag (the silver searcher)
|
" Use ag (the silver searcher)
|
||||||
" https://github.com/ggreer/the_silver_searcher
|
" https://github.com/ggreer/the_silver_searcher
|
||||||
let g:unite_source_grep_command = 'ag'
|
let g:unite_source_grep_command = 'ag'
|
||||||
let g:unite_source_grep_default_opts =
|
let g:unite_source_grep_default_opts = '-i --line-numbers --nocolor --nogroup --hidden --ignore ' .
|
||||||
\ '-i --line-numbers --nocolor --nogroup --hidden --ignore ' .
|
\ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
|
||||||
\ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
|
|
||||||
let g:unite_source_grep_recursive_opt = ''
|
let g:unite_source_grep_recursive_opt = ''
|
||||||
elseif executable('pt')
|
elseif executable('pt')
|
||||||
" Use pt (the platinum searcher)
|
" Use pt (the platinum searcher)
|
||||||
@ -160,8 +212,7 @@ elseif executable('ack-grep')
|
|||||||
" Use ack
|
" Use ack
|
||||||
" http://beyondgrep.com/
|
" http://beyondgrep.com/
|
||||||
let g:unite_source_grep_command = 'ack-grep'
|
let g:unite_source_grep_command = 'ack-grep'
|
||||||
let g:unite_source_grep_default_opts =
|
let g:unite_source_grep_default_opts = '-i --no-heading --no-color -k -H'
|
||||||
\ '-i --no-heading --no-color -k -H'
|
|
||||||
let g:unite_source_grep_recursive_opt = ''
|
let g:unite_source_grep_recursive_opt = ''
|
||||||
elseif executable('ack')
|
elseif executable('ack')
|
||||||
let g:unite_source_grep_command = 'ack'
|
let g:unite_source_grep_command = 'ack'
|
||||||
@ -178,12 +229,16 @@ elseif executable('beagrep')
|
|||||||
" https://github.com/baohaojun/beagrep
|
" https://github.com/baohaojun/beagrep
|
||||||
let g:unite_source_grep_command = 'beagrep'
|
let g:unite_source_grep_command = 'beagrep'
|
||||||
endif
|
endif
|
||||||
let g:unite_source_rec_async_command =
|
let g:unite_source_rec_async_command = get(g:,
|
||||||
|
\ 'unite_source_rec_async_command',
|
||||||
\ ['ag', '--follow', '--nocolor', '--nogroup',
|
\ ['ag', '--follow', '--nocolor', '--nogroup',
|
||||||
\ '--hidden', '-g', '']
|
\ '--hidden', '-g', ''])
|
||||||
nnoremap <silent><leader>ufa :<C-u>Unite -no-split -buffer-name=Mixed -start-insert file file_mru file_rec buffer<cr>
|
nnoremap <silent><leader>ufa :<C-u>Unite -no-split
|
||||||
nnoremap <silent><leader>ufr :<C-u>Unite -buffer-name=files file_rec/async:!<cr>
|
\ -buffer-name=Mixed -start-insert file file_mru file_rec buffer<cr>
|
||||||
nnoremap <silent><leader>ufg :<C-u>Unite -buffer-name=git-repo file_rec/git<cr>
|
nnoremap <silent><leader>ufr :<C-u>Unite
|
||||||
|
\ -buffer-name=files file_rec/async:!<cr>
|
||||||
|
nnoremap <silent><leader>ufg :<C-u>Unite
|
||||||
|
\ -buffer-name=git-repo file_rec/git<cr>
|
||||||
call unite#custom#profile('file_rec/async,file_rec/git', 'context', {
|
call unite#custom#profile('file_rec/async,file_rec/git', 'context', {
|
||||||
\ 'start_insert' : 1,
|
\ 'start_insert' : 1,
|
||||||
\ 'quit' : 1,
|
\ 'quit' : 1,
|
||||||
@ -191,11 +246,16 @@ call unite#custom#profile('file_rec/async,file_rec/git', 'context', {
|
|||||||
\ 'keep_focus' : 1,
|
\ 'keep_focus' : 1,
|
||||||
\ 'winheight' : 20,
|
\ 'winheight' : 20,
|
||||||
\ })
|
\ })
|
||||||
call unite#custom#source('file_rec/async', 'ignore_globs',['*.png','.git/','*.ttf'])
|
call unite#custom#source('file_rec/async', 'ignore_globs',
|
||||||
nnoremap <silent><leader>uf :<C-u>Unite -no-split -buffer-name=files -start-insert file<cr>
|
\ ['*.png','.git/','*.ttf'])
|
||||||
nnoremap <silent><leader>ufm :<C-u>Unite -no-split -buffer-name=mru -start-insert file_mru<cr>
|
nnoremap <silent><leader>uf :<C-u>Unite
|
||||||
nnoremap <silent><leader>ubf :<C-u>Unite -buffer-name=buffer buffer<cr>
|
\ -no-split -buffer-name=files -start-insert file<cr>
|
||||||
nnoremap <silent><leader>utb :<C-u>Unite -buffer-name=buffer_tab buffer_tab<cr>
|
nnoremap <silent><leader>ufm :<C-u>Unite
|
||||||
|
\ -no-split -buffer-name=mru -start-insert file_mru<cr>
|
||||||
|
nnoremap <silent><leader>ubf :<C-u>Unite
|
||||||
|
\ -buffer-name=buffer buffer<cr>
|
||||||
|
nnoremap <silent><leader>utb :<C-u>Unite
|
||||||
|
\ -buffer-name=buffer_tab buffer_tab<cr>
|
||||||
call unite#custom#profile('buffer,buffer_tab', 'context', {
|
call unite#custom#profile('buffer,buffer_tab', 'context', {
|
||||||
\ 'start_insert' : 0,
|
\ 'start_insert' : 0,
|
||||||
\ 'quit' : 1,
|
\ 'quit' : 1,
|
||||||
@ -208,14 +268,18 @@ nnoremap <silent><leader>f :<c-u>Unite tag/include:<C-R><C-w><CR>
|
|||||||
nnoremap <silent><leader>ff :<c-u>Unite tag/include -start-insert<CR>
|
nnoremap <silent><leader>ff :<c-u>Unite tag/include -start-insert<CR>
|
||||||
"" grep dictionay
|
"" grep dictionay
|
||||||
""" For searching the word in the cursor in the current directory
|
""" For searching the word in the cursor in the current directory
|
||||||
nnoremap <silent><leader>v :Unite -auto-preview -no-split grep:.::<C-R><C-w><CR>
|
nnoremap <silent><leader>v :Unite
|
||||||
|
\ -auto-preview -no-split grep:.::<C-R><C-w><CR>
|
||||||
""" For searching the word handin
|
""" For searching the word handin
|
||||||
nnoremap <silent><leader>vs :Unite -auto-preview -no-split grep:.<CR>
|
nnoremap <silent><leader>vs :Unite -auto-preview -no-split grep:.<CR>
|
||||||
""" For searching the word in the cursor in the current buffer
|
""" For searching the word in the cursor in the current buffer
|
||||||
noremap <silent><leader>vf :Unite -auto-preview -no-split grep:%::<C-r><C-w><CR>
|
noremap <silent><leader>vf :Unite
|
||||||
|
\ -auto-preview -no-split grep:%::<C-r><C-w><CR>
|
||||||
""" For searching the word in the cursor in all opened buffer
|
""" For searching the word in the cursor in all opened buffer
|
||||||
noremap <silent><leader>va :Unite -auto-preview -no-split grep:$buffers::<C-r><C-w><CR>
|
noremap <silent><leader>va :Unite
|
||||||
nnoremap <silent><Leader>bl :<C-u>Unite -start-insert -buffer-name=buffer buffer<cr>
|
\ -auto-preview -no-split grep:$buffers::<C-r><C-w><CR>
|
||||||
|
nnoremap <silent><Leader>bl :<C-u>Unite
|
||||||
|
\ -start-insert -buffer-name=buffer buffer<cr>
|
||||||
nnoremap <silent><Leader>ta :<C-u>Unite -start-insert -buffer-name=tag tag<cr>
|
nnoremap <silent><Leader>ta :<C-u>Unite -start-insert -buffer-name=tag tag<cr>
|
||||||
" search plugin
|
" search plugin
|
||||||
" :Unite neobundle/search
|
" :Unite neobundle/search
|
||||||
@ -223,8 +287,11 @@ nnoremap <silent><Leader>ta :<C-u>Unite -start-insert -buffer-name=tag tag<cr>
|
|||||||
nnoremap <silent><leader>ugg :Unite -silent -start-insert menu:git<CR>
|
nnoremap <silent><leader>ugg :Unite -silent -start-insert menu:git<CR>
|
||||||
nnoremap <silent><leader>ugf :UniteWithCursorWord file_rec/async<CR>
|
nnoremap <silent><leader>ugf :UniteWithCursorWord file_rec/async<CR>
|
||||||
nnoremap <silent><leader>ugt :UniteWithCursorWord tag<CR>
|
nnoremap <silent><leader>ugt :UniteWithCursorWord tag<CR>
|
||||||
nnoremap <silent><Leader>ls :Unite -silent -ignorecase -winheight=17 -start-insert menu:MyStarredrepos<CR>
|
nnoremap <silent><Leader>ls :Unite
|
||||||
nnoremap <silent><Leader>lm :Unite -silent -ignorecase -winheight=17 -start-insert menu:MpvPlayer<CR>
|
\ -silent -ignorecase -winheight=17
|
||||||
|
\ -start-insert menu:MyStarredrepos<CR>
|
||||||
|
nnoremap <silent><Leader>lm :Unite
|
||||||
|
\ -silent -ignorecase -winheight=17 -start-insert menu:MpvPlayer<CR>
|
||||||
call zvim#util#loadMusics()
|
call zvim#util#loadMusics()
|
||||||
augroup unite_buffer_feature
|
augroup unite_buffer_feature
|
||||||
autocmd FileType unite call s:unite_my_settings()
|
autocmd FileType unite call s:unite_my_settings()
|
||||||
@ -279,4 +346,4 @@ function! s:unite_my_settings()
|
|||||||
imap <silent><buffer><expr> <C-s> unite#do_action('split')
|
imap <silent><buffer><expr> <C-s> unite#do_action('split')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" vim:set et sw=2:
|
" vim:set et sw=2 cc=80:
|
||||||
|
@ -31,18 +31,19 @@ CONTENTS *SpaceVim-contents*
|
|||||||
8. incsearch..................................|SpaceVim-layer-incsearch|
|
8. incsearch..................................|SpaceVim-layer-incsearch|
|
||||||
9. indentmove................................|SpaceVim-layer-indentmove|
|
9. indentmove................................|SpaceVim-layer-indentmove|
|
||||||
10. lang#c.......................................|SpaceVim-layer-lang-c|
|
10. lang#c.......................................|SpaceVim-layer-lang-c|
|
||||||
11. lang#elixir.............................|SpaceVim-layer-lang-elixir|
|
11. lang#crystal...........................|SpaceVim-layer-lang-crystal|
|
||||||
12. lang#go.....................................|SpaceVim-layer-lang-go|
|
12. lang#elixir.............................|SpaceVim-layer-lang-elixir|
|
||||||
13. lang#java.................................|SpaceVim-layer-lang-java|
|
13. lang#go.....................................|SpaceVim-layer-lang-go|
|
||||||
14. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
|
14. lang#java.................................|SpaceVim-layer-lang-java|
|
||||||
15. lang#php...................................|SpaceVim-layer-lang-php|
|
15. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
|
||||||
16. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
16. lang#php...................................|SpaceVim-layer-lang-php|
|
||||||
17. lang#python.............................|SpaceVim-layer-lang-python|
|
17. lang#puppet.............................|SpaceVim-layer-lang-puppet|
|
||||||
18. lang#rust.................................|SpaceVim-layer-lang-rust|
|
18. lang#python.............................|SpaceVim-layer-lang-python|
|
||||||
19. lang#xml...................................|SpaceVim-layer-lang-xml|
|
19. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||||
20. operator...................................|SpaceVim-layer-operator|
|
20. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||||
21. shell.........................................|SpaceVim-layer-shell|
|
21. operator...................................|SpaceVim-layer-operator|
|
||||||
22. tmux...........................................|SpaceVim-layer-tmux|
|
22. shell.........................................|SpaceVim-layer-shell|
|
||||||
|
23. tmux...........................................|SpaceVim-layer-tmux|
|
||||||
6. API........................................................|SpaceVim-api|
|
6. API........................................................|SpaceVim-api|
|
||||||
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
|
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
|
||||||
7. FAQ........................................................|SpaceVim-faq|
|
7. FAQ........................................................|SpaceVim-faq|
|
||||||
@ -155,6 +156,18 @@ Set the warning symbol for SpaceVim's syntax maker. Default is '⚠'.
|
|||||||
let g:spacevim_warning_symbol = '!'
|
let g:spacevim_warning_symbol = '!'
|
||||||
<
|
<
|
||||||
|
|
||||||
|
*g:spacevim_terminal_cursor_shape*
|
||||||
|
Set the SpaceVim cursor shape in the terminal. Set to 0 to prevent Nvim from
|
||||||
|
changing the cursor shape. Set to 1 to enable non-blinking mode-sensitive
|
||||||
|
cursor (this is the default). Set to 2 to enable blinking mode-sensitive
|
||||||
|
cursor. Host terminal must support the DECSCUSR CSI escape sequence.
|
||||||
|
|
||||||
|
Depending on the terminal emulator, using this option with nvim under tmux
|
||||||
|
might require adding the following to ~/.tmux.conf:
|
||||||
|
>
|
||||||
|
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
|
||||||
|
<
|
||||||
|
|
||||||
*g:spacevim_vim_help_language*
|
*g:spacevim_vim_help_language*
|
||||||
Set the help language of vim. Default is 'en'. You can change it to Chinese.
|
Set the help language of vim. Default is 'en'. You can change it to Chinese.
|
||||||
>
|
>
|
||||||
@ -195,7 +208,7 @@ neobundle, or vim-plug.
|
|||||||
*g:spacevim_checkinstall*
|
*g:spacevim_checkinstall*
|
||||||
Enable/Disable checkinstall on SpaceVim startup. Default is 1.
|
Enable/Disable checkinstall on SpaceVim startup. Default is 1.
|
||||||
>
|
>
|
||||||
let g:spacevim_checkinstall = 0
|
let g:spacevim_checkinstall = 1
|
||||||
<
|
<
|
||||||
|
|
||||||
*g:spacevim_enable_debug*
|
*g:spacevim_enable_debug*
|
||||||
@ -605,6 +618,13 @@ Configuration for `tweekmonster/deoplete-clang2`:
|
|||||||
50, setting it to 0 disables this feature.
|
50, setting it to 0 disables this feature.
|
||||||
|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LANG#CRYSTAL *SpaceVim-layer-lang-crystal*
|
||||||
|
|
||||||
|
INTRO
|
||||||
|
The lang#crystal layer provides crystal filetype detection and syntax
|
||||||
|
highlight, crystal tool and crystal spec integration.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
LANG#ELIXIR *SpaceVim-layer-lang-elixir*
|
LANG#ELIXIR *SpaceVim-layer-lang-elixir*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user