pseewald / vim-anyfold

Language agnostic vim plugin for folding and motion based on indentation.
MIT License
268 stars 11 forks source link

Unexpected folding and noticeable lag when paired with vim-multiple-cursors #25

Closed joshddunn closed 1 year ago

joshddunn commented 5 years ago

Unintentional folding (without set foldlevel=99)

example

Noticeable lag (with set foldlevel=99)

example2

Cause

Seems to be caused by this line.

Minimal vim config to recreate this

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'pseewald/vim-anyfold'
Plugin 'terryma/vim-multiple-cursors'

call vundle#end()            " required
filetype plugin indent on    " required

autocmd Filetype * AnyFoldActivate

let g:multi_cursor_start_word_key = '<C-s>'
let g:multi_cursor_next_key = '<C-s>'
let g:multi_cursor_quit_key = '<Esc>'