Vimfags

vimfags,
wrap the 3 statements in an indented block if you're so great.

Attached: 1537755561688.png (303x136, 4K)

Other urls found in this thread:

sanctum.geek.nz/arabesque/vi-mode-in-bash/
twitter.com/NSFWRedditVideo

A {3jo}>i{

>putting the curly brace on the same line as the if statement
ISHYGDDT

Those are inputs, not code

I don't get it. You're gonna hit A to go to insert mode at the end of the line, then hit ESC to leave it? Then you're just gonna go down three lines anyway?
What the fuck am I looking at?

jV2jS}

For me this deletes the three 'do' statements and replaces them with a right curly brace.

Which is better? Vim or Neovim?

they're both valid choice now get back to work

What about Vis?

It's probably vim-surround.
This is good but it places the braces at column 0 regardless of original indentation.

A {}
Yeah much better.

install nvi

jVjj>[Esc]

Attached: 5309786+_e09cd70909cd919be9f53602b241ae91.jpg (500x417, 58K)

Ok now that's just retarded

j0ys2j}

that does it for me but I've for syntax on and am using vim surround
If you don't want to count 2j you could change that to /t

Here's how I do it. Haven't read thread yet

A {jVjj}O}

Sorry, transcription error.
A {jVjj>O}

I mean both. goddamnit, typing out vim commands as text is something I rarely do.

A {jVjj>}O}

> indents, and then } moves us to TryLater, where O opens a line above it.

i use vim inside my IDE

-ctrl-shift-i
entire document is formatted
ez

A {}i}=G

Learn paragraph jumping.

whoa.. so this is the power of gui

Attached: gvim_2018-09-23_23-35-28.png (156x92, 3K)

{}

In visual studio it’s
{ Control+g 112 enter }
Wasn’t vim supposed to make things faster?

if you're going that route, 5j}, or }}, or even 112G are all faster, yes.

if it actually matters how fast you can do that you have too much boilerplate

hahahahahahhahahaha
hey guys im using vim to
Jk4j93jfs89294t8y493jgf9854uj2
vim has the most intutive keybindings. Its like writing a sentence, theres a subject and a verb. its really easy!

>t. literal mouth breathing retard
just do the vim tutorial, it's seriously not hard at all and once you understand it, it IS intuitive

just use emacs

based
cringe

>*saves three seconds highlighting the lines and pressing tab*
>"spending 4 months learning these key bindings was a great use of my time"

Attached: 1536872321585.png (450x450, 98K)

it's just as easy as using a video game controller.
do you sperg out because your X button is named X instead of "jump"?

right, we don't want that to happen to you so stop using vim and start using emacs

The OP image has a line break at the end of the block so the paragraph jump is valid, but yes i did miss an Esc. There's also an assumption that the file type is setup to allow indentation to work.

I think you want
A {}O}=gg

o{3jo}=i}

very clean.

Do you vim kiddies feel like wizards learning keybindings for one program? could use use these keybindings in the bash command line or are you restricted to learning all these for just one program...
Do you feel like you're more productive learning useless keybindings?

It's fun

>could use use these keybindings in the bash command line
sanctum.geek.nz/arabesque/vi-mode-in-bash/

Yeah they do. I know I used to be one of them

v3j>

Attached: (((you))).gif (235x216, 222K)

I should have specified the language is C that requires curly braces

oh-my-zsh
checkmate a-vimists

they got a vi plugin for firefox
also I program almost everyday so I should know how to use vim

Is it worth to learn vim?
I am not a professional programmer but I will probably be programming firmware for a robot in one team. My everyday OS is windows 10 but I tackle gnu/linux a bit.
Or just use an IDE for PIC/AVR microcontrollers?

No it's not

if you're going to be using microcontroller IDEs like Xilinx their plugin support will be even more limited than standard IDEs
vscode has a decent vim plugin but its still really unpolished.
so probably not

I use vim key-bindings everywhere. Qutebrowser, i3, .... Actually, that's pretty much all I need, the rest are terminal programs that mostly use vim-like bindings. And bash does infact have vim keybindings if you set it up properly. However, I actually hate the vim keybindings in gnu-readline so I learnt the default emacs-like keybindings instead.

Took about 20 minutes to get comfortable, 2 hours to be back up to speed, and 2 weeks to far surpass what my editing speed was like beforehand. So for me, the 2 hours it took to learn was more than worth it.

Everybody uses gedit in practice.
Vim is a pyramid scheme. The first people who learned it got to feel the superiority in teaching others how to use it. Those others in turn got to feel the superiority in teaching yet others. But there are only so many people who want to learn it, so we're bottoming out the pyramid nowadays.

Vim is a joke these day.
It's the first thing that comes up in google when searching for a l33t editor but so many kids fuck with it for more than it's inteded to be and turn it into something it's not. An text editor that does one thing well. Not a file tree manager, not an ide, not a pop up command completion tool.
It's just for editing text easily, not to be lived in and make everything about vim.
It's become a status symbol for kids and it's becoming a joke.

Attached: DkWIX-5VAAA7Ym6.jpg (1200x900, 126K)

Then IDE do you use for Linux? I swear to kris you better no say Qt or else...

that's not exclusive to vim. people put docker tags on their shit
if you don't use a tech solely because people like to flaunt it you shoudn't be using any tech at all

give you one guess

Attached: based.jpg (480x360, 99K)

> editing text easily
top kek

emacs is an operating system, not an IDE

This. Except vim is still the best text editor around imo. Only thing it should be used for though is text editing, and perhaps a fuzzy file searcher so you don't have to quit to find the next file.

Give me one good reason why I shouldn't use Code::Blocks...

Attached: logo.png (200x200, 27K)

you should if you're using it over vim.

Attached: vimecabomina5ion.png (355x399, 198K)

how to do in emacs?

>Qutebrowser, i3, .... Actually, that's pretty much all I need, the rest are terminal programs that mostly use vim-like bindings.
My man

A{3joV%=

nnoremap ggVG=

nnoremap 112 ggVG=

Nice. I wish i tested it before posting.

It's called not learning C on the website of a 35-year-old boomer who uses Code::Blocks or DevC++ and claims global variables and gotos are ebil nazi shit.

>Programming tutorial by some pajeet boomer

class myDick : Cocks {
private long dick;

public long getDick {
return dick;
}
}

Attached: nacho libre.png (220x236, 100K)

Attached: 1537090062778.jpg (258x245, 12K)

Ecaoe at line breaks:

ggA{
2gg3>>GO}

* "Escape at line breaks"

Damn, I'm stupid:
ggA{
j3>>GO}

>he doesn't know Vim

What's "GO"?

What did you graduate to after being a wizard

>G
Jump to end of file
>O
Add new line above the current line, move the cursor there, and go to insert mode

I'm by no means a vim expert. I swap between VS2015 enterprise, notepad++, and vim depending on the task and the environment. The few commands that I do know in vim are nice, though, since I can keep my hands on home row.

I guess I should mention I do a lot of my work work on windows with an msys2 terminal open.

>ggA{
>j3>>GO}

Mysys2... Is that Arch?

jvjjd{p

ggVGdd:q

A wise man once said "give me six hours to implement a feature and I will spend the first four configuring my init.el "

The VIrgins strike again, emacs is a good text editor

here's my emacs naive solution
C-SPC ;; set-mark-command
C-u 3 C-n ;; next-line
C-e ;; move-end-of-line
{ ;; c-electric-brace
C-b ;; backward-char
LFD ;; electric-newline-and-maybe-indent (also known as return)
C-x C-x ;; exchange-point-and-mark
TAB ;; c-indent-line-or-region

j3>>
?

Why should I use Neovim over Vim?

>dd
>not just d
Or even better, x

You failed, sorry

Not indented tho. But thanks anyway! Good stuff.

>I program almost everyday so I should know how to use vim
real programmers use IDE with whatever mode they are used to, vim or otherwise

only posers use actual vim for anything more substantial than config editing and helloworlds.

fuck yeah

Attached: Screenshot (9).png (1453x331, 42K)

real programmers use whatever the fuck they like

posers deliberate about personal choices of others on anime forums

Yeah. No.

But it does.
Sorry. It does indent. I guess fpbp.

Hard mode: do it without vim-surround

I don't vimgolf, so this is good enough for me:

gg
3>>
O {
G
o }

OEsc{113G{gg=G

If I ever need a true random sequence generator in my program I'll make sure to implement 4chin API and ask you guys how to do shit in vim.

Vscode is trash

>Those greater then signs to indent
Holy shit, thank you

a {jVjj>j^i}

The cursor isn't where you think it is after the indent