disable text wrapping at vim

January 3rd, 2007 mysurface Posted in Text Manipulation, vi, vim | Hits: 83358 | 5 Comments »

vim wrapping the text by default. When a line is exceed the width of your viewable screen, the text will be wrap to next line. Sometimes, it is messy. Especially when you read the log file with many columns.

To disable wrapping in vim

:set nowrap

You can write that to ~/.vimrc, so that it will disable wrapping by default.

set nowrap

You can even bind it to a key to toggle wrapping, let say I wanna bind it to F5, I add this line to ~/.vimrc

:map <F5> :set nowrap! <CR>

For more key binding tips, check out Key mapping of vim 7

5 Responses to “disable text wrapping at vim”

  1. Fancy stuff when nowrap

    :set sidescroll=5
    :set listchars+=precedes:<,extends:>


    :h wrap
  2. Merry Christmas. Let all of your desires may well occur true for yourself plus your spouse and children as well as lets hope the following season be successful for all all of us. Merry Christmas

  3. Tanesha Greenwood Says:

    Hi everyone, this might not be the best place to ask this, but I’d like to find a reliable electrician in Tucson and I can’t figure out how to find one … I’ve been told this electrician in Tucson is good. These guys are located in Tucson, only 15 minutes from my place I can’t find many reviews on them — Holy Ground Electric, 9420 E Golf Links Rd #252, Tucson, AZ 85730, (520) 971-6710

  4. ^thats a pretty cleaver spam
    anyway ,thanx , we need a through tutorial on wrap in vim

  5. Sharice Leavitt Says:

    Would you like 1000 Followers on Pinterest for free? See here: http://addmf.co/?QGP0U1Q

Leave a Reply