Search code examples
vim

Is there any command to toggle enable auto text wrapping?


By default, I think my vimrc setttings enable the auto-wrapping. However, sometimes, I would like to see text lines are not wrapped. Is there any command I toggle the text line wrapping enabled and disabled? This would avoid me to exit and to change settings.


Solution

  • :set nowrap
    

    There is also the linebreak option that controls whether wrapped text is broken at word boundaries or not.