[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
Vim Thread
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: 77
Thread images: 15
File: 1_003.png (141 KB, 1366x768) Image search: [Google]
1_003.png
141 KB, 1366x768
What's your vim setup, /g/?
>>
Vim is shit and your fonts are shit, even notepad++ on windows works and looks better.
>>
>>53056942
>I don't know what vim does. I'm just a shitposting winkiddie.
>>
>>53056888
>server side javascript
:q! your life
>>
>>53056888
>implying anyone here knows how to use vim

Nice Hitler trips btw...
>>
File: gv.png (353 KB, 1916x1054) Image search: [Google]
gv.png
353 KB, 1916x1054
Clang Complete, Syntastic, Nerdtree and Tagbar are the main ones.
>>
mine is setup in the trash so i can just delete it
>>
Theme: Molokai
Plugins: nerdtree, nerdtree tabs, bufkill, delimitmate, airline, fugitive, gitgutter
>>
>>53056888
im borning. nothing custom. zenburn theme because it is easier on my eyes spending hours pouring over configs
>>
File: frac.webm (2 MB, 1000x1000) Image search: [Google]
frac.webm
2 MB, 1000x1000
>>53057120
Here's a webm because I spent way too much time on that program... It actually outputs png's, for this polynomial I merged them into a 64MB gif that, when opened, consumes ~2600MB or ram.
>>
Got quite a few plugins... vim-polyglot, vim-surround, neocomplete.vim, jedi-vim, vim-airline, nerdtree, vim-css-color, easymotion/vim-easymotion, Apprentice, vim-fugitive
>>
>>53057190
me too. everyone here are fucking autism fags
>>
>>53057359
>>53057190
>found the people who know jack shit about programming
>>
>>53057120
What's the thing on the right called? The one that has all the functions?
>>
I use nano :^)
>>
File: screen1.png (297 KB, 3304x2164) Image search: [Google]
screen1.png
297 KB, 3304x2164
>>53056888
Heretic reporting in.

I used to run Vim + YCM, NT, Tagbar, etc; like this guy:
>>53057120

I still do when ssh'd in somewhere, but otherwise...

I tried Emacs+EVIL for some LISP, and ended up comfier over there. I've got the usual Clang integration for autocomplete/syntax highlighting/symbol browsing, ag integration, and all the other necessary crap.

Every extension integrates nicely with HELM (the slide up drawer at the bottom of the screen - currently displaying ag results).

colors are zenburn, of course.
>>
>>53057387
Tagbar
>>
>>53056888
share your plugins hitler dubs
>>
>>53057290
Thats pretty cool desu.
>>
>>53057636
>Spacemacs config
My nigga.
>>
>vim
Lel. Not a single reason to use over Emacs + Evil.
>>
File: ZZAFP.png (22 KB, 626x421) Image search: [Google]
ZZAFP.png
22 KB, 626x421
>>53056888
>>53057120
>>53057348
>not using relative line numbers

why.jpg
>>
File: 1449612235522.jpg (7 KB, 350x144) Image search: [Google]
1449612235522.jpg
7 KB, 350x144
>>53056888
>not know how good it feels to developed with Spacemacs in evil mode
>>
File: 1454231852861-b.png (30 KB, 747x491) Image search: [Google]
1454231852861-b.png
30 KB, 747x491
>mfw looking at a 2000 line vim config file
>tfw using emacs in evil mode with a elisp config linter
>>
>>53056942
>notepad++
>2016
>>
File: vim.png (125 KB, 1599x882) Image search: [Google]
vim.png
125 KB, 1599x882
>>53057636
nice, colorscheme?

nvim/YCM/Tagbar/Lucius/NERDTree/some oether shit
>>
>>53057120

