[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
can we have a thread about vim, i just started learning C, i've
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 96
Thread images: 8
File: vim.sh.png (29 KB, 650x650) Image search: [Google]
vim.sh.png
29 KB, 650x650
can we have a thread about vim, i just started learning C, i've been practicing my typistry for a while now because a programmer is really just a typist, and i've been practicing writing things like int main and #include really fast and (""); n stuff, and so i've started adding commands to my repertoire and seeing all that i could do with them, i'm reading programming in C and watching this video series with some indian guy, and also... i realize i have to learn vim as soon as i am writing programs that do anything interactive or useful, even in console, once i can write those from memory i have to start learning vim, i have to go back. i have ubuntu on a VM for it. so lets talk about vim. its like a whole new world of being able to accomplish anything fast and its frankly frightening. ricing etc. vim programming. hot sexy babes
>>
File: 1428695302818.jpg (53 KB, 500x375) Image search: [Google]
1428695302818.jpg
53 KB, 500x375
>>53099424
>a programmer is really just a typist
>>
this is some next level bait
>>
>>53099442

well i mean you learn the syntax right? but its not that fucking hard to learn that a certain word means a certain thing.

and you learn to use the words creatively, right? well pretty much you're smart enough to do that, or you're too stupid to program.

what is left? one skill without which you are crippled and can not walk the talk, and that is typing, and its something you have to learn by practice and repetition. i used to just freestyle type. 80wpm or so but next level errors. so i used free online tools to learn proper touch typing. now i'm slower but more accurate.

typing is the most important skill for a programmer.
>>
i know some of you use vim

plz pontificate
>>
>>53099504
Typing isn't the most important skill for a programmer. Understanding your language and how to properly apply it is far more important than being able to type like a god. When programming it's not like you're typing full-tilt the whole time, most of programming is design and planning.
>>
No, typing fast is not the most important skill for a programmer.

And discuss Vim in what regard? I use it and I like it, some people hate it. That's basically all I have to say.
>>
>>53099660
>>53099693

some programmers would disagree with you.

anyways i got my opinion from here

http://blog.codinghorror.com/we-are-typists-first-programmers-second/

and it makes sense to me because if you can't type you can't program at all but plenty of programmers can do basic shit without grand designs and stuff. and the syntax stuff is pretty simple. you know that. not fucking hard.
>>
>>53099693
come on just type about vim

type things that you think about it. say things you don't have to say. say things about vim for the sake of saying them. don't be worried about if its good or bad just spit it out this is a brain storming sesh
>>
>>53099787
I'd say that programming is about information searching first and foremost, and the ability to teach yourself about new tools and libraries. Usually the thing you want to do has already been done by someone else and in a better way, or you're working with tools that reduces the number of steps you need to take to solve a problem. Coding smart is ultimately a lot faster than just writing a thousand lines a minute.

>>53099805
A problem I have with vim is that it's designed primarily for english keyboards, and a lot of the hotkeys make no sense for my non-english keyboard. So I have had to learn the english keyboard layout and switch to that while coding.
>>
it is my worthless opinion that you should practice programming the same way you practice guitar... through repetition. its not about being creative. everyone is fucking creative. creativity is shit. literally squat down and take a shit. that's creative. what you need is discipline, and speed. raw fucking brutality.

>>53099890
hm yes the ability to learn is important, and the ability to find and use information. i guess i consider that as a given, but i guess you could consider typing a given too. anyways, i take every little program i write and i open up vim and just type it over and over as fast as i can, until i can be thinking about hot sexy babes while my hands write that program.

programming by muscle memory. its my chosen neophyte approach and i don't expect to not be criticized here and now for that but maybe someone out there who doesn't post see''s this perspective and it helps them, because its this perspective that really got me programming after weeks of knowing in theory how to do all this console type shit.
>>
>>53099976
>being a literal code monkey
>>
>>53100082
not everyone in life gets to wear scarves at starbucks and make up their own gender

for the rest of us its wrenches and repetition, blood and steel, guts and glory.
>>
>>53099424
use emacs, and use
C-x a i g
>>
File: 1438221424818.jpg (117 KB, 1054x1202) Image search: [Google]
1438221424818.jpg
117 KB, 1054x1202
>>53099976
> i take every little program i write and i open up vim and just type it over and over as fast as i can, until i can be thinking about hot sexy babes while my hands write that program.
>>
>>53099976
What gooood is it to write software you've made by muscle memory when you've already made it? If you want to reuse code you can just include it. I suppose it's somewhat useful if you can write a for-loop lightning quick, but the specific implementation usually differs. Perhaps I'm not understand you properly here but you seem very odd m8
>>
>>53099976
You should really worry about writing good code above anything else. No one gives a shit how fast you can type Hello, World!
>>
>>53100208

listen i know you might not take that very seriously. but i've played piano since i was 12 and guitar since i was 15, and i compose music with pen and paper on score n stuff.

and the connection between muscle memory and creativity is HIGHLY underrated. its kinda like information being in ram versus information being in secondary storage.

when you have the fundamentals of a craft logged in muscle memory - the ability to skeletonize a basic program, for example - your mind is far freeer to go and do the creative and detail work; you only have so much mental energy. you have to spend it wisely.

the ability to do things without giving thought to it is crucial for any form of mastery over any craft whatsoever.

i've also learned a great deal of actual skill - and skill IS something you learn through discovery - while typing these programs that ask your age and ask your mothers age and tell you how old your mother was when you were born, i naturally found the fastest way to do it in VIM, things like word back if i messed up, and two words back, became things that i did not have to think about to do.

>>53100278

because we can not neglect the physical link required to implement our thoughts.

if you do not master the ability to physically implement a thought, you are BOTTLENECKING yourself at your fingers. and how fast you can think will be a measure largely of how LITTLE you need to think of, and how much activity you can assign to your nervous system, which is much faster.

>>53100298

you aren't going to be writing good code if you're having to manually tell your brain to tell your fingers to type ) and then type , and then type numbers and then type ;. that needs to just happen almost before you think it.

