forked from vim-fall/fall.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcursor.vim
More file actions
46 lines (38 loc) 路 1.01 KB
/
Copy pathcursor.vim
File metadata and controls
46 lines (38 loc) 路 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
let s:t_ve_saved = &t_ve
function! fall#internal#cursor#hide() abort
call s:hide_cursor()
endfunction
function! fall#internal#cursor#show() abort
call s:show_cursor()
endfunction
if has('nvim-0.5.0')
function! s:hide_cursor() abort
set guicursor+=a:FallTransparentCursor/lCursor
endfunction
function! s:show_cursor() abort
set guicursor-=a:FallTransparentCursor/lCursor
endfunction
function! s:highlight() abort
highlight FallTransparentCursor gui=strikethrough blend=100
endfunction
call s:highlight()
augroup fall_internal_cursor
autocmd!
autocmd ColorScheme * call s:highlight()
augroup END
elseif has('nvim') || has('gui_running')
function! s:hide_cursor() abort
let s:guicursor_saved = &guicursor
set guicursor+=a:ver1
endfunction
function! s:show_cursor() abort
let &guicursor = s:guicursor_saved
endfunction
else
function! s:hide_cursor() abort
set t_ve=
endfunction
function! s:show_cursor() abort
let &t_ve = s:t_ve_saved
endfunction
endif