Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

vi

Name: Anonymous 2009-03-15 18:54

It's shit.

I mean, ZZ for save?  Come on.

Name: Anonymous 2009-03-15 19:03

VIM IS FUCKING AWESOME!!!!!

Name: Anonymous 2009-03-15 19:09

ZZ? I don't think I've ever used that for saving. Usually I never even have to exit vim. A simple :w (to save) with :! to run other commands means vim can do anything I want it to.

>>2
This.

Name: Anonymous 2009-03-15 19:14

Usually I never even have to exit vim
Vim is the new emacs?

Name: Anonymous 2009-03-15 19:23

vim sucks.  Actually all text based-text editors do.  I don't see the point at all, unless you're in the 80's.

Name: Anonymous 2009-03-15 19:23

Is Vim the new Javascript operating system?

Name: Anonymous 2009-03-15 19:27

It's shit.

I mean, C-x C-s for save?  Come on.

Name: Anonymous 2009-03-15 19:46

Vim is a joke.  What sane person would want to have 3 (THREE!!!) distinct modes for editing, navigating and selecting?  Vim scripting is pig disgusting.  Awkward qwerty-bound keys.  No isearch navigation.  No LISP extensions.  Nothing.

Name: Anonymous 2009-03-15 19:55

vi is the standard. You may not like it, that's ok, but when your telnetted into an Solaris or AIX boxen you don't get you're emacs or you're NOTEPAD.EXE to play with. No! You must hjkl like an heterosexual man!

Name: FrοzenVoid 2009-03-15 19:56

>>1
Learn to use :x.

>>8
No isearch navigation.
:h 'incsearch

No LISP extensions.
:h mzscheme

Name: Anonymous 2009-03-15 19:57

>>9
you're emacs

I fucked you're emacs?

Name: Anonymous 2009-03-15 20:00

When I use an editor, I don't want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!!
Not a "viitor". Not a "emacsitor". Those aren't even WORDS!!!!
ED! ED! ED IS THE STANDARD!!!

Name: Anonymous 2009-03-15 20:01

Vi is pretty much entirely the wrong way to go about making an ed-inspired screen editor, and Vim just compounds the failure.

Name: Anonymous 2009-03-15 20:03

>>11
you're emacs

I'm a PC

Name: Anonymous 2009-03-15 20:04

>>10
:yhbt

Name: Anonymous 2009-03-15 20:28

>>14
What about his you are emacs?

Name: Anonymous 2009-03-15 20:31

>>16
What about ``What about his you are emacs?''?

Name: Anonymous 2009-03-15 20:56

>>17
Its happy.

Name: Anonymous 2009-03-15 20:57

>>1
ZZ is not for save, it's for save if modified and quit.

Name: Anonymous 2009-03-15 20:58

>>19
You save without quitting? HAHAHA.  No wonder you use vi, dumbass.

Name: Anonymous 2009-03-15 21:13

vi is designed for a specific type of user in mind, one who either edits or navigates through a file and doesn't switch much between the two modes. I don't know about you, but writing code usually follows this style, unless you're an IDE-using codemonkey.

Name: Anonymous 2009-03-15 22:01

>>21
Did you mean: typing in code from your textbook

Name: Anonymous 2009-03-15 22:37

>>21
>vi is good if you don't actually intend to do much programming

Name: Anonymous 2009-03-15 22:48

vi is good if you know which part of the file you want to edit and don't want to play ddr on your keyboard to get there.

Name: Anonymous 2009-03-15 22:59

>>24
there are alot of good IDEs that allow you to jump to a specified line

Name: Anonymous 2009-03-15 23:01

>>24
Vi use is all DDR. You know what wouldn't be? A mouse. And a scrollbar.

Name: Anonymous 2009-03-15 23:03

>>26
Oh look, vim supports mice, and gvim even has scrollbars

Who knew?

Name: Anonymous 2009-03-15 23:04

is there a way to emulate the alt+direction keys text selection mnemonic in vi? switching between three modes to do some copy&paste or whatever is pretty shitty.

Name: Anonymous 2009-03-15 23:07

there are alot of good IDEs that allow you to jump to a specified line
how many of them allow you to jump to a specified line with only 2+log10(line number-1) keystrokes?
and how many of them let you use regular expressions to move to a certain point in the file?

Vi use is all DDR.
no, emacs is all ddr.

You know what wouldn't be? A mouse. And a scrollbar.
i can probably start vi, finish whatever edit i started vi to do, save the file, and exit in the amount of time it takes you to move your hand from your keyboard to your mouse.
a mouse is ok for drawing pictures but not as good as a tablet, and pretty much useless for anything else.

Name: Anonymous 2009-03-15 23:09

>>28
why would you want to press 10 times as many keys to do something so simple?

Name: Anonymous 2009-03-15 23:28

