Re: How can I set cursorline only during a search?

2018-06-13 Thread Bok Woon Chua
On Thursday, 14 June 2018 03:45:56 UTC+8, Andy Wokula wrote: > Am 13.06.2018 um 21:04 schrieb Bok Woon Chua: > > I don't use the cursorline, but I would find it helpful to set it > > during a whenever I press 'n' or 'N' to make the line of the current

How can I set cursorline only during a search?

2018-06-13 Thread Bok Woon Chua
I don't use the cursorline, but I would find it helpful to set it during a whenever I press 'n' or 'N' to make the line of the current search match pop out. However once I press anything other than n or N, I'd like to turn the cursorline off. I can do something like 'nnoremap n :setlocal cursorl

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(&scroll, 5, 2)" & > > ":call smooth_scroll#up(&scroll, 5, 2)" respectively. However I > > wou

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(&scroll, 5, 2)" & ":call smooth_scroll#up(&scroll, 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: