2018-03-11 19:21:58 -04:00
|
|
|
"autostart filer when vim opens to an empty buffer (default: 1)
|
|
|
|
if !exists("g:autostartfiler")
|
2018-03-11 23:36:47 -04:00
|
|
|
let g:autostartfiler = 1
|
2018-03-11 19:21:58 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if (g:autostartfiler == 1)
|
|
|
|
autocmd VimEnter * if !argc() | VimFiler -quit -project | endif
|
|
|
|
endif
|
|
|
|
|
2018-03-11 23:36:47 -04:00
|
|
|
let g:vimfiler_as_default_explorer = 1
|
|
|
|
let g:vimfiler_safe_mode_by_default = 0
|
|
|
|
let g:vimfiler_enable_auto_cd = 1
|
2018-03-11 19:21:58 -04:00
|
|
|
|
2018-03-11 23:36:47 -04:00
|
|
|
let g:vimfiler_tree_indentation = 2
|
|
|
|
let g:vimfiler_explorer_columns = 'type:time'
|
|
|
|
let g:vimfiler_tree_closed_icon = '▸' "['▶', '▼'], ['▸', '▾'], ['▷', '◢']
|
|
|
|
let g:vimfiler_tree_opened_icon = '▾'
|
|
|
|
let g:vimfiler_file_icon = '-'
|
|
|
|
let g:vimfiler_marked_file_icon = '+'
|
2018-03-11 19:21:58 -04:00
|
|
|
|
|
|
|
"edit files by double clicking them, and justify the cursor on the left
|
|
|
|
autocmd FileType vimfiler setlocal nonumber nocursorcolumn
|
|
|
|
|
|
|
|
"load the list of file extensions and handlers if it exists
|
|
|
|
if filereadable(glob("~/.vim/filetypes.vim"))
|
|
|
|
source ~/.vim/filetypes.vim
|
|
|
|
endif
|