xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

Very slow editing with moderate size text file #92

Closed gerroon closed 9 years ago

gerroon commented 10 years ago

I cant edit any text that has anything longer than couple hundred words. The editing gets very slow. This gets even slower when wrapping is enabled.

If I change the type to =text the editing 10x faster (which is abit more bearable)

I am guessing that this plugin sets the file as note type and does somework, however I am very much interested in increasing my editing speed.

thanks

gerroon commented 10 years ago

I also get this annoying message with text files. It might be related

completefunc=xolox#notes#user_complete^@^ILast set from /media/DATA/.vim/bundle/neocomplcache.vim/autoload/neoco mplcache/init.vim Another plugin set completefunc! Disabled neocomplcache.

xolox commented 10 years ago

Can you temporarily disable the neocomplcache plug-in to see if the performance issue and message disappear? That would help to narrow down the problem to a conflict between the vim-notes and neocomplcache plug-ins. The point is that there are so many operating systems, versions of Vim, combinations of Vim options, combinations of user installed plug-ins, etc. that it's hard to tell what the root cause of the bad performance is without further information.

If you don't know how to disable the plug-in: The easiest way is to temporarily move the /media/DATA/.vim/bundle/neocomplcache.vim directory outside the /media/DATA/.vim/bundle directory and restart Vim (to apply the changes). After you're done testing you can move the directory back (and restart Vim again).

wangzq commented 9 years ago

@gerroon FWIW: pls try if profiling can help you identify some specific functions taking most of the time: http://stackoverflow.com/questions/12213597/how-to-see-which-plugins-are-making-vim-slow

xolox commented 9 years ago

Closing due to lack of feedback, feel free to reopen if you're interested in replying to my question.