News for hackers. Stuff that matters.
Re:Using Vim for C++ Development by kovac on Thursday September 03, 2020 @10:16AM (#24364270)
Well, let me tell you how to do c++ programming with Vim. Get a Linux machine, replace the desktop with i3wm. Get a terminal emulator like urxvt and make it dark and semi transparent. Set a beautiful wallpaper. Install YouCompleteMe. Now you are in paradise :)
Re:Using Vim for C++ Development by timwaagh on Thursday September 03, 2020 @12:52PM (#24365999)
This doesn't spot errors for you like a language server can. And you will make errors. Which you see after twenty minutes of buildtime. Much fun. Very productive. Personally I'm back to using ides again but I'm glad something remotely viable has been made available to vim.
Re:Using Vim for C++ Development by wutbrodo on Thursday September 03, 2020 @02:29PM (#24367128)
> Personally I'm back to using ides again but I'm glad something remotely viable has been made available to vim.

I think you might be misinformed; I've been getting code-completion and error reporting through vim for at least 8 years on C++, and I don't know how much longer before that it's been available.

Re:Using Vim for C++ Development by alfalfasprout on Thursday September 03, 2020 @07:27PM (#24370008)
I mean, I have all that. i3-gaps, alacritty, conky for transparency, etc. But for a big C++ codebase you just end up being way more productive in something like CLion. The static analysis is way way way more in-depth than something like vim can provide even with plugins.
Re:Using Vim for C++ Development by jvanderbot on Thursday September 03, 2020 @10:39AM (#24364499)
God how i3wm changed my life for the much, much better.
Re:Using Vim for C++ Development by hyperpl on Thursday September 03, 2020 @10:43AM (#24364523)
This may be considered blasphemy, but I continue to use i3-gaps on my 43" 4K monitor in 100% floating mode. It actually works quite well. Of course for my small displays I use tiling mode.
Re:Using Vim for C++ Development by approxim8ion on Thursday September 03, 2020 @02:18PM (#24366986)
Imo if you're only floating, Openbox is even lighter than i3 and works great. Super configurable too- the config file is just XML. I really enjoyed my time on it but I like tiling too much. Window-snapping wasn't enough.
Re:Using Vim for C++ Development by boring_twenties on Thursday September 03, 2020 @06:00PM (#24369366)
Ick.

I use xmonad, despite not knowing any Haskell. I basically just copy pasted little snippets from all over the place and changed random characters until it started working.

Pretty sure I still prefer this state of affairs to XML.

Re:Using Vim for C++ Development by yearoflinux on Thursday September 03, 2020 @11:25AM (#24364931)
Why don't you use one of the olden and golden wm's for that? i3 doesn't have alt-tab
Re:Using Vim for C++ Development by jcelerier on Thursday September 03, 2020 @12:44PM (#24365895)
sure it does

    bindsym $mod+Tab exec --no-startup-id rofi -show window
Re:Using Vim for C++ Development by approxim8ion on Thursday September 03, 2020 @02:20PM (#24367007)
Rofi is great, but it's still adding several extra keystrokes for something that alt-tab essentially does in 2 (alt, hold tab till you get to a window you want, release to go to it. on rofi, you'd have to press alt-tab to invoke the window dialog, then type a portion of window name or navigate down to it, then press enter) .
Re:Using Vim for C++ Development by jcelerier on Thursday September 03, 2020 @03:40PM (#24367926)
> (alt, hold tab till you get to a window you want, release to go to it.

madness :) I could never manage to get to my window like that, it's alt + tab tab tab tab tab tab tab until I get where I want when on windows vs alt + tab down down down down on rofi so I don't see a lot of difference

Re:Using Vim for C++ Development by approxim8ion on Friday September 04, 2020 @04:33AM (#24372965)
Haha, fair enough. Also turns out tab tab tab tab works on rofi -show window (my fault for not using it much hence not knowing) so maybe it's not all that different after all!
Re:Using Vim for C++ Development by boogies on Thursday September 03, 2020 @11:15AM (#24364824)
Does i3 allow you to easily toggle floating on each window (regardless of the main mode that new windows default to) like dwm?
Re:Using Vim for C++ Development by aardvark179 on Thursday September 03, 2020 @11:32AM (#24365015)
Yes, shift-super-space is I think the default key binding to switch the current window.
Re:Using Vim for C++ Development by boogies on Thursday September 03, 2020 @04:31PM (#24368546)
That’s exactly what it is in dwm (except that dwm defaults to using alt as the MOD(ifier) instead of super, but changing that takes only a one line patch). And you can also just use MOD-leftmouse-drag to move a window or MOD-rightmousedrag to resize (either of which change the window to floating mode if it isn’t there already), or use MOD-middlemouseclick to toggle its floating state.
Re:Using Vim for C++ Development by smabie on Thursday September 03, 2020 @04:33PM (#24368566)
If you're only using the floating mode, I would recommend trying cwm.
Re:Using Vim for C++ Development by fit2rule on Thursday September 03, 2020 @03:07PM (#24367557)
Terminator is my window manager -> Ctrl-Shift-E / Ctrl-Shift-O .. (Ctrl-Shift-N / -P) ..
Re:Using Vim for C++ Development by wutbrodo on Thursday September 03, 2020 @08:35PM (#24370529)
I still use terminator out of habit, but I never tile it anymore. Terminator can't tile my browser windows along with my terminal windows, and interleaving separate shortcuts (and window groups) defeats the purpose of tiling
Re:Using Vim for C++ Development by fit2rule on Friday September 04, 2020 @03:28PM (#24378118)
Browser -> fullscreen. End of problem. Tabs in the browser window are the switch point.

Terminator isn't for everyone. But it can be for anyone.

Re:Using Vim for C++ Development by wutbrodo on Saturday September 05, 2020 @04:06AM (#24382098)
I'm not sure I follow. Are you saying you always make the browser fullscreen? Tbh I think you might be missing the purpose of a tiling window manager
Re:Using Vim for C++ Development by fit2rule on Saturday September 05, 2020 @11:41AM (#24384358)
Oh sure, I get the point of tiling window managers .. its just that I rarely need to leave Terminator for anything besides the odd web document or so - and that context switch is, for me, quite helpful.

But I set up Terminator in full tiled rig for everything else, and rarely every leave it. Its a delight.

Re:Using Vim for C++ Development by xhfhope on Thursday September 03, 2020 @12:20PM (#24365601)
add an alias to bashconfig to just enter 'g' or 'g cprogram' to compile and run

add picom with dual kawase blur https://github.com/tryone144/picom/tree/feature/dual_kawase

add rofi

add zathura and some opacity to it via picom

gg

Re:Using Vim for C++ Development by nobleach on Thursday September 03, 2020 @11:46AM (#24365178)
I use i3wm.... I really never see my wallpaper. I'd have to go to floating mode to do so.
Re:Using Vim for C++ Development by Cyph0n on Thursday September 03, 2020 @12:08PM (#24365485)
i3-gaps makes it a much better experience, in my opinion.
Re:Using Vim for C++ Development by alpaca128 on Thursday September 03, 2020 @01:53PM (#24366659)
I love how i3-gaps, transparency etc. look but in the end I always turn them off again because it's just that little bit too distracting. But I have the choice, and that's cool.

I love me some drop shadows and a nice theme though.

Re:Using Vim for C++ Development by mindentropy on Friday September 04, 2020 @07:18AM (#24373921)
How do you deal with i3wm for people who use large fonts? I use large fonts and I find that I do not have enough space in my editor to tile multiple editors.
Re:Using Vim for C++ Development by arminiusreturns on Thursday September 03, 2020 @02:27PM (#24367107)
If you haven't, you (op or readers) might try Awesome window manager. LUA based. GPL. It's i3 for us GNU-heads.
Re:Using Vim for C++ Development by Erlangen on Thursday September 03, 2020 @10:21AM (#24364326)
Agree with everything except the beautiful wallpaper:) That's my setup.
Re:Using Vim for C++ Development by pjmlp on Thursday September 03, 2020 @10:21AM (#24364327)
Only if it is a C++ programmer that writes boring POSIX CLI applications and daemons.
Re:Using Vim for C++ Development by higerordermap on Thursday September 03, 2020 @11:58AM (#24365335)
... instead of boring CRUD applications..
Re:Using Vim for C++ Development by pjmlp on Thursday September 03, 2020 @02:15PM (#24366953)
Those were already boring in mainframes before UNIX was invented.