Re: conditional mapping of , depending on whether plugin exists

2018-05-30 Thread Bok Woon Chua
On Wednesday, 30 May 2018 22:02:53 UTC+8, Luc Hermitte wrote: > Hi, > > - Mail original - > > I use https://github.com/terryma/vim-smooth-scroll and so I bind > > & to ":call smooth_scroll#down(, 5, 2)" & > > ":call smooth_scroll#up(, 5, 2)" respectively. However I > > would like &

Re: conditional mapping of , depending on whether plugin exists

2018-05-30 Thread Luc Hermitte
Hi, - Mail original - > I use https://github.com/terryma/vim-smooth-scroll and so I bind > & to ":call smooth_scroll#down(, 5, 2)" & > ":call smooth_scroll#up(, 5, 2)" respectively. However I > would like & to default to their original behaviour if > the smooth scroll plugin isn't

conditional mapping of , depending on whether plugin exists

2018-05-30 Thread Bok Woon Chua
I use https://github.com/terryma/vim-smooth-scroll and so I bind & to ":call smooth_scroll#down(, 5, 2)" & ":call smooth_scroll#up(, 5, 2)" respectively. However I would like & to default to their original behaviour if the smooth scroll plugin isn't loaded. I've tried this: if