English 中文(简体)
如何在窗口结束前总结案文5的性质?
原标题:How to wrap the text 5 characters before the end of window?
  • 时间:2010-03-18 14:26:19
  •  标签:
  • vim
  • eol

我想在窗口结束前总结案文5的性质(不打破界线)。

我不知道如何这样做,而没有在案文中说明电子订约的性质(wrapmargin/textwidth)。

问题回答

您需要提出以下三项选择:

:set linebreak
:set wrap
:set nolist

如果有的话(例如::set list),那么它就赢得了一定的工作。

此外,还有一种选择,可以确定一种特性,在划线一开始即可显示。 e.g:

:set showbreak=>

如果你想再次改变这一特征,把它 set为空洞:

:set showbreak=

请注意,即使封条线look<>/em> 如同其本身的权利, 仍然认为它们是一条线。 因此,将曲线移到<代码>j的钥匙上,将把它移至下一个编号线,而不是下一个显示的线。 如果你有显示的线路号码(:set number),就更有意义。 如果您希望通过显示线上移出和缩小,则您可使用<代码>gk和gj。 页: 1 您认为有用的指挥:

Numbered line           Display line
-------------           ------------
j                       gj
k                       gk
$                       g$
0                       g0
^                       g^

或许,<条码>第是你重新找的?

:se linebreak




相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...