Friday, May 1, 2015

RE: reverting keymaps for location-list buffer

Stephan Sahm wrote:
> I remapped <CR> and I really like my remapping. There are
> however some problems For quickfix buffers I found this:
>
> autocmd BufReadPost quickfix nnoremap <CR> <CR>
>
> is there something similar for location-list buffers?

To make Enter work normally in a quickfix window, rather than
rely on auto commands, you can create file:

~/vimfiles/ftplugin/qf.vim

containing the single line:

nnoremap <buffer> <CR> <CR>

The above is all that is needed to make Enter behave as Enter
in quickfix and local-list buffers (in normal mode, which is
all you need).

John


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment