wsdjeg / .SpaceVim.d

My dotfiles for Archlinux and Windows
1.44k stars 133 forks source link

How to switch between `virtualedit=all`and `` ? #6

Closed wsdjeg closed 8 years ago

wsdjeg commented 8 years ago
nnoremap <silent> <leader>v :call VirtualToggl()<cr>
function VirtualToggl()
    if match(&virtualedit,"all")==-1
        set virtualedit=all
    else
        set virtualedit=
    endif
endf