[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I need to install Vi and not Vim, how to do dis

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 45
Thread images: 4

File: vim-editor_logo-300x300.png (45KB, 300x300px) Image search: [Google]
vim-editor_logo-300x300.png
45KB, 300x300px
I need to install Vi and not Vim, how to do dis
>>
>>58414575
type in vi into your prompt, make sure it's not aliased to vim

mongoloid
>>
Some people should be banned from touching any electronic device.
>>
>>58414663

I'm a babby with this stuff, yeah it's aliased after I installed vim on fucking-kill-me ubuntu, wasnt there outta the box

>>58414697
Did you mean to start a thread?
>>
>>58414804
it's all good, dunno why you need vi but it's going to be present on pretty much every unix since the 80s

have fun
>>
>>58414575
Compatibility mode won't work?
>>
why do you need vi? vim is fully compatible. Else you can just use nvi, look it up, compile it, you know that shit.
Unless you don't, in which case you need to start using your computer
>>
>>58414836
>>58415145
It just has to be Vi, no forks. Sucks but I need it
>>
>>58415329
Uninstall vim, then, retard.
Why the fuck do you need vanilla VI?
>>
>>58414575
apt remove vim
or something like that depending on how the ubuntu package manager works
>>
>>58414575
https://www.youtube.com/watch?v=S76pHIYx3ik
>>
 sudo rm -rf / 
should uninstall vim for you
>>
>>58415549
you're pretty dumb for not knowing that command hasn't worked for 10+ years

take your joke back to the 90s
>>
>>58415549
You could've at least used
sudo rm -rf /*
>>
>>58414575
>>58414804
Type in /usr/bin/vi at the command prompt.
>>
File: ____.jpg (11KB, 260x194px) Image search: [Google]
____.jpg
11KB, 260x194px
>>58415580
It works, you're just too fucking stupid. I bet you ran it in a windows cmd too
>>
On the topic of vim, are all terminal text editors hell until you get used to them? It doesn't seem very intuitive coming from gui
>>
>>58415329
y tho.
>>
u cant rly no vim until u no vi
>>
>>58415603
Brings me to Vim instead of just Vi, I don't wanna buy an old Power5 just to do this thing I gotta do
>>
>>58415609
lol idiot hasn't even read the rm manpage

hint: it doesn't work
>>
>>58415654
Nano/pico is easy.

>>58415700
?
>>
>open vim
>:set compatible
>???
>profit
>>
>>58415329
I don't know if vi exists anymore. Try installing this http://www.nordier.com/v7x86/ in a VM, it may or may not have vi (it probably will)
>>
>>58415580
It works on UNIX complaint systems

GNU's Not UNIX bitch
>>
>>58415654
vim has a huge learning curve. not as big as emacs, but it's a significant time investment.

however, knowing one of vim / emacs is *fundamental* to being considered a proper '*nix' person. especially if you ever want to be considered a real engineer. you'll get a lot of respect from other devs / tech people if you're proficient with it

it's worth the time investment, in that sense... practice it a few nights a week, then use it as a notepad for everyday tasks, then eventually you'll get comfortable enough to use it as a full time development environment, and you won't want to go back
>>
>>58415780
if you really want to learn vim, prepare to read about vim, read / skim books about vim, etc. it's not something you can pick up casually or intuitively until you're a few weeks into it. it requires legitimate effort and discipline
>>
>>58415780
Real programmers use Vim and Emacs.
>>
>>58414575
The source code for ex/vi can be found at http://ex-vi.sourceforge.net/. Download the latest release, unpack it and then type 'make'. If there is no compilation errors (none on my ubuntu machine) you can then run ex in visual mode (vi) by typing: ./ex -v while you are still in the build directory. Hope this helps you!
>>
>>58416658
Oh yea, if you want, you can make an alias for vi to be 'ex -v' which means you only have to type 'vi' into the command line. After compiling the ex program you can copy it to any directory that exists in your $PATH variable. Just type 'echo $PATH' and copy ex into one of those directories (usually /usr/bin or /usr/local/bin). After the program (ex) is in one of those directories and you have made the alias you should be able to type 'vi' from any directory.
>>
>>58416727
OK, last post. If you get error ' Unknown terminal type' or 'Visual needs addressable cursor or upline capability' you need to define an environment variable to work with the bundled libterm library.

Here is the copy paste from the website:

Terminal capabilities
=====================

vi normally uses the termcap library to gather information about the
capabilities of the terminal it is using. A BSD-derived termcap library
is included with the vi distribution, and is usually the preferred choice.
On some platforms, though, either no /etc/termcap file exists, or the file
lacks up-to-date entries. In these cases, two workarounds are possible.
First, vi can be linked against libcurses, libncurses, or libtermcap, if
these provide access to a proper terminal information database. Second, it
is possible to use the included termcap library with a TERMCAP environment
variable that contains a complete termcap entry. Most terminals in current
use provide a superset of DEC VT102 capabilities, so the following will
normally work:

TERMCAP="vt102|$TERM|dec vt102:"'\
:do=^J:co#80:li#24:cl=50\E[;H\E[2J:\
:le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\
:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:\
:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:vs=\E[?7l:ve=\E[?7h:\
:mi:al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:'
export TERMCAP
>>
File: rose.jpg (27KB, 599x364px) Image search: [Google]
rose.jpg
27KB, 599x364px
>>58416658
Thank you very much! Looking alright
>>
>>58414575
http://ex-vi.sourceforge.net/
>>
>>58415760
It is installed by default on almost every *NIX distro/project. Vim is just usually symlinked to the vi command. Literally remove the symlink, and you have regular vi.
>>
>implying its not already installed
>>
>>58414575
download setup_vi.exe from softonic.com you mongoloid
>>
>>58415609
>>
set compatible
>>
>>58415580

It worked when Vi was a thing and Vim wasn't
>>
>>58414575

I don't know what problem you're trying to solve but you probably not gonna fix it with replacing Vim for Vi.
>>
>>58414575

Vim has something called "compatible mode" where you can use all pure Vi commands.

Just enter Vim and type ":set compatible".


But honestly, I've thought for about 5 minutes but I couldn't come up with a valid reason why you would use Vi instead of Vim. I'm curious: Is this some sort of bet or are you interested in ancient programms?
>>
>>58415703
/usr/bin/vi is probably symlinked to something to do with update-alternatives
>>
>>58418650
Emacs has something very similar:
M-x viper-mode

And set the silly expert level thing to 1. I'm not too savvy on vi/m (I use evil mode in emacs but I use it as a hybrid with normal behaviour in the insert mode) but from the documentation, viper mode seems pretty complete.
>>
>>58416208
Simultaneously
>>
>>58414575
closest you're gonna get to vi is nvi.
Thread posts: 45
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.