Vim Editor Editor Speed

The problem is this: slows down when i add the following lines to :

set foldmethod=syntax 
set foldlevelstart=1 
let javaScript_fold=1 " JavaScript 
let perl_fold=1 " Perl 
let php_folding=1 " PHP 
let r_syntax_folding=1 " R 
let ruby_fold=1 " Ruby 
let sh_fold_enabled=1 " sh 
let vimsyn_folding='af' " Vim script 
let xml_syntax_folding=1 " XML 

Context: when editing file

I think this is fair enough for it to slow down when:

  • opening a new file, recalculation of syntactic folds (for example, defs collapse function)
  • creating a new function definition

... but ... to do this everywhere?

Do you use / see the same? What can be done to improve slowness if anything?


It took me a day to identify this, successfully reproduce it anywhere on my (virtual and non) machines, excluding candidates contributing to the overall slowness of the vimrc binary search process .


My environment

VIM - Vi IMproved 7.3 (2010 15 , 12 2013 14:05:25)

OS X v10.8.3 ( 12D78)

v3. 2.48 (1) -release


+5
2

. , vim . :

autocmd BufRead *.pt set filetype=xml
au FileType xml setlocal foldmethod=syntax
+1
set foldmethod=indent

, syntax.

, " PHP let php_folding=1?

, Vim: , Mac OS X, . , .

+1

All Articles