New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
n/N で normal!, noremap した時とデフォルトのfoldの扱いが違う #644
Comments
の値も教えて下さい。 追記
|
|
なるほど 'foldopen' のヘルプにマッピングとして実行されたときはこのオプションは ただ |
src/option.h : 468 # define FDO_ALL 0x001
# define FDO_BLOCK 0x002
# define FDO_HOR 0x004
# define FDO_MARK 0x008
# define FDO_PERCENT 0x010
# define FDO_QUICKFIX 0x020
# define FDO_SEARCH 0x040
# define FDO_TAG 0x080
# define FDO_INSERT 0x100
# define FDO_UNDO 0x200
# define FDO_JUMP 0x400 FDO_ALL でソースをgrepするとFDO_ALL単独での比較しか出てこないw |
せめて any にしてほしいww |
TL;DR
n
/N
=> カーソル下のfoldを開く:normal! n
=> foldを開かない (開いて欲しいけど仕様?):nnoremap <Leader>n n
して<Leader>n
=> foldを開かない(開いて欲しい)再現手順
test.txt
vim -N -u NONE test.txt
/destination
n
=> fold が開かれる(なおnormal! n
だと開かれないので直接打つ):normal! NzM
:nnoremap <Leader>n n
<Leader>n
=> foldが開かれないnormal!
だと直接打った場合と違う仕様になってるというのは他のマップでもそういうものがあるので問題ないとは思うのですが、:noremap
によって挙動が変わってしまうのは混乱を招くと思われますThe text was updated successfully, but these errors were encountered: