Open alexishevia opened 6 years ago
Having the same issue.
I had the same issue
My ~/.vimrc had the following mappings (for vim-go)
map <C-m> :cprevious<CR>
I've turned it into
autocmd FileType go map <C-m> :cprevious<CR>
This fixes <ENTER>
in :Toc
for me.
The documentation for
:Toc
says:However, I already have a mapping for
<Enter>
on my vimrc:Which causes
<Enter>
inside the:Toc
buffer to return an error:If I disable my mapping with
:unmap <CR>
then the:Toc
jump-to-line behavior starts working. However, that causes my<CR>
mapping to be lost for all buffers.Is there a way to remove my
<CR>
mapping only in the:Toc
buffer? Or a way to make theToc
mapping for<CR>
be more specific than my.vimrc
mapping? Or a way to use a different key for the jump-to-line behavior?