0

这非常奇怪,并且阻止我写作,因为它非常麻烦。当我写奇怪的字符时,如果我有 columns= on。出现的第一件事(所有这些问题都在第一行之后)是标尺或装订线(至少那是唯一具有该背景颜色的两件事)出现在文本中间。其次,额外的字符会出现在行尾。例如:

Here is some text
here is the wrap, this is still part of the first line

实际输出将是

Here is some textt
here is the wrap, this is still part of the first line

如果我去删除所有我会留下的文字

                 t
                                                     e

或者其他的东西。这是我发现一些问题的视频:

http://screencast.com/t/QsjZ0b2jG6bh

同样,这仅适用于设置columns=80。此外,这是我的 vimrc 文件中的内容,在:Write我所做的这种模式下也发生了变化。

func! WordProcessorMode()
  setlocal formatoptions=1
  setlocal noexpandtab
  setlocal spell spelllang=en_us
  set complete+=s
  set formatprg=par
  setlocal wrap
  setlocal linebreak
  let g:solarized_termcolors=256
  set background=light
  colorscheme solarized
  colors solarized
  set nocul
  set columns=80
  set noruler
  AutoCloseOff
endfu
com! Write call WordProcessorMode()
4

1 回答 1

0

不确定这是否有帮助,但我遇到了同样的问题。我在 Mac OS 10.8.1 上使用带有 zsh + tmux 的 iTerm2。我通过删除“set wrap”选项并设置“set nowrap”选项来修复它。

是的,这不是一个真正的解决方案,因为我们必须禁用换行,但至少我现在可以在 vim 中工作。

希望有帮助。

于 2013-05-17T14:12:55.000 回答