When you look up from your screen, does everything look more yellow because your eyes accustom to the overkill of blue in your colorscheme?
>>
File: OPb9hNL.jpg (127 KB, 1920x1080) Image search: [Google]
OPb9hNL.jpg
127 KB, 1920x1080
>>53056888
honestly why would you ever use anything but sublime?
using vim for no reason but to look as some hacker is fucking idiotic
you can configure sublime just the same, and the time you "save" by using vim isn't that much either to be honest. in short if you use anything but what normal people use you're fucking retarded
>>
File: 1453251331410.gif (1 MB, 217x217) Image search: [Google]
1453251331410.gif
1 MB, 217x217
>>53062402
>anybody who uses command line programs is wannabe hacker
>>
>>53062339
> colorscheme?
zenburn
>>
>>53058156
Ctrl-P, vim-airline, Syntastic, and YouCompleteMe. Base16 Dark (?) color scheme.
>>
What is better powerline or vim-airline? Powerline has this fancy tabs.. How to achieve this in airline?
>>
>>53062402
Please use Vim before shitposting. You're worse than the "SSD is a meme" shitposters, because at least you guys get download vim for FREE
>>
>>53062402
> he would have enjoyed writing this shitpost even more had he written it in vim
>>
Why don't you faggots just use a proper IDE with a Vi plugin?
>>
>>53062402
>still not using emacs or spacemacs
>>
>>53063068
Probably another b8, but if not:
> proper IDE
so you mean VS?

- I don't use Windows at work
- our code targets Linux
- VS vim plugins at best only emulate a subset of vim
- VS with Lisp? Go? How? I do more than just C++ in my free time

There is no vanilla IDE for Linux and OSX that satisfies my needs above and also has good Clang integration.

Hell, there is no good vanilla IDE for Linux, period.
>>
>>53056888
>dat line length
u srs m8?
>>
>>53063207
Spacemacs?
Jetbrains?
Eclipse?
>implying Linux has no IDE's
Gtfo
>>
>>53063729
But anon... I /am/ using "Spacemacs"...

Yes, it's basically an IDE after adding the right overlays and customizing it a bit further, but most people that make a comment like yours consider both vim/emacs to be editors only.

> eclipse
Garbage

> jetbrains
Meh...

> implying Linux has no good IDE
Linux IS an IDE. To clarify, I meant that other than Vim/Emacs, there are no cli/gui editors that can both act as an IDE and live up to my standards
>>
Why would I want to use the clunky old dinosaur piece of shit.

I will stick with atom thanks.
>>
>>53064647
it's fine if you don't understand
nobody wants to convert stupid users to vim/emacs anyway
>>
>>53064728
Atom has exactly the same functionality and then some...
>>
is there any way to setup vim to be as comfy as nano? I'd like to start out with something like nano and then add features as I need them
>>
>>53064747
how do I edit code living on a remote server (which will be compiled there) with atom?

map a drive over ssh? then clang/tags/etc are all running over ssh

I can't ssh into the box and run atom over my ssh session... right?

doing git repo synchronization before building is annoying and breaks my development flow.

anyway I tried it a long time ago when it was young, out of curiosity, and it felt a lot slower than vim at the time.

convince me (and everyone else in this thread) otherwise
>>
>>53064811
you ask the admin to please install atom or you install it yourself

not hard
>>
File: 2016-02-19-125923_698x67_scrot.png (13 KB, 698x67) Image search: [Google]
2016-02-19-125923_698x67_scrot.png
13 KB, 698x67
Anyone know why YCM gives me an unknown build error when I try to make a config for it? It's a C++ project and YCM can generate a config just fine for my smaller labs (small as in there is only one .cpp file and no headers)
>>
>>53064844
I don't think you understand.

I am one of the admins, but the machine is headless in AWS.

I need to either ssh into the box and run my editor there, over the cli, or map the filesystem remotely over ssh and use it locally as a mapping.
>>
>>53060863
I am, look closer.
>>
>>53064880
I thought it was a terminal editor at first glance.

The answer is X forwarding.
>>
>>53056942
>hurr
>>
>>53064917
Good
>>
>>53064937
It would be... if we ran X.

