vi 鼠标切换 vimrc

"To mouse modle
let s:mouseModle = "N"
function! ToMouseModle()
    if s:mouseModle == "Y"
        set mouse=a
        let s:mouseModle = "N"
    else
        set mouse-=a
        let s:mouseModle = "Y"
    endif
endfunction

nmap <C-m> :call ToMouseModle()<cr>


 

你可能感兴趣的:(vi 鼠标切换 vimrc)