mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Tips: unfancy mappings for n/N
This commit is contained in:
parent
1607cc4353
commit
169f82e10a
@ -411,8 +411,8 @@ searching forward or backward respectively. This is pretty confusing to me.
|
||||
|
||||
If you want `n` to always search forward and `N` backward, use this:
|
||||
```viml
|
||||
nnoremap <expr> n 'Nn'[v:searchforward].'zvzz'
|
||||
nnoremap <expr> N 'nN'[v:searchforward].'zvzz'
|
||||
nnoremap <expr> n 'Nn'[v:searchforward]
|
||||
nnoremap <expr> N 'nN'[v:searchforward]
|
||||
```
|
||||
|
||||
#### Quickly move current line
|
||||
|
Loading…
x
Reference in New Issue
Block a user