blob: 9ab1400bf5a34a12a92797e94c4fb14a37090042 (
plain)
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
|
if exists('g:loaded_grappele')
finish
endif
let g:loaded_grappele = 1
nnoremap <silent> <Plug>Grappele :<c-u>call grappele#Grappele(v:count, 'n')<cr>
nnoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall('n')<cr>
vnoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall('v')<cr>
onoremap <silent> <Plug>GrappeleRecall :<c-u>call grappele#Recall('o')<cr>
if !hasmapto('<Plug>Grappele') || !maparg('G', 'n')
nnoremap <silent> G :<c-u>call grappele#Grappele(v:count, 'n')<cr>
endif
if !hasmapto('<Plug>Grappele') || !maparg('G', 'v')
vnoremap <silent> G
\ :<c-u>call grappele#Grappele(v:count, 'v', visualmode())<cr>
endif
if !hasmapto('<Plug>Grappele') || !maparg('G', 'o')
onoremap <silent> G :<c-u>call grappele#Grappele(v:count, 'o')<cr>
endif
if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'n')
nmap gG <Plug>GrappeleRecall
endif
if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'v')
vmap gG <Plug>GrappeleRecall
endif
if !hasmapto('<Plug>GrappeleRecall') || !maparg('gG', 'o')
omap gG <Plug>GrappeleRecall
endif
|