But it's a waste of resources for something that is supposed to strictly be a development and machine learning box.

Literally none of the devs here are hurting without access to X and GUIs. Why would I install it just to pipe an editor running inside a browser over an ssh connection? Do you see why that seems ridiculous yet?
>>
>>53064880
Atom has a shit load of extensions people make.
This one could work.
https://atom.io/packages/remote-edit
>>
>>53064958
A development and machine learning box is a waste of resources in the first place. That's what virtual machines are for, servers should only handle live production code.
>>
>>53064958
You only need to run X when forwarding, in that sense it's no different than running vnc or rdp

if your server is seriously going to have problems running X then you either need a new server or you are underutilizing it

hell I run X forwarding on a RPi with zero issues. you don't need to run a full-blown WM/DE, just forward the X window for the program in question
>>
>>53064996
it sounds like you've only worked on projects that take at most 1-2, maybe 5 minutes to compile. or maybe I'm wrong, but you still don't see the advantage of this.

what takes ~15 minutes to compile locally on a developer's own machine/laptop takes ~1-2 minutes on our (more powerful) shared resource. yes, some parts of our codebase are large, but that's the nature of our services. is your next reply to me going to be "rewrite them to compile in 60 seconds or less"?

beyond just using it as a buildbox, it's also convenient to utilize it for one-off tests that require production-esque specs - something we couldn't do locally on our own machine/laptop within a VM

it builds nightlies and runs regressions for us at the hours when we're not actively using it

VMs are used locally to mock production environments and test, where appropriate
>>
>2014+2
>Not using kakoune, the superior command-line text editor, written in a superior language
>>
>>53064996
>>53065234
also several services are network intensive and really need to be tested/run from within the infrastructure.

it makes no sense to run/test them outside of AWS over our comparatively slow office link.

some people have need for this sort of setup. others may not, and that's ok.

we're someone that does.
>>
Anything else you guys recommend other than auto-pairs? It's a fucking pain.
>>
>>53065234
I work on a shared cluster and X11 forwarding is commonly used by all sorts of disciplines
>>
>>53062938
>download vim for FREE
Nah, you have to donate to save Ugandan children.
>>
How do I exit VIM plis respond.
>>
>>53065731
:q!
>>
>>53065731
Alt-F4, since you're clearly on windows.
>>
>>53065731
shut down your operating system
>>
>>53065731
Alt + SysRq + k
>>
File: screenshot_2016-02-19-20:27:52.png (360 KB, 1918x1079) Image search: [Google]
screenshot_2016-02-19-20:27:52.png
360 KB, 1918x1079
Removed the comments from my vimrc with :s/".*// so my vimrc probably doesn't work anymore. But it's good enough to see how things work I guess.
>>
>>53056888
How do you get the nice looking tabs and status bar with the triangles at the end?
>>
>>53067257
Airline/lightline with a custom font.
>>
File: 1441202059537.jpg (40 KB, 720x602) Image search: [Google]
1441202059537.jpg
40 KB, 720x602
>>53056888
>Writing comments to the right of statements
>>
File: 1454632792697.jpg (42 KB, 544x486) Image search: [Google]
1454632792697.jpg
42 KB, 544x486
>>53066168
>if 1
> function definition
why?
>>
>>53068263
vim.tiny doesn't allow function definitions nor "if" statements. It ignores the content of if statements but throws error when you try to declare a function, thus using if 1 prevents errors from being shown when using vim.tiny while the function is defined as normal when using a fully fledged version of vim.
>>
>>53068339
why not use a normal version of vim?
>>
:q!
emacs
>>
>>53068404
I used to use something that forced me to use vim.tiny (can't remember wat tho). Using update-alternatives and shit wouldn't change a damn thing.
Now that I made the change I actually kind of like it. Makes my vimrc portable.
>>
>>53068438
> emacs
> *spawn terminal split*
> vim
ayyyyyy
Thread replies: 77
Thread images: 15

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.