>>53100278

when you do something, your mind will occasionally happen upon a discovery that allows you to do it better or go farther with it.

when you do it a thousand times in a row, you are DEFINITELY going to make such discoveries.
>>
>>53099424
> programmer just a typist
typing fast is good sure, but not what's important.
>>
>>53100417

Steve Yegge said,

"I can't understand why professional programmers out there allow themselves to have a career without teaching themselves to type. It doesn't make any sense. It's like being, I dunno, an actor without knowing how to put your clothes on. It's showing up to the game unprepared. It's coming to a meeting without your slides. Going to class without your homework. Swimming in the Olympics wearing a pair of Eddie Bauer Adventurer Shorts.

Let's face it: it's lazy.

There's just no excuse for it. There are no excuses. I have a friend, John, who can only use one of his hands. He types 70 wpm. He invented his own technique for it. He's not making excuses; he's typing circles around people who are making excuses."
>>
>>53100358
Okay, so if I'm understanding you correctly here you think muscle memory is of prime importance because you can devote your brain power to thinking ahead and how to compose what you're writing rather than thinking about the specific characters you are currently entering?

I suppose I can see your point if that's the case, but I consider myself good at doing this despite not training for hours on end rewriting software over and over.
>>
>>53100431
"Typing fast is a mandatory skill for programmer" /= "a programmer is just a typist", stop being autistic.
>>
>>53100433
its good that you're good at it

but lets face it

lots of beginners on this website

and those beginners should see and hear of an idea about how to start programming in the same way that one starts learning to play piano - by doing scales

before you ever start playing music - you practice scales over and over and over and over until your fingers know how to do it. you just play a b c d e f g f e d c b a b c d e f g f e d c b a for hours and hours.

i spent a lot of time being like, printf, int, scanf, float, double, so what? so fucking what?

but i didn't actually get start learning for real until i started just doing it over and over again. as i did it over and over, the boredom drove me to discover every possible way that it could be done. and when it was beat to death i introduced a new keyword to the mix and it was sensed not as 'sigh learn some shit before i can even do anythign' it was sensed as fun itself because i was now doing it for the sake of doing it - minus lust of some future result.

so i am not really addressing this to those who have jobs doing this shit. but for the beginners and sinners.

>>53100481

if you were given a crate full of 9 year old korean boys and you had to teach them to code, what would you do? you'd feed them pixie stix and cigarettes, and teach them touch typing first. that's what i'm doing.
>>
>>53099424
I wanna learn vim. Is as dificult and useless as the people say? I just want to learn for fun
>>
>>53100358
i'd like to see your repos pls
>>
Can someone link me to somewhere to learn to use Vim?

I have been programming for a while, but only ever used VS or idle (for python obviously)

I don't even know how to use compilers.
>>
You make a big deal about typing, yet you don't bother to use correct capitalization or punctuation?
>>
>>53100712
force yourself to do it, and when you have a doubt on how to do something in VIM look it up in google, you'll learn fast enough that way, just learn that A and I get you in insert mode, and that ESC gets you out, and in command mode, you press : to enter a command, q exit, w save, x exit and save

