1
0
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:
wsdjeg 2017-01-07 10:19:19 +08:00
parent e30e876f7b
commit 80407a48ca
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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