所以我使用Ubuntu 14.04上的Janus plugin设置了如下的.vimrc.after。我遇到的主要问题是,即使我没有按下回车键,一行文字也会换行(而不是换行)。关于为什么会发生这种情况的任何想法?我已经进行了一些实验但是天堂还没有能够实现。
" When editing a text file, if you want word wrapping, but only want line breaks inserted when you explicitly press the Enter key:
:set wrap
:set linebreak
:set nolist " list disables linebreak
" In addition, you will need to prevent Vim from automatically inserting line breaks in newly entered text. The easiest way to do this is:
:set textwidth=0
:set wrapmargin=0
" Configure for ctags
:set tags=./tags;
" set clipboard=unnamedplus
set clipboard+=unnamed
" Use ack instead of grep
" set grepprg=ack
" Use Silver Searcher instead of grep
set grepprg=ag