mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
Add spacevim option for vimfiler colums
This commit is contained in:
parent
3aaeb9a910
commit
d63d25a953
@ -273,6 +273,12 @@ let g:spacevim_lint_on_save = 1
|
|||||||
" let g:spacevim_enable_vimfiler_welcome = 0
|
" let g:spacevim_enable_vimfiler_welcome = 0
|
||||||
" <
|
" <
|
||||||
let g:spacevim_enable_vimfiler_welcome = 1
|
let g:spacevim_enable_vimfiler_welcome = 1
|
||||||
|
""
|
||||||
|
" Enable/Disable gitstatus colum in vimfiler buffer, default is 0.
|
||||||
|
let g:spacevim_enable_vimfiler_gitstatus = 0
|
||||||
|
""
|
||||||
|
" Enable/Disable filetypeicon colum in vimfiler buffer, default is 0.
|
||||||
|
let g:spacevim_enable_vimfiler_filetypeicon = 0
|
||||||
let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default']
|
let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default']
|
||||||
let g:spacevim_smartcloseignoreft = ['help']
|
let g:spacevim_smartcloseignoreft = ['help']
|
||||||
let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler']
|
let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler']
|
||||||
|
@ -23,7 +23,18 @@ if has('mac')
|
|||||||
else
|
else
|
||||||
let g:vimfiler_quick_look_command = 'gloobus-preview'
|
let g:vimfiler_quick_look_command = 'gloobus-preview'
|
||||||
endif
|
endif
|
||||||
try
|
function! s:setcolum() abort
|
||||||
|
if g:spacevim_enable_vimfiler_filetypeicon && !g:spacevim_enable_vimfiler_gitstatus
|
||||||
|
return 'filetypeicon'
|
||||||
|
elseif !g:spacevim_enable_vimfiler_filetypeicon && g:spacevim_enable_vimfiler_gitstatus
|
||||||
|
return 'gitstatus'
|
||||||
|
elseif g:spacevim_enable_vimfiler_filetypeicon && g:spacevim_enable_vimfiler_gitstatus
|
||||||
|
return 'filetypeicon:gitstatus'
|
||||||
|
else
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
"try
|
||||||
call vimfiler#custom#profile('default', 'context', {
|
call vimfiler#custom#profile('default', 'context', {
|
||||||
\ 'explorer' : 1,
|
\ 'explorer' : 1,
|
||||||
\ 'winwidth' : g:spacevim_sidebar_width,
|
\ 'winwidth' : g:spacevim_sidebar_width,
|
||||||
@ -31,7 +42,7 @@ try
|
|||||||
\ 'toggle' : 1,
|
\ 'toggle' : 1,
|
||||||
\ 'auto_expand': 1,
|
\ 'auto_expand': 1,
|
||||||
\ 'direction' : 'rightbelow',
|
\ 'direction' : 'rightbelow',
|
||||||
\ 'explorer_columns' : 'filetypeicon',
|
\ 'explorer_columns' : s:setcolum(),
|
||||||
\ 'parent': 0,
|
\ 'parent': 0,
|
||||||
\ 'status' : 1,
|
\ 'status' : 1,
|
||||||
\ 'safe' : 0,
|
\ 'safe' : 0,
|
||||||
@ -40,8 +51,9 @@ try
|
|||||||
\ 'no_quit' : 1,
|
\ 'no_quit' : 1,
|
||||||
\ 'force_hide' : 0,
|
\ 'force_hide' : 0,
|
||||||
\ })
|
\ })
|
||||||
catch
|
|
||||||
endtry
|
"catch
|
||||||
|
"endtry
|
||||||
augroup vfinit
|
augroup vfinit
|
||||||
au!
|
au!
|
||||||
autocmd FileType vimfiler call s:vimfilerinit()
|
autocmd FileType vimfiler call s:vimfilerinit()
|
||||||
|
@ -296,6 +296,12 @@ vim to start up slowly if there are too many files in the current directory.
|
|||||||
let g:spacevim_enable_vimfiler_welcome = 0
|
let g:spacevim_enable_vimfiler_welcome = 0
|
||||||
<
|
<
|
||||||
|
|
||||||
|
*g:spacevim_enable_vimfiler_gitstatus*
|
||||||
|
Enable/Disable gitstatus colum in vimfiler buffer, default is 0.
|
||||||
|
|
||||||
|
*g:spacevim_enable_vimfiler_filetypeicon*
|
||||||
|
Enable/Disable filetypeicon colum in vimfiler buffer, default is 0.
|
||||||
|
|
||||||
*g:spacevim_hosts_url*
|
*g:spacevim_hosts_url*
|
||||||
The host file url. This option is for Chinese users who can not use Google and
|
The host file url. This option is for Chinese users who can not use Google and
|
||||||
Twitter.
|
Twitter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user