DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

View Poll Results: Which vi do you use?
original vi 10 19.23%
nvi 4 7.69%
vile 0 0%
elvis 0 0%
vim 34 65.38%
some other vi clone 0 0%
I don't use vi 4 7.69%
Voters: 52. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th September 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default Which vi do you use?

Hello,

There are several different clones of vi floating around. Each has slight (or major) differences from all the others. So which do you prefer for your text editing needs (i.e., programming, editing /etc files, etc.)?
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #2   (View Single Post)  
Old 10th September 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Thanked 5 Times in 4 Posts
Default

I go for Vim.
__________________
If it moves, crypt it. Unless it's static - than you should double-crypt it.
Reply With Quote
  #3   (View Single Post)  
Old 11th September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Vim and nvi but mostly vim:

vim for syntax highlighting, multiple editing buffers (:sp, :vsp) and tabs (:tabnew), visual mode, better yank/paste under X, improved undo/redo support, spell checking documents (Vim 7), more portable mappings (e.g. <stuff>), :command history, using my vimrc to adapt to platforms/programming languages easier, and much better coping with with the old CR+LF, LF, whatever issues.

nvi for large files and long lines (like the ports INDEX file), quick edits, system files (when I don't need multiple files open side by side), and on systems where I don't need to do a lot of code editing. I like nvi because it is lighter and faser then vim.


nvi, is basically my minimal specification for editing. Give me at least _most_ of nvi's abilities in a vi type editor or emulate it and I'll edit files happily -- I say nvi, because I've never used the original vi. I do rather prefer Vim where possible, along with my ~1000 line vimrc but I only need a small part of Vi capability. nvi provides more editing power then I require on a regular basis. Unless it's a job I prefer nvi for, I scale down in order of preference: vim with my .vimrc, vim -N, vi, kate, edit.exe, ex, notepad.exe/kedit/gedit, ed/edlin in roughly that order.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 11th September 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Thanked 4 Times in 10 Posts
Default

Maybe the question should be "which do you prefer" rather than "which do you use"

I use vim because i unfortunately have to deal with a lot of linux systems ( shutup scottro ) ..... i would LIKE to use nvi.
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #5   (View Single Post)  
Old 11th September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

I avoid vi at all costs.
Reply With Quote
  #6   (View Single Post)  
Old 11th September 2008
greencross's Avatar
greencross greencross is offline
Real Name: David Gevorgyan
Fdisk Soldier
 
Join Date: May 2008
Location: Yerevan, Armenia
Posts: 58
Thanked 4 Times in 4 Posts
Default

vim/gvim
__________________
rtfm
Reply With Quote
  #7   (View Single Post)  
Old 11th September 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Thanked 4 Times in 10 Posts
Default

Quote:
Originally Posted by BSDKaffee View Post
I avoid vi at all costs.


that's only coz you're an idiot, jason :P:P
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #8   (View Single Post)  
Old 11th September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Vim seems to be dominating the poll. In two words: multiple undo.
__________________
Kill your t.v.
Reply With Quote
  #9   (View Single Post)  
Old 11th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The results of this poll bring tears to my eyes.
Reply With Quote
Old 11th September 2008
marcolino's Avatar
marcolino marcolino is offline
Real Name: Mark
Custom Title Maker
 
Join Date: May 2008
Location: At the Mountains of Madness
Posts: 113
Thanked 0 Times in 0 Posts
Default

nvi, which is in a default OpenBSD install. Until recently, I used vim, installed from ports.
__________________
That's nothing a couple o' pints wouldn't fix.
Reply With Quote
Old 11th September 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

Quote:
The results of this poll bring tears to my eyes.
. . . ?

Quote:
I use vim because i unfortunately have to deal with a lot of linux systems ( shutup scottro ) ..... i would LIKE to use nvi.
You can use Vim in compatible mode and then it behaves as vi (More or less).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 11th September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

nvi is a great editor but as installed on Free/Open BSD at least, it does lack a few essential features---anomie said it best!
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Old 11th September 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

I hate vi.
Some years ago I had a poster with all vi shortcuts, hence, I never learned vi but loocked at the poster instead.
I finally made it to remember esc+a, esc+i, esc+x and :wq
Gimme geany
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 11th September 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by anomie View Post
Vim seems to be dominating the poll. In two words: multiple undo.
At least nvi allows multiple undo. Press 'u' to undo and then '.' to undo as much as you want.

You might wonder why not just keep pressing 'u'. The answer is that this feature allows you to toggle an action (a potential complex one) and get a before and after look.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 11th September 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

nvi allows allows for split screens with :N[ext] filename. I'm still trying to figure out if I can get it to split vertically and how to move easily between the screens.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 11th September 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

There are two features I do wish that nvi had that I haven't seen yet.

1) tabs
2) syntax highlighting

Tabs are nice, but not necessary. But syntax highlighting is a big nicety. If only it could do at least minimal highlighting like elvis does (i.e., bold keywords), that would be great.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 11th September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Quote:
Originally Posted by JMJ_coder
At least nvi allows multiple undo. Press 'u' to undo and then '.' to undo as much as you want.
Sho' nuff. I just tested it. Thanks for the tip.
__________________
Kill your t.v.
Reply With Quote
Old 11th September 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Quote:
Originally Posted by JMJ_coder View Post
nvi allows allows for split screens with :N[ext] filename. I'm still trying to figure out if I can get it to split vertically and how to move easily between the screens.
I'm pretty sure the original vi allows this as well, at least for splitting the screen horizontally. These days, with multiple windows and monitors with enormous real estate, it does not matter to me as much. Back in the day of 25-line terminals, this was a god-send.
Reply With Quote
Old 11th September 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Thanked 4 Times in 10 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
. . . ?

You can use Vim in compatible mode and then it behaves as vi (More or less).
i don't know how many people have said this - the "compatible mode" is crap ... it still acts like vim and does that awful delete thing when overwriting a word ( try cw )
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
Old 11th September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Quote:
Originally Posted by DrJ View Post
I'm pretty sure the original vi allows this as well, at least for splitting the screen horizontally. These days, with multiple windows and monitors with enormous real estate, it does not matter to me as much. Back in the day of 25-line terminals, this was a god-send.
Thanks for this DrJ, a lack of knowing this has caused me to use mg(1) numerous times (and I only half-remember a tenth of the emacs commands I would use in vi).


I couldn't find serious mention of this feature in the manual page for 'vi' on my system, aside from an odd ^W to change screens that is. Under ex commands, it lists

Quote:
Originally Posted by OpenBSD man vi
[Nn][ext][!] [file ...]
Edit the next file from the argument list.
Although it behaves this way in ex mode for both n/N, in visual mode :Next causes it to split screen instead of performing the same thing as :next.


Thanks again!
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Tags
nvi, vi, vim

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick