mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:40:05 +08:00
Improve start up windows
This commit is contained in:
parent
e30e876f7b
commit
80407a48ca
@ -58,6 +58,7 @@ function! SpaceVim#autocmds#init() abort
|
|||||||
endif
|
endif
|
||||||
autocmd VimResized * wincmd =
|
autocmd VimResized * wincmd =
|
||||||
autocmd BufWritePost *.vim call s:generate_doc()
|
autocmd BufWritePost *.vim call s:generate_doc()
|
||||||
|
autocmd FileType * set scrolloff=7
|
||||||
augroup END
|
augroup END
|
||||||
endfunction
|
endfunction
|
||||||
function! s:reload_touchpad_status() abort
|
function! s:reload_touchpad_status() abort
|
||||||
|
@ -386,7 +386,7 @@ if zvim#plug#enable_plug()
|
|||||||
let g:indentLine_char = '¦'
|
let g:indentLine_char = '¦'
|
||||||
let g:indentLine_concealcursor = 'niv' " (default 'inc')
|
let g:indentLine_concealcursor = 'niv' " (default 'inc')
|
||||||
let g:indentLine_conceallevel = 2 " (default 2)
|
let g:indentLine_conceallevel = 2 " (default 2)
|
||||||
let g:indentLine_fileTypeExclude = ['help']
|
let g:indentLine_fileTypeExclude = ['help', 'startify']
|
||||||
call zvim#plug#add('godlygeek/tabular', { 'on_cmd': 'Tabularize'})
|
call zvim#plug#add('godlygeek/tabular', { 'on_cmd': 'Tabularize'})
|
||||||
call zvim#plug#add('benizi/vim-automkdir')
|
call zvim#plug#add('benizi/vim-automkdir')
|
||||||
"[c ]c jump between prev or next hunk
|
"[c ]c jump between prev or next hunk
|
||||||
|
@ -45,6 +45,8 @@ fu! <SID>startify_mapping()
|
|||||||
endif
|
endif
|
||||||
endf
|
endf
|
||||||
augroup startify_map
|
augroup startify_map
|
||||||
|
au!
|
||||||
autocmd FileType startify nnoremap <buffer><F2> <Nop>
|
autocmd FileType startify nnoremap <buffer><F2> <Nop>
|
||||||
autocmd FileType startify call <SID>startify_mapping()
|
autocmd FileType startify call <SID>startify_mapping()
|
||||||
|
autocmd FileType startify set scrolloff=0
|
||||||
augroup END
|
augroup END
|
||||||
|
Loading…
Reference in New Issue
Block a user