Skip to content

[question]: purpose of "forcing normal mode" in filetype normal mode mapping #242

Open
@CrispyDrone

Description

@CrispyDrone

I just have a simple questiona about what the purpose is of <C-\><C-n> in this normal mode mapping? We're already in normal mode, and by using <nowait> I assume it's also not possible to exit normal mode before the mapping would apply?

execute 'nnoremap '.s:nowait.'<buffer><silent> <C-n> <C-\><C-n>j:call feedkeys("p")<CR>'
execute 'nnoremap '.s:nowait.'<buffer><silent> <C-p> <C-\><C-n>k:call feedkeys("p")<CR>'

Thanks!

edit: Oh, I just realized that for versions of vim 703 or older s:nowait is empty, so maybe in those cases it could be possible to leave normal mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions