Delay before 'O' opens a new line?

后端 未结 3 870
臣服心动
臣服心动 2020-12-07 10:56

I\'ve noticed that, occasionally, when I use O (capital \'o\') to create a new line and go into insert mode, there is a short delay before anything happens.

3条回答
  •  余生分开走
    2020-12-07 11:50

    I suspect it's when you have to write the swapfile to disk. Make sure that you are running vim on a computer with fast disk access; if you have to use a shared filesystem you can try moving the swap file using

    :set directory=/path/to/local/dir
    

提交回复
热议问题