mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
Merge branch 'dev' into fixup
This commit is contained in:
commit
d13bdff59a
@ -373,6 +373,40 @@ function! SpaceVim#layers#core#statusline#config() abort
|
||||
endfunction
|
||||
let g:tagbar_status_func = 'TagbarStatusline'
|
||||
let g:unite_force_overwrite_statusline = 0
|
||||
let g:ctrlp_status_func = {
|
||||
\ 'main': 'SpaceVim#layers#core#statusline#ctrlp',
|
||||
\ 'prog': 'SpaceVim#layers#core#statusline#ctrlp_status',
|
||||
\ }
|
||||
endfunction
|
||||
|
||||
" Arguments:
|
||||
" |
|
||||
" +- a:focus : The focus of the prompt: "prt" or "win".
|
||||
" |
|
||||
" +- a:byfname : In filename mode or in full path mode: "file" or "path".
|
||||
" |
|
||||
" +- a:regex : In regex mode: 1 or 0.
|
||||
" |
|
||||
" +- a:prev : The previous search mode.
|
||||
" |
|
||||
" +- a:item : The current search mode.
|
||||
" |
|
||||
" +- a:next : The next search mode.
|
||||
" |
|
||||
" +- a:marked : The number of marked files, or a comma separated list of
|
||||
" the marked filenames.
|
||||
function! SpaceVim#layers#core#statusline#ctrlp(focus, byfname, regex, prev, item, next, marked) abort
|
||||
return s:STATUSLINE.build([' Ctrlp ', ' ' . a:prev . ' ', ' ' . a:item . ' ', ' ' . a:next . ' '],
|
||||
\ [' ' . a:focus . ' ', ' ' . a:byfname . ' ', ' ' . getcwd() . ' '], s:lsep, s:rsep,
|
||||
\ 'SpaceVim_statusline_a_bold', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z')
|
||||
endfunction
|
||||
|
||||
" a:str : Either the number of files scanned so far, or a string indicating
|
||||
" the current directory is being scanned with a user_command.
|
||||
function! SpaceVim#layers#core#statusline#ctrlp_status(str) abort
|
||||
return s:STATUSLINE.build([' Ctrlp ', ' ' . a:str . ' '],
|
||||
\ [' ' . getcwd() . ' '], s:lsep, s:rsep,
|
||||
\ 'SpaceVim_statusline_a', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z')
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#core#statusline#jump(i) abort
|
||||
@ -428,3 +462,5 @@ function! SpaceVim#layers#core#statusline#unite_mode()
|
||||
endif
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
" vim:set et sw=2 cc=80:
|
||||
|
@ -1,4 +1,6 @@
|
||||
let g:Config_Main_Home = fnamemodify(expand('<sfile>'), ':p:h:gs?\\?'.((has('win16') || has('win32') || has('win64'))?'\':'/') . '?')
|
||||
let g:Config_Main_Home = fnamemodify(expand('<sfile>'),
|
||||
\ ':p:h:gs?\\?'.((has('win16') || has('win32')
|
||||
\ || has('win64'))?'\':'/') . '?')
|
||||
|
||||
|
||||
" [dir?, path]
|
||||
@ -58,3 +60,5 @@ endif
|
||||
call zvim#util#source_rc('commands.vim')
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
|
||||
" vim:set et sw=2 cc=80:
|
||||
|
@ -847,7 +847,7 @@ SpaceVim use vimfiler as the default file tree, and the default key binding is `
|
||||
let g:spacevim_filemanager = 'nerdtree'
|
||||
```
|
||||
|
||||
VCS integration is supported, there will be a colum status, this feature maybe make vimfiler slow, so it is not enabled by default. to enable this feature, add `let g:spacevim_enable_vimfiler_gitstatus = 1` to your custom config. here is any picture for this feature:
|
||||
VCS integration is supported, there will be a column status, this feature maybe make vimfiler slow, so it is not enabled by default. to enable this feature, add `let g:spacevim_enable_vimfiler_gitstatus = 1` to your custom config. here is any picture for this feature:
|
||||
|
||||
![file-tree](https://user-images.githubusercontent.com/13142418/26881817-279225b2-4bcb-11e7-8872-7e4bd3d1c84e.png)
|
||||
|
||||
@ -887,8 +887,6 @@ If there is only one file buffer opened, a file is opened in the active window,
|
||||
| `sg` | open file in an vertically split window |
|
||||
| `sv` | open file in an horizontally split window |
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
### Commands starting with `g`
|
||||
|
||||
after pressing prefix `g` in normal mode, if you do not remember the mappings, you will see the guide which will tell you the functional of all mappings starting with `g`.
|
||||
|
Loading…
Reference in New Issue
Block a user