[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
Just installed pic related. What am I in for?
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: 87
Thread images: 10
File: vim-editor_logo.png (35 KB, 400x400) Image search: [Google]
vim-editor_logo.png
35 KB, 400x400
Just installed pic related.
What am I in for?
>>
File: vim.jpg (23 KB, 640x338) Image search: [Google]
vim.jpg
23 KB, 640x338
>>
>>53670446
Pain. Then regret. Then enlightenment. Then freedom. Then power.
>>
>>53671780
this
>>
>>53670446

Yet An Other Text Editor You May Enjoy Or Not.
>>
>>53671780
and then an annoyance that you can't use it properly within an IDE.
>>
>>53671884
eclim
>>
>>53671865
sup jaden?
>>
>>53670446
a waste of time
>>
>>53671895
yeah i know plugins exist, none of them work well enough
>>
>>53670446
A slightly above-average text editor who's paradigms of use cannot be used outside of it.
>>
>>53671884
Spacemacs
>>
File: Mar-12-02-01-25-2016.webm (3 MB, 1920x1200) Image search: [Google]
Mar-12-02-01-25-2016.webm
3 MB, 1920x1200
>>53671943
it is not a plugin my friend, it is an eclipse headless server running in the back.
>>
File: Mar-12-11-28-25-2016.webm (1 MB, 1920x1200) Image search: [Google]
Mar-12-11-28-25-2016.webm
1 MB, 1920x1200
>>53671943
>>
>>53672915
>>53672995
I'm so hard watching this. I would ask how but I know I would fuck it up somehow.
Neat desktop btw
>>
>>53673080
you can ask, i can answer, basically if you have arch is pretty simple, if you have another distro is a little bit more complicated but the explaining can be done.
>>
>>53673145
does it work for c++? if so tell me how, i run arch
>>
>>53673153
yes it does.

sudo pacman -S eclipse-cpp

for eclim you need
sudo pacman -S gvim

yaourt -S eclim


for vim, i recommend using pathogen, you can simply do the following

git clone http://github.com/deviantfero/dotfiles && mkdir ~/.vim cp -r ./dotfiles/vim/* ~/.vim


that will basically install my whole vim configs and plugins to your "vim" (wouldn't recommend, it will work just as mine out of the box, but you won't learn a shit about plugins)

after that learn how to start the "eclimd" for which should be in /usr/lib/eclipse (just run ./eclimd in that directory) and read:
http://eclim.org/cheatsheet.html
http://eclim.org/cheatsheet.html
>>
>>53673201
git clone http://github.com/deviantfero/dotfiles && mkdir ~/.vim && cp -r ./dotfiles/vim/* ~/.vim


fixed, sorry.
>>
>>53673201
>>53673207
appreciate it anon!
>>
>>53672915
Tied using with scala, but as soon as i used code completion on large using functions from different libraries it crash. Was super sad. There are no other methods of code completion in vim for scala :(. Now im stuck using memory hungry intelliJ
>>
File: cheatsheet-big.png (942 KB, 3342x2060) Image search: [Google]
cheatsheet-big.png
942 KB, 3342x2060
I think a better way to learn VIM is by using it in other ways than a text editor. Try installing a Vim-like web browser or a browser extension that implements Vim's key combinations such as Pentadactyl or Vimperator for Firefox. That way you can get used to navigating, searching, manoeuvring around and between webpages.

I installed Qutebrowser as a joke but it got me going in the right direction to learn the basics of Vim. Also, don't be shy of using references. Pic related is the browser's cheat sheet.
>>
>>53671884
JetBrains
>>
>>53670446
Efficiency and freedom.
>>
>>53673201
vim-plug is infinitely better, you should give it a try.
>>
emacs

pic related
>>
>>53670446
A life of pain and misery

Seriously, if you use Vim as a the text editor it is you will have a comfy cross platform tool to edit scripts and transform text files

If you believe the memes and try to use it as an IDE to make application misery and suffering awaits you
>>
A hacked together piece of shit.
>>
>use vim plugin in IntelliJ
>literally perfect
>>
I would just skip straight to neovim if I were you...
>>
>>53670446
Lies. You didn't just install it - It comes installed by default in every non-windows distro ever.
>>
>>53677134
>neovim
>let's drop years of well tested code
>let's use libuv because it's new and hip and we add another arbitrary dependency
>let's drop compatibility with dozens platforms
>let's support only OSX and Linux because who would use anything else
>let's drop Windows support
>let's drop support for gui because it's hip to use the terminal
>let's implement fancy features that noone wants
>neovim embedding in a bloated IDE is so cool lmao
>let's shill neovim and lie that Bram is holding Vim back
>don't forget to donate and we promise we will implement these features ayy

dropped
>>
>>53671884

> IDE

Fucking normies.
>>
>>53677320
also
>let's reinvent emacs but instead of using just lisp we will use lua, python and viml because.. why not?
>let's implement a terminal emulator inside vim, because lol it's 2016, who wants to do one thing and do it well?
>now you can run neovim inside neovim inside neovim
>so cool and useful
>>
File: neovim.png (5 KB, 520x170) Image search: [Google]
neovim.png
5 KB, 520x170
>>53677134
neovim is dead
They ran out of people willing to donate for nothing but minor patches and development is drying up now that they aren't making money off it
>>
>>53677150
You mean vi, vim is not always standard.
>>
>>53677454
Vi hasn't been installed by default for years; Vim has superseded it for ages. Are you 12? In which case, welcome to the world of linux admin.
>>
>>53677454
>vi
>2000+16

I thought neo/g/ was just a meme
>>
>>53675024
For Firefox, I recommend VimFx. Not invasive at all, just provides some very nice functionality.
>>
>>53675329
Stop peddling your stupid operating system.
>>
>>53677150
>>53677481
Uh no. Doesn't for Arch at least, vi does but you have to install vim yourself.
>>
>>53677597
>Uh no. Doesn't for Arch at least, vi does but you have to install vim yourself

Really? Wow, talk about ignorance
Arch-ers have become worse than gentoo-ers
>>
>>53677481
>>53677507
>I've installed one distro ever and assume that every other distro works exactly the same
Plenty of distros don't ship vim by default. Arch, and several releases of Debian come to mind.

>>53677626
>whoops I was caught being wrong
>better damage control
>>
>>53677626
>Really? Wow, talk about ignorance
Idiot, go install Arch in a vm yourself using nothing but base base-devel then login and see if vim is installed.
>>
>>53677670
Talk about lack of reading comprehension...

It's Vim, vi is not Free software and can't be included in a Linux distro

Better use a simpler distribution and learn something about the software you use
>>
Disable arrow keys for faster learning process
>>
>>53677727
>I type vi so it must be vi

Ignorance is bliss
>>
>>53677755
You're a fucking retard you know that? Do pacman -Qs vim if you don't believe me.

Now fuck off. I'm well aware vi symlinks to vim after vim is installed. Vim however is not installed by Arch by default.
>>
>>53677753
I bound up and down to move lines up and down instead, so fucking useful.
>>
>>53677794
Mind sharing that?
>>
>>53677737
>vi is not Free software
Like every other utility that existed in the original unix, there's an free software version of it that's been used for decades in linux with the same name.
>>53677755
Several distros ship non-vim vi by default, and overwrite it with a link to vim when vim is installed. Just because you have a link to vim named vi on your system right now, doesn't mean every other distro works that way all the time.
>>
>>53677905
no <down> ddp
no <left> <Nop>
no <right> <Nop>
no <up> ddkP

Warning: it does fuck up when you do it on the first and last line of the file, everything else is fine though.
>>
>>53677905
Not him but check this out

http://vimcasts.org/episodes/bubbling-text/
>>
>>53677943
Thanks fämäläm
>>
>>53677778
>>53677910
I stand corrected. Sorry.
>>
>>53678004
This method doesn't have the problem with the last line described in >>53677943
>>
>>53678097
What? It's the exact same method
>>
>>53678097
Yes, >>53678110
I don't get it either. It seems to mention the same keybinds I posted above in code tags.
>>
>>53678110
No it isn't

>Text bubble with unimpaired.vim
>A better solution is available if you install Tim Pope’s unimpaired plugin. This provides the exchange commands, which are mapped to [e and ]e respectively:
[e  -  Exchange the current line with [count] lines above it.
]e - Exchange the current line with [count] lines below it.

>These commands can be prepended with a count, and they both also work in Visual mode. Whatsmore, they handle edgecases more gracefully, by raising an error message: Invalid address.

>If you have the unimpaired plugin installed, then you can use the “square bracket e” commands to bubble text up and down. But if you are used to the TextMate key commands, you could always recreate those mappings and hook into the commands from unimpaired. This excerpt of Vimscript should do it:
" Bubble single lines
nmap <C-Up> [e
nmap <C-Down> ]e
" Bubble multiple lines
vmap <C-Up> [egv
vmap <C-Down> ]egv
>>
>>53678004
>>53678097
>>53678110
>>53678168
Tbh I'd rather deal with it fucking up on a single line in the file and just avoid using it in that case than go through this headache. Especially since it works natively.
>>
>>53678168
Oh, you mean the "install a plugin instead" alternative?
I guess you can call that a "method"
>>
>eclim

why not just use eclipse with vim config?
>>
>>53675024
>>53677516
cVim for Chromium/Chrome strikes the best balance between power, aesthetics, vim zen, and not fucking up your browser.

It lets you do things like make a cvimrc, put it in a gist, and point the plugin to the gist whenever you need to get it working on a new machine. It's pretty slick.
>>
>>53678186
You never know when an edge case will bite you so I prefer to deal with them early
>>
>>53678250
In the case I want to move the bottom line up I can instead just move the second bottom line down, tada.
>>
>>53678257
I find moving multiple visually selected lines comfy so I prefer the plugin method
>>
>>53678342
Yeah for that I agree it might be worth, but for single line cases fuck that.
>>
>>53678110
I cannot understand what `[V`] does
>>
>>53677320
idk, i've been using it for almost a year now: superior to vim in pretty much every way.
>>
Vim is like learning to walk on your hands. Some say it's faster that way, but you've already got it down in a way that works just fine, no?
>>
>>53670446
It should have been part of your default OS installation.
>>
File: inane.jpg (38 KB, 640x427) Image search: [Google]
inane.jpg
38 KB, 640x427
>ugandese extortionware
>>
>>53677516
For Firefox, I recommend VimFx. Not invasive at all, just provides some very nice functionality.
I installed that and it's really lightweight. Thanks a lot for the tip!
>>
>>53680457
Worst analogy I've heard in a long time
>>
File: 1441304892836.jpg (222 KB, 957x720) Image search: [Google]
1441304892836.jpg
222 KB, 957x720
>>53671896
underated
>>
>>53670446
So called efficiency.

Shortcuts for stuff nobody actually needs like reversing every second line, at the cost of ergonomical base functionality.
>>
>>53670446
Use it and find out faggot. Jesus Christ.
>>
>>53670446
The only good editor in the world.
>>
>>53677320
>>53677430
Pretty much this. neovim is a joke, which is actually sad because proper parallelism (or at least concurrency) would be a godsend for vim.
>>
>>53678440
`[ = ctrl+[ = beginning of section. V = visual lines mode. `] = ctrl+] = end of section.
>>
>>53683628
` is ctrl? when i tried typing it manually it did nothing. also wouldnt `[V`] do absolutely nothing then, you don't have 'time' to select anything, it just opens and closes on the spot.
>>
>>53683653
Visual lines mode automatically selects anything until end of selection.
>>
Install nano
>>
>>53683712
Wouldn't that select only one line though? Wasn't the point of those binds to move multiple lines.
>>
>>53683737
Go be high somewhere else.
>>
>>53683744
wat the bind according to you does `[ (open selection) V (in visual lines mode) `] (immediately close selection)
>>
>>53683744
>>53683712
>>53683628
don't listen to this faggot, he doesn't know shit.

'[  `[            To the first character of the previously changed
or yanked text. {not in Vi}

*']* *`]*
'] `] To the last character of the previously changed or
yanked text. {not in Vi}

[count]V Start Visual mode linewise.
Thread replies: 87
Thread images: 10

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.