aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/grappele.vim
blob: a0f0aa299a7813ae450a7d8de14968714ac0457a (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
if exists('g:loaded_grappele')
	finish
endif
let g:loaded_grappele = 1


nnoremap <silent> <Plug>Grappele :<c-u>call grappele#Grappele(v:count)<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)<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