macOS ◆ screen-256color ◆ zsh 172 views

Using this vimrc:

set nocompatible

" For easier display
set laststatus=2
set statusline=%c
set showcmd

set linebreak
set wrap
set textwidth=100
set formatoptions=tc

And this source file (leading whitespace matters):

    .package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMinor(from: "4.6.0"))

And a terminal that is 78 columns wide, the column number used for hard wrapping with textwidth is off. You can see in the video the first thing I do is 94| which should keep me in the same place, since that is the length of the line (column number is in the statusline), but instead it takes me to column 85.