also look for tpope's basics we can all agree on
>>
>>53100650

it's difficult.

like, you open it up and you can't even type, because its like, a fucking accordion, you have to be in ~INSERT~ mode to enter text, and you have to remap escape to capslock, and go back to command mode after you type things, and you navigate with hjkl...

but like, once you start getting to know how to use it, its fucking incredible, things that you didn't even know were possible with a text editor, you'll be like, why did i ever use backspace to go fix that word before last when i can just use the "delete and insert replace the word before last and then go back to where i was" command. sounds crazy but its like being a wizard.


>>53100720
using correct capitalization and punctuation in this environment would legit be evidence that you are retarded.
>>
>>53100712
Vim has an included guide, just write vimtutor to get started.
>>
>>53100807
yes. do that. do that. do that.

by which i mean do the vimtutor twice a day, once upon waking and once before bed, for a week.

and read the entire manual once a day for a month.
>>
>>53100710

what is a repo

the only repo that i know is like, the arch repo
>>
File: 1453422474917.jpg (42 KB, 700x525) Image search: [Google]
1453422474917.jpg
42 KB, 700x525
>>53100851
>what is a repo

So you're saying you don't program?
>>
>>53100907
i haven't gotten to the repo's yet

i'm just making all possible variations of scanf maths printf; #include <stdio.h> int main() { int age=xyz; return 0 } shit right now. basic stuff.

my boxing coach taught me that its all about the fundamentals, fundamentals fundamentals fundamentals, when you think you know them, start over from scratch.
>>
>>53099424
>watching this video series with some indian guy
top curry
>>
>>53099787
if you think programming is about typing, then you are never going to be anything more than a code monkey.

but we need code monkeys I guess
>>
>>53099424
>vim programming. hot sexy babes
>>
Although I do agree that typing is an essential skill for developers I do not agree that typing is all we do. Recently I learned how to touch type and I have seen my productivity rise somewhat. But as others have said you really do spend most of your time planning and off the keyboard than on it.

As for Vim, I recently started learning it and I really like it over editors like sublime now. I'm currently trying to find plugins that enhance the experience better.
>>
This is a bait thread.
>>
>>53100993
its like comparing some 5 foot 7 dude who has been on 90 combat patrols in fallujah and been shot six times, to some guy in a tai kwan do dojo in a shopping mall.

8 hours a day is what shit fucking means to do.

would you rather be a 'code monkey', or wear scarves at starbucks? do you have a lipring? did your parents tell you that you were special?

>>53100981

i've come to peace with the fact that all tutorials and college courses are taught by pooloos.
>>
>>53099424
>>53101037
this is now a vim colorscheme thread

post only colorschemes that let you see hot sexy babes while typing your programming
>>
i typed this in under 2 minutes. i do this kind of thing throughout the day

#include <stdio.h>
#include <stdblib.h>

int main()
{
int age=21;
float pi=3.12:
char my_char='a';
double big_pi=3.141516
printf("the age is %d" ,age);

return 0;
}

#include <stdio.h>
#include <stdlib.h>
{
int age=21;
float pi=3.14
char my_char='a';
double big_pi=3.14
printf("the age is %d" ,age);

return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()

{
int age=21;
float pi=3.12;
char my_char='a';
double big_pi=33.1223;
printf("the age is %d" ,age););); ); ); );
>>
>>53101077
>>>53100981
>> i've come to peace with the fact that all tutorials and college courses are taught by pooloos.

> tfw all your compsci uni classes were taught by white cismales
I only wish more could experience these feels
>>
>>53101166
anon I can't tell if your winking faces at the end of your typistry are smiling or frowning

please tell me I need to know
>>
>>53101177
i-i only e-envy you if they don't lipsmack after every sentence

>>53101193

i just felt for a moment that my 4th and 5th finger switch on ); which is a common pair of key's to press, was weak, so i repeated it a few times.

also, if you use the wrong finger to type a key on your keyboard, go back as if it was typo.
>>
does even fallout 4 start with int main (void)
>>
>>53099424
>i've been practicing writing things like int main and #include really fast and (""); n stuff, and so i've started adding commands to my repertoire and seeing all that i could do with them

