Add mappings for saner behavior of and N

Add visual and operator-pending modes mappings
This commit is contained in:
Asheq Imran
2018-09-19 15:48:00 -07:00
committed by GitHub
parent 8bc1efb762
commit 20f20b4105

View File

@@ -1997,7 +1997,12 @@ If you want `n` to always search forward and `N` backward, use this:
```vim
nnoremap <expr> n 'Nn'[v:searchforward]
xnoremap <expr> n 'Nn'[v:searchforward]
onoremap <expr> n 'Nn'[v:searchforward]
nnoremap <expr> N 'nN'[v:searchforward]
xnoremap <expr> N 'nN'[v:searchforward]
onoremap <expr> N 'nN'[v:searchforward]
```
## Saner command-line history