I currently have n and N mapped to nzz and Nzz respecitively, which is nice insofar as it centers results. However, I'd like it if vim could just do n if the next result is already on the screen and do nzz otherwise. Any ideas on how one might accomplish this?
this post has a function that accomplishes request
https://www.reddit.com/r/vim/comments/4jy1mh/slightly_more_subltle_n_and_n_behavior/
this post has a function that accomplishes request