Yeah, there's not much I'd say is a waste to practice when it comes to programming, but this is one of those things I'd say is a waste. Just learn to use ultisnips for vim, and you'll never have to type all that repetitive shit again. Make your own snippets for things you feel like you should practice typing really fast.
>>
>>53101412
i'm not wizard enough to navigate in and out of ("") like a ninja yet, it'll be a while before the desire to, the need to, and the muscle memory to coalesce inside of me. so, i practice. but good advice, i just don't think i'm ready for it yet, and i mean a doctor trains to use a scalpel, but that doesn't mean that they didn't start by practicing with an box cutter on their pet rabbit in the back yard
>>
>>53100957
are you a fresh man? why are you talking like you know shit? try programming with SDL, let's see how you "muscle" memorize that shit.
>>
>>53099424

I like an use Vim but its not absolutely necessary emacs is a thing. Also depending on the language there might be a good ide.

But I like vim and anyone want to post how they are doing addons these days? I reinstalled recently and couldnt remember which of the two was the good one.
>>
>>53101551
i'm fresh alright ;)

and maybe i will

i do know shit, just not all shit, know one shitnificient
>>
>>53101560
Plug is the front runner in my opinion. It's piss easy to use, and can do things like only loading certain plugins for certain filetypes and waiting for a specific command before loading others. Makes startup a lot faster.
>>
>>53099787
oh wow a blog fag who wants to sell some shitty "hacker" keyboard says programmers are typists?

WELL FUCK ME!
>>
>>53101755

he's not trying to sell anything, that's just a picture.

>>grrr my life is so meaningless, the illuminatii has manipulated my chakras into miniature blood sacrifice powerplants for their amusement,

>>CRITICIZE

>>PICTURE: KEYBOARD

>> SHIT SELL FUCK SOCIALISM BERNIE SANDERS

>>RETURN "blog (FAG PEOPLE THAT WRITE ON INTERNET ARE FAGS) wants to sell (SHITTY (unqualified)) ("hacker"("because colors")

WELL FUCK ME

SPEAKING OF PROGRAMMING

YOU'RE PROGRAMMED

MONARK MONARK YOU NEUROLEPTIC
>>
>>53101858
no he is trying to sell his shitty keyboard https://codekeyboards.com/
>>
I have been using vi editor (and vim) since the early 1990s when I got my first job as a unix admin. I found vi much better to use and easier to learn than Emacs.

I personally think all programming should be taught with a vi editor and command line. Not this IDE shit when basically the student is being taught how to script, not code or program. There is a difference.
>>
I like the keybinds and general editing flow in vim a lot.
Trying to turn vim into an IDE is retarded tryhard shit when every IDE worth using has vim editing emulation available.

>m-muh plugins and hacker cred
>>
>>53101883
>https://codekeyboards.com/

IF HE'S TRYING TO SELL SOMETHING

T H A T

I S

A

M A R K

A G A I N S T

H I M

ITS WRONG TO SELL THINGS
AND IF YOU DO

IT MEANS YOU ARE WRONG ABOUT THINGS

at least its easier than thinking.
>>
>>53101959
go away jeff.
>>
>>53101883
>>53101959

and how do you even know its shitty, you stupid faggot? do you own it? have you researched it?

oh, you haven't done either of those things?

so you're making a statement in public that you do not know if it is true or not?

gotcha!
>>
https://youtu.be/7YE1cCnuDFY?t=413
>>
i use vim, but only because i never figured out how to exit
>>
>>53102648
kek
>>
>>53102337
Fuck man I thought I was the only one who watched Randy Prozac videos
>>
This is a pretty funny thread OP. I was almost mad but then you pushed it too far. Still pretty good though
>>
File: 62aeb7bfef7a19cd.gif (256 KB, 1200x1200) Image search: [Google]
62aeb7bfef7a19cd.gif
256 KB, 1200x1200
>>53100851

confirmed for troll/bait
>>
File: 1433363636773.gif (2 MB, 260x152) Image search: [Google]
1433363636773.gif
2 MB, 260x152
>>53101166

big pi alternates through the codes, pi as well...
>>
>>53105203
i swear to god i am not trolling. i just don't know what a repo is.

look, i just wrote THIS program 10 times in a row. ten times count them.

//using if statements, relational
//operators, and equality operators
#include <stdio.h>

//function main begins program execution
int main()
{
int num1; //first number to be read from user
int num2; //second number to be read from user

printf("enter two integers and i will tell you\n");
printf("what relationship they satisfy: ");

scanf("%d%d", &num1, &num2 ); //read two integers

if (num1 == num2) { printf("%d is equal to %d\n", num1, num2);}

if (num1 != num2) { printf("%d is not equal to %d\n", num1, num2);}

if (num1 < num2) { printf("%d is less than %d\n", num1, num2);}

if (num1 > num2) { printf("%d is greater than %d\n", num1, num2);}

if (num1 <= num2) { printf("%d is less than or equal to %d\n", num1, num2);}

if (num1 >= num2) { printf("%d is greater than or equal to %d\n", num1, num2);}

//end if
} //end function

