I've found solution in this discussion : https://www.reddit.com/r/vim/comments/gszrkd/disable_line_wrapping_for_ter_output/ <https://www.reddit.com/r/vim/comments/gszrkd/disable_line_wrapping_for_ter_output/>
" I was able to get this effect by playing around with termwinsize setting. But, you have to set it after you open up :terminal since the initial open will take this setting as a hint to set the width of the vim window. You can set it post terminal open through an autocommand in vimrc: au TerminalOpen * if &buftype == 'terminal' | setlocal termwinsize=0*140 | endif " 在2024年7月22日星期一 UTC+8 07:42:52<Simon Ney> 写道: Why when switched to normal mode with CTRL-W N , the nowrap option is still ineffective? The buffer has already inversible inserted linebreaks so resizing a vertical term window afterwards is also ineffective. Physical terminals have also setup options to switch line wrapping off. Nice would be a optional filter between the pseudo terminal master side and the reading end of vim. A non-buffering filter like "dd bs=1" would solve the problem. On Saturday, March 30, 2024 at 2:36:31 AM UTC-7 hhx20120607 wrote: Sadly the problem still exists after nearly 4 years. — Reply to this email directly, view it on GitHub <https://github.com/vim/vim/issues/5769#issuecomment-2027992217>. You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/5769/2027992...@github.com> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/92009e79-e4a4-4262-9f1f-bad358bab82dn%40googlegroups.com.