JaredVogt / vimrc

CONFIG: my vimrc
0 stars 0 forks source link

nzz and Nzz - implement #17

Open JaredVogt opened 8 years ago

JaredVogt commented 8 years ago

https://www.reddit.com/r/vim/comments/4jy1mh/slightly_more_subltle_n_and_n_behavior/

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