Re: Disable vim line wrap

2011-06-18 Thread Farid
I tried the method Gary mentioned, and it worked well. Thanks again Gary. Bram, I don't know abaqus myself. Wikipedia shows one software for finite element analysis and computer aided engineering called abaqus. I'm not sure whether they're related or not. --Farid On Jun 18, 1:30 pm, Bram Moole

Re: Disable vim line wrap

2011-06-18 Thread Bram Moolenaar
Farid wrote: > Ah nvm. I edited the filetype.vim and comment out the "set ftype > abaqus" line and everything works well now. Appparently, abaqus type > will do the folding if the file begins with * or ** or *** etc as the > header. Which is what I've been working with most. > > I like the tr

Re: Disable vim line wrap

2011-06-17 Thread Gary Johnson
On 2011-06-17, Farid wrote: > On Jun 17, 2:17 am, Farid wrote: > > You're right.  Pressing zR or just zr does open all the folds. > > > > Typing :verbose set ft? fdm? fde? shows > > > > filetype=abaqus > > Last set from /usr/share/vim/vim73/filetype.vim > > foldmethod=expr > > Last set from /usr/

Re: Disable vim line wrap

2011-06-17 Thread Farid
Ah nvm. I edited the filetype.vim and comment out the "set ftype abaqus" line and everything works well now. Appparently, abaqus type will do the folding if the file begins with * or ** or *** etc as the header. Which is what I've been working with most. I like the trick. Thank you again Gary!

Re: Disable vim line wrap

2011-06-17 Thread Farid
You're right. Pressing zR or just zr does open all the folds. Typing :verbose set ft? fdm? fde? shows filetype=abaqus Last set from /usr/share/vim/vim73/filetype.vim foldmethod=expr Last set from /usr/share/vim/vim73/ftplugin/abaqus.vim foldexpr=getline(v:lnum)[0]!="*" Last set from /usr/share/v

Re: Disable vim line wrap

2011-06-16 Thread Gary Johnson
On 2011-06-16, Farid wrote: > Hi, I'm a new vi user. I have this problem in vi where everytime I > open a file, it will show only part of the file, and a line that says > how many lines are there below that. For example, a file might look > like: > > =

Disable vim line wrap

2011-06-16 Thread Farid
Hi, I'm a new vi user. I have this problem in vi where everytime I open a file, it will show only part of the file, and a line that says how many lines are there below that. For example, a file might look like: = this is the header of the file thi