Jump to content

vi Line Wrap

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Guest_Lop_*

Guest_Lop_*
  • Guests
Is there anyway to turn off line-wrap in vi?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
You have to create a custom .vimrc file in your home directory. Here are some options you can set in that file:

set incsearch
incremental searching

set ignorecase
disregards upper and lowercase distinctions

set smartcase
ignore case of search if pattern is lower-case

set scrolloff=2
two lines of context visible around cursor

set wildmode=longest,list
Tab, Enter, Esc filename completion

set cindent
C code indentation

set nocindent
disable C code indentation

set compatible
behave more like old vi

set nowrap

disable line wrap for long lines

set textwidth=72
supplement to line wrap annoyance

filetype off
disable file type recognition and behavior

set uc=0

No swap file will be used

set number
display line numbers in editor

set nonumber
disable display line numbers in editor