I have no idea what happened. One second n would search forward and N would search backwards and the next, n would search backwards and N would search forward.
What could I have possibly done, and how I can I revert back to the normal scheme.
(Note: I made sure that caps locks wasn’t on =P )
When you start your search command with
/(search forward command) thennsearches forward andNsearches backwards. And when you start with?(backward search) thennsearch backwards andNsearch forward. See:help nand:help N.You can consider
nas a shorthand for a “next matching of the last search in the same direction”.Nhas “opposite” meaning, it is common case for Vim one-key moving commands (wandW,fandFetc.)