1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00
This commit is contained in:
Shidong Wang 2018-12-16 14:13:51 +08:00
parent 40c64edc15
commit 405779cf2e
2 changed files with 20 additions and 3 deletions

View File

@ -210,9 +210,6 @@ function! SpaceVim#default#keyBindings() abort
inoremap <silent><C-S-Up> <Esc>:m .-2<CR>==gi
vnoremap <silent><C-S-Down> :m '>+1<CR>gv=gv
vnoremap <silent><C-S-Up> :m '<-2<CR>gv=gv
" download gvimfullscreen.dll from github, copy gvimfullscreen.dll to
" the directory that has gvim.exe
nnoremap <F11> :call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<cr>
" Start new line
inoremap <S-Return> <C-o>o

View File

@ -106,7 +106,27 @@ function! SpaceVim#layers#ui#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['t', 'w'], 'call call('
\ . string(s:_function('s:toggle_whitespace')) . ', [])',
\ 'toggle highlight tail spaces', 1)
" download gvimfullscreen.dll from github, copy gvimfullscreen.dll to
" the directory that has gvim.exe
if has('nvim')
nnoremap <silent> <F11> :call <SID>toggle_full_screen()<Cr>
else
nnoremap <silent> <F11> :call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<cr>
endif
endfunction
let s:fullscreen_flag = 0
function! s:toggle_full_screen() abort
if s:fullscreen_flag == 0
call GuiWindowFullScreen(1)
let s:fullscreen_flag = 1
else
call GuiWindowFullScreen(0)
let s:fullscreen_flag = 0
endif
endfunction
" function() wrapper
if v:version > 703 || v:version == 703 && has('patch1170')
function! s:_function(fstr) abort