insert mode

normal mode

Is there a way to make vim treat it as a single line?

This blocks some functionality for example navigating to that line and hitting gf to open the file.

Because it is read-only I can't even join the lines together with J.

I already have this in vimrc

"no wrap for vim-terminal
augroup MyGroup
  autocmd TerminalWinOpen * setl nowrap
augroup end

I also tried :set termwinsize=0x1000 and that solved my gf usecase issue but it basically cancels the wrap (for lines up to width 1000) which isn't what I want. I want the wrapping to still be there but for normal mode to acknowledge that it is a single line which is wrapped.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.