>>27
gvim
*snicker*

>>29
a mouse is ok for drawing pictures

Keyfags are so funny. In one breath that they admit that mice are perfect for indicating one among many screen locations, then by the next they've forgotten that selecting a character on the screen is exactly the same problem.

Name: Anonymous 2009-03-15 23:31

>>29
0/10 - Be more aggressive.

Name: Anonymous 2009-03-15 23:39

>>31
If you routinely have on the order of 1200*800 characters on your screen you may actually have a point. For 80*40, though, it's retarded.

Name: Anonymous 2009-03-15 23:41

You know, you can use your mouse in vim. I find that performing selections within a single line is easier to do with a mouse. Just :set mouse=a.

Name: Anonymous 2009-03-15 23:54

>>34
vim = emacs.
real vi or GTFO.

Name: Anonymous 2009-03-15 23:58

gedit > all

Name: Anonymous 2009-03-15 23:59

>>36
is that what gnu is calling their broken ed now?

Name: Anonymous 2009-03-16 0:27

>>33
1200*800
All real programmers have at least that many characters on their screens. That's the whole reason man invented multiple displays and 72" monitors: More text than he can ever possibly read in a mere mortal's lifetime, let alone a single week.

Name: Anonymous 2009-03-16 0:35

>>38
most programmers barely have that many pixels on their screens.

Name: Anonymous 2009-03-16 0:52

72" monitors
To bad those only run at 1920x1080.

Name: Anonymous 2009-03-16 4:29

Here he comes, here comes speedracer,
HE'S A DEMON ON WHEELS

Name: Anonymous 2009-03-16 4:30

Here he comes, here comes speedracer,
HE'S A DEMON ON WHEELS

Name: Anonymous 2009-03-16 4:31

Here he comes, here comes speedracer,
HE'S A DEMON ON WHEELS

Name: Anonymous 2009-03-16 4:32

Here he comes, here comes speedracer,
HE'S A DEMON ON WHEELS

Name: Anonymous 2009-03-16 4:43

>>41-44
gb2/pr/

Name: Anonymous 2009-03-16 5:32

>>33
80x40?

Name: Anonymous 2009-03-16 6:03

>>46
Only PHP ``programmers'' write code wider than eighty characters.

Name: Anonymous 2009-03-16 6:27

>>47
Of course. Everyone else but you and them realizes how useful it is to be able to fit two or three columns of code on the screen.

Name: Anonymous 2009-03-16 6:31

>>47
IsLanguageWithReallyLongVariableNamesThatJustGoOnAndOnWithNoGoodReasonOtherThanToBeOverlyDescriptivep

Name: Anonymous 2009-03-16 6:32

>>48
I think you misunderstood my post. There was no sarcasm there.

Name: Anonymous 2009-03-16 8:32

>>35
I hope you use a real VT100, sonny!

Name: Anonymous 2009-03-16 9:34

>>51
Meh, Digi terminal servers are so much more convenient.

Name: Anonymous 2009-03-16 9:41

I use vim because I like to play DDR on the keyboard while I edit my code. It's fun and adds to the experience of programming.

Name: Anonymous 2009-03-16 9:50

I use emacs because I like to look like a pianist while I edit my code. It's fun and adds to the experience of programming.

Name: Anonymous 2009-03-16 9:54

I use textmate because I like to masturbate furiously while I edit my code. It's fun and adds to the experience of programming.

Name: Anonymous 2009-03-16 9:56

I use notepad.exe because I like to be fisted while I edit my code. It's fun and adds to the experience of programming.

Name: Anonymous 2009-03-16 9:59

I like to map the navigation keys to macros that make it look like I'm playing nethack.

Name: Anonymous 2009-03-16 10:27

>>54
I'm sure you don't really need to use emacs to look like a dick while you edit your code.

Name: Anonymous 2009-03-16 10:59

I use ed because I like to play DDR after I finish editing my code in 10% of the time it takes to start up Vim or EMACS. It's fun and doesn't add to the experience of programming.

Name: Anonymous 2009-03-16 12:18

>>59
If you were as an achieving programmer as you are trying to pretend then you would have earned enough money and/or reputation to buy or beg a modern computer (like, second-hand, not older than 5 years) and forget that Vim or YOMUM HAVE a startup time. Therefore, you are not and should read SICP.

Name: Anonymous 2009-03-16 13:20

>>60
L-LOL!  Dude, you must never have used ed in your life, clearly you have gotten used to the several-milli-second startup time of Vim and EMACS and thus can't even realize that I can write an ANSI haxer compiler in ed in the time it takes to start your shitty editors.

Enjoy your loss of time.

Name: Anonymous 2009-03-16 13:37

>>61
To be honest, I find the start-up time of ANY program to be hindering.  That's why I just type my code without opening a program.

