disable text wrapping at vim
January 3rd, 2007 mysurface Posted in Text Manipulation, vi, vim | Hits: 56307 | 4 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
.







January 4th, 2007 at 12:06 am
Fancy stuff when nowrap
see
January 1st, 2011 at 4:39 am
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
August 29th, 2011 at 9:22 am
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
November 14th, 2011 at 9:40 pm
^thats a pretty cleaver spam
anyway ,thanx , we need a through tutorial on wrap in vim