With this .vimrc
:
nnoremap [ :lp^M
nnoremap ] :lne^M
filetype plugin on
vim
becomes sluggish when switching between "errors" of location list with square brackets. As opposed to using lprevious
/lnext
directly. The same goes for mapping brackets to cprevious
/cnext
.
Everything is okay without enabling filetype plugins (just filetype on
). Or if filetype plugin on
is executed after vim
has started. Or if vim
is started as follows: vim -u ~/.vimrc
.
[
and]
which may explain that sluggishness: if you have something mapped to]]
("next method" in python files), for example, Vim will wait a bit in order to see if you want]
or]]
. – romainl May 21 '15 at 19:54filetype plugin on
is executed aftervim
has started? – x-yuri May 21 '15 at 20:03