Name: Anonymous 2009-03-16 13:39

>>62
Why type code?  I visualize the output of the program instead, so I don't have to code or run the program.

Name: Anonymous 2009-03-16 13:55

>>63 is the sussman

Name: Anonymous 2009-03-16 14:35

>>50
I think you misunderstood my post. There was no implication that sarcasm was detected in your post.

Name: Anonymous 2009-03-16 14:46

Vi? Or Vibe?
%cat vibe-2.1ans.fs
\
\ VIBE Release 2.1
\ Copyright (c) 2001-2003 Samuel A. Falvo II
\ All Rights Reserved.
\
\ Highly portable block editor -- works under nearly every ANS Forth
\ I can think of, and with only a single screenful of words, will
\ work under Pygmy and FS/Forth too.
\
\ USAGE: vibe ( n -- ) Edits block 'n'.  Sets SCR variable to 'n'.
\        ed ( -- ) From Pygmy.  Re-edits last edited block.
\
\ I use CREATE instead of VARIABLE because I can statically initialize
\ the variables at load-time with no overhead.  Stole this idea from a7r
\ in the #Forth IRC channel.
\
\ 2.1 -- Fixed stack overflow bugs; forgot to DROP in the non-default
\        key handlers.
\

s" gforth" ENVIRONMENT? [IF]
    2DROP
    WARNINGS OFF
[THEN]
   
( Editor Constants )

\ I don't like this technique; should have used a bitmap.  Will fix later.
CHAR i CONSTANT 'i   \ Insert mode
CHAR r CONSTANT 'r   \ Replace mode
CHAR c CONSTANT 'c   \ Command mode

CHAR y CONSTANT 'y
CHAR n CONSTANT 'n

CHAR A CONSTANT 'A
CHAR Z CONSTANT 'Z
CHAR $ CONSTANT '$

( Editor State )

 1 CREATE scr ,   \ Current block
 0 CREATE x ,     \ Cursor X position 0..63
 0 CREATE y ,     \ Cursor Y position 0..15
'c CREATE mode ,  \ Change to bitmap later.

\ GForth-specific
CREATE wordname 5 C, '$ C, '$ C, 0 C, 0 C, 0 C,

( Editor Display )

: mode. 63 0 AT-XY mode @ EMIT ;
: scr. 0 0 AT-XY ." Block: " scr @ . ."      " ;
: header scr. mode. ;
: 8-s ." --------" ;
: 64-s 8-s 8-s 8-s 8-s 8-s 8-s 8-s 8-s ;
: border SPACE 64-s CR ;
: row DUP 64 TYPE 64 + ;
: line ." |" row ." |" CR ;
: 4lines line line line line ;
: 16lines scr @ BLOCK 4lines 4lines 4lines 4lines DROP ;
: card 0 1 AT-XY border 16lines border ;
: cursor x @ 1+ y @ 2 + AT-XY ;
: screen header card cursor ;

( Editor State Control )

: insert 'i mode ! ;
: replace 'r mode ! ;
: cmd 'c mode ! ;

: bounds scr @ 0 MAX 65535 MIN scr ! ;
: prevblock -2 scr +! bounds ;
: nextblock  2 scr +! bounds ;
: toggleshadow 1 scr @ XOR scr ! ;

( Editor Cursor Control )

: flushLeft 0 x ! ;
: boundX x @ 0 MAX 63 MIN x ! ;
: boundY y @ 0 MAX 15 MIN y ! ;
: bounds boundX boundY ;
: left -1 x +! bounds ;
: right 1 x +! bounds ;
: up -1 y +! bounds ;
: down 1 y +! bounds ;
: beep 7 EMIT ;
: nextline y @ 15 < IF flushLeft down THEN ;
: next x @ 63 = IF nextline EXIT THEN right ;

( Editor Insert/Replace Text )

: 64* 2* 2* 2* 2* 2* 2* ;
: where scr @ BLOCK SWAP 64* + SWAP + ;
: wh x @ y @ where ;
: eol 63 y @ where ;
: place wh C! UPDATE next ;
: -eol? x @ 63 < ;
: openr wh DUP 1+ 63 x @ - MOVE ;
: openRight -eol? IF openr THEN ;
: inserting? mode @ 'i = ;
: chr inserting? IF openRight THEN place ;

( Editor Commands: Quit, cursor, block, et. al. )

: $$c51 DROP 0 20 AT-XY R> R> DROP >R ; \ Q -- quits main loop
: $$c30 DROP flushLeft ;             \ 0
: $$c69 DROP insert ;                \ i
: $$c49 DROP flushLeft insert ;      \ I
: $$c52 DROP replace ;               \ R
: $$i1B DROP cmd ;                   \ (escape)
: $$c68 DROP left ;                  \ h
: $$c6A DROP down ;                  \ j
: $$c6B DROP up ;                    \ k
: $$c6C DROP right ;                 \ l
: $$c5B DROP prevblock ;             \ [
: $$c5C DROP toggleshadow ;          \ \
: $$c5D DROP nextblock ;             \ ]