>>53103825

i studied them. they really do start the trail...
>>
>>53105787

and because i wrote it ten times, i now understand it better. i'm just a real beginner and sinner.
>>
File: 1372716115806.jpg (66 KB, 605x504) Image search: [Google]
1372716115806.jpg
66 KB, 605x504
>>53099424
>i have ubuntu on a VM for it
>>
>>53106236
whats so funny about that

load up vmware workstation pro, give it the iso, turn it on, blammo, install vim from the ubuntu app store. hail satan. chemical corporations turn my tax dollars into human rape farms in fallujah, allahu ackbar and pass me a pill. try to hear the ultra low frequencies that alter your electromagnetic field and make you susceptible to transponders inside of billboards, magazines, and tv screens.
>>
>>53106552
there is a version of vim which runs natively on windows
>>
>>53106574
yeah i know but it was being fucking gay, so i had to fuck that fucking faggot in the fucking ass and vm up ubuntu, shit, i already had the iso on my hoard-drive, and i already had vmware installed for arch.
>>
>>53105787
you are autistic my child.
your coding style is horrible.
use the code tags, faggot.
>>
>>53105787
SHIT YOU DON'T EVEN NEED THE BRACKETS YOU AUTHISTIC FUCK, DID YOU EVEN READ C BY DENNIS RITCHIE? FUCKING HELL YOU WROTE THAT SHIT TEN TIMES.
>>
>>53106677
>>53106704

hey fuck go easy im learning geeze
>>
>>53106704

what brackets don't i need, the ones the equal to etc statements?

>>53106677

what are code tags

i don't know a simpler way to accomplish the goal of that program, can you show me?
>>
>>53105787
Man, if you continue with programming, you'll think about this thread down the line and have a hearty laugh at yourself.
>>
>>53106704
ALWAYS
USE
BRACKETS
EVEN IF IT IS FOR ONE FUCKING LINE
>>
>>53106748
JUST GO READ C BY DENNIS RITCHIE FOR FUCKS SAKE

code tags
int main( void ) {
printf( "holy shit\n" );
}
>>
>>53106809
Indent accordingly and you'll be fine, faggot.
if you are gonna use brackets, use them like it's me
>>
>>53106819
>opening bracket in the same line as function declaration
HOLY FUCK
KILL YOURSELF
>>
>>53099424
>i've been practicing writing things like int main and #include really fast
i lel'd
>>
>>53106819
This style really triggers my autism, even if it's "proper" for C. I always put the brackets on a separate line and use indents for clarity.
>>
>>53106845
again, GO FUCKIN READ C BY DENNIS RITCHIE
and i don't have anything against
int main( void )
{
printf( "something" );
}


that's just personal preference and i don't like to waste a fucking line in a character, but again, both are perfectly readable, but look at this fucking faggot
>>53105787
>>
>>53106866
>>53106888
just personal preference m'boy
>>
File: aaa.png (495 KB, 2646x1175) Image search: [Google]
aaa.png
495 KB, 2646x1175
>>53106798
i'm comfortable with that.

are you?

>>53106809

can you please type me out an example

>>53106819
ok, i'll even buy the book haha ok? i don't wageslave for terrorists organizations that make it like its 9/11 24/7.

>>53106845

i am TRYING

PIC RELATED IS THE FORMATTING FUCK IT DOERSN"T TRANSFER TO $CHAN
>>
Don't learn vim. You will want to use it everywhere and start making embarrassing mistakes in non-vim editors.:wq
>>
>>53106914
download it, it's avaliable everywhere. just google it.
>>
>>53106917

why would i use a non vim editor
>>
>>53105787
Why check each case? It's pointless to check <= and >= if you've already checked == and < and >. Not to mention !=. Unless you're just doing it to learn the different operators. In which case you should teach yourself to use switches and the ternary operator next.
>>
>>53106914
void fuck()
{
SOMETHING
}
>>
>>53106959
Word. Email. 4chan posting. Etc
>>
>>53106917
Haha fuck I so recognize myself in this problem. Can't even use Word-type applications anymore without fucking up
>>
>>53106971

yeah just being thorough its not like the program is useful, i'm just being thorough and learning by rote. switches and ternary operators next, got it.

>>53106992
is it that psychologically invasive?

>>53106977
isn't that what i did?

or should i be making each individual relationship check as like, its own int main, so to speak.
>>
Emacs > vim
Thread replies: 96
Thread images: 8

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.