README: add mappings for saner behavior of and N (#137)

Add visual and operator-pending modes mappings
This commit is contained in:
Asheq Imran 2018-10-03 05:00:06 -07:00 committed by Marco Hinz
parent 05ccf170ef
commit 765dcc6809

View File

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