( Editor Backspace/Delete )

: padding 32 eol C! UPDATE ;
: del wh DUP 1+ SWAP 63 x @ - MOVE ;
: delete -eol? IF del THEN padding ;
: bs left delete ;
: backspace x @ 0 > IF bs THEN ;

( Editor Carriage Return )

: nextln eol 1+ ;
: #chrs scr @ BLOCK 1024 + nextln - 64 - ;
: copydown y @ 14 < IF nextln DUP 64 + #chrs MOVE THEN ;
: blankdown nextln 64 32 FILL UPDATE ;
: splitdown wh nextln 2DUP SWAP - MOVE ;
: blankrest wh nextln OVER - 32 FILL ;
: opendown copydown blankdown ;
: splitline opendown splitdown blankrest ;
: retrn inserting? IF splitline THEN flushleft nextline ;
: return y @ 15 < IF retrn THEN ;

( Editor Wipe Block )

: msg 0 20 AT-XY ." Are you sure? (Y/N) " ;
: valid? DUP 'n = OVER 'y = OR ;
: uppercase? DUP 'A 'Z 1+ WITHIN ;
: lowercase DUP uppercase? IF $20 XOR THEN ;
: validkey BEGIN KEY lowercase valid? UNTIL ;
: clrmsg 0 20 AT-XY 64 SPACES ;
: no? msg validkey clrmsg 'n = ;
: ?confirm no? IF R> DROP THEN ;
: wipe ?confirm scr @ BLOCK 1024 32 FILL UPDATE 0 x ! 0 y ! ;

( Editor Commands: backspace, delete, et. al. )

: $$i04 DROP delete ;                    \ CTRL-D
: $$i08 DROP backspace ;                 \ (bs)
: $$i7F DROP backspace ;                 \ DEL -- for Unix
: $$i0D DROP return ;                    \ (cr)
: $$c5A DROP wipe ;                      \ Z
: $$c6F DROP opendown down $$c49 ;       \ o
: $$c4F DROP opendown ;                  \ O

( Editor Keyboard Handler )

\ Word name key: $ $ _ _ _
\                    | | |
\ c = command mode --+ | |
\ i = ins/repl mode    | |
\                      | |
\ Key code (hex#) -----+-+
\
\ Called with ( k -- ) where k is the ASCII key code.

: keyboard KEY ;
: cmd? mode @ 'c = ;
: ins? mode @ 'i = mode @ 'r = OR ;
: mode! ins? 'i AND cmd? 'c AND OR wordname 3 + C! ;
: >hex DUP 9 > IF 7 + THEN '0 + ;
: h! DUP $F0 AND 2/ 2/ 2/ 2/ >hex wordname 4 + C! ;
: l! $0F AND >hex wordname 5 + C! ;
: name! mode! h! l! ;
: nomapping DROP ['] beep cmd? AND ['] chr ins? AND OR ;
: handlerword name! wordname FIND IF ELSE nomapping THEN ;
: handler DUP handlerword EXECUTE ;
: editor BEGIN keyboard handler screen AGAIN ;
: ed page screen editor ;
: vibe scr ! ed ;

Name: Anonymous 2009-03-16 14:55

>>66
I think you misunderstood my post. My hair is a bird.

Name: Anonymous 2009-03-16 14:56

>>67
I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post. I think you misunderstood my post.

Name: Anonymous 2009-03-16 14:58

>>66
Valid... wait

Name: Anonymous 2009-03-16 15:19

>>69
I think you mean
code Forth valid

Name: Anonymous 2009-03-16 15:30

I don't know about you guys but I like TextEdit.app.

Name: Anonymous 2009-03-16 15:34

>>71
1/10

Name: Anonymous 2009-03-16 18:25

nano>*

Name: Anonymous 2009-03-16 18:33

>>66
I wish I had a job coding Forth :(

Name: Anonymous 2009-03-16 18:36

>>74
*in Forth

Name: Anonymous 2009-04-16 19:48

When I use an editor, I don't want eighty extra MEGABYTES of worthless help screens and cursor positioning code! I just want an EDitor!!
Not a "netbeanstor". Not a "eclipsesitor". Those aren't even WORDS!!!!
ED! ED! ED IS THE STANDARD!!!

Name: Anonymous 2011-01-31 21:14

<-- check em dubz

Name: tray 2012-03-14 17:15

you better be

Name: Anonymous 2014-01-21 21:15

>>76
>le pedophile sage

Don't change these.
Name: Email:
Entire Thread Thread List