File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,17 +105,17 @@ if !exists("g:vimfootnotelinebreak")
105
105
endif
106
106
107
107
" Mappings
108
- if ! hasmapto (' <Plug>AddVimFootnote' , ' i' )
108
+ if ! hasmapto (' <Plug>AddVimFootnote' , ' i' ) && mapcheck ( ' <Leader>f ' , ' i ' ) is # ' '
109
109
imap <buffer> <Leader> f <Plug> AddVimFootnote
110
110
endif
111
- if ! hasmapto (' <Plug>AddVimFootnote' , ' n' )
111
+ if ! hasmapto (' <Plug>AddVimFootnote' , ' n' ) && mapcheck ( ' <Leader>f ' , ' n ' ) is # " "
112
112
nmap <buffer> <Leader> f <Plug> AddVimFootnote
113
113
endif
114
114
115
- if ! hasmapto (' <Plug>ReturnFromFootnote' , ' i' )
115
+ if ! hasmapto (' <Plug>ReturnFromFootnote' , ' i' ) && mapcheck ( ' <Leader>r ' , ' i ' ) is # ' '
116
116
imap <buffer> <Leader> r <Plug> ReturnFromFootnote
117
117
endif
118
- if ! hasmapto (' <Plug>ReturnFromFootnote' , ' n' )
118
+ if ! hasmapto (' <Plug>ReturnFromFootnote' , ' n' ) && mapcheck ( ' <Leader>r ' , ' n ' ) is # ' '
119
119
nmap <buffer> <Leader> r <Plug> ReturnFromFootnote
120
120
endif
121
121
You can’t perform that action at this time.
0 commit comments