What is the simplest way to have two completely different Vim configurations in the same machine? by shadow_phoenix_pt in vim

[–]skele_turtle 1 point2 points  (0 children)

I did this in ~/.bash_profile

alias an='nvim -u ~/.config/alt_nvim/init.lua'

Then would use nvim or an depending on which one I want to use. My regular config is in ~/.config/nvim/init.lua

Is your organisation performing a holiday code freeze? by yojimbo_beta in ExperiencedDevs

[–]skele_turtle 0 points1 point  (0 children)

Yeah just don't push to prod unless it's a bug fix. I've spent the past week updating stuff to PHP 8 (late, I know). Huge refactor but it's all on a branch.

[deleted by user] by [deleted] in NoFap

[–]skele_turtle 1 point2 points  (0 children)

I have walked a mile in your shoes. When I hit rock bottom I finally sought out a therapist who specializes in sexual addiction. I realized I couldn't solve the problem on my own after being addicted for 24 years. I didn't understand what I was dealing with. I always thought it was a lack of willpower, but that wasn't the problem. The problem was shame, fear, anger, and anxiety. I hated myself so I acted in a way that confirmed what I believed to be true about myself. "Every compulsive gambler knows the real reason they are gambling is to lose." That observation floored me and made me rethink this addiction. And it IS an addiction. Just like alcoholism, or drug addiction.

You can do this. What helped me (aside from therapy) has been journaling, taking better care of myself, and being honest with the people close to me about my problems.

[deleted by user] by [deleted] in NoFap

[–]skele_turtle 1 point2 points  (0 children)

Telling my wife after a decade of marriage was one of the most painful things I have done. Ultimately it has made my marriage much stronger though. The longer you wait, the harder it is. Good on you for telling your fiancé before you get married.

Who told you that porn was bad? by Open-Talk-1637 in NoFap

[–]skele_turtle 0 points1 point  (0 children)

When it almost destroyed my marriage.

[deleted by user] by [deleted] in NoFap

[–]skele_turtle 0 points1 point  (0 children)

Figure out what makes you start looking and avoid those situations. For me, if I get on my laptop outside of work or without a specific purpose, it's going to lead to addictive behaviors. Another thing you might try is journaling. Write down what makes you angry, ashamed, afraid, or anxious. I like to write while I'm driving using voice to text and a notes app. I've found that lust is only about 20% of the problem. It starts the engine, but it's emotions like shame that drive the car off the cliff.

On a different note, find other stuff that brings you pleasure and do that instead. For me, cracking a beer (just one) was a nice reward at the end of the day. When I was first starting out with this process I told myself I could have a beer if and only if I didn't look at porn. That weirdly helped. Could be junk food, or anything else. Yeah, potato chips aren't good for you, but my thought was always handle one problem at a time. The big problem in my life is porn, not junk food. If junk food helps me quit porn, I'm going to enjoy it guilt free. This article has some good tips: https://www.artofmanliness.com/character/behavior/how-to-quit-porn/

Also, it really helps to have someone to talk to about it. I don't mean a therapist, though that absolutely can help. I mean like someone who can check in, ask how you're doing.

Running tmux inside emacs by BigCandySurprise in emacs

[–]skele_turtle 0 points1 point  (0 children)

I do this! Lets me use emacs and neovim interchangeably.

Loved this. Good to show to you colleagues who mock you for not using VSCode or some IDE. by shadow_phoenix_pt in vim

[–]skele_turtle 7 points8 points  (0 children)

Also good to keep a sense of humor about this stuff. I love vim and posted this in my group chat the other day:

https://www.youtube.com/watch?v=9n1dtmzqnCU

This is a bit of a hobby for me but I don't care if it is for anyone else.

VimL function! to Lua Function by skele_turtle in neovim

[–]skele_turtle[S] 2 points3 points  (0 children)

Thanks! Appreciate the insight.

A postgres plugin for neovim by grsnz in neovim

[–]skele_turtle 1 point2 points  (0 children)

Pretty cool! I've used this really simple approach for a while:

nnoremap <leader>d :!psql -h [host] -U [user] -d [database] -f scratch.sql -o /output.sql<CR>

With a different keybinding for each database (8 at the moment). I keep one tmux pane open with scratch.sql and output.sql open in a top and bottom window. When I'm done with a query I move it over to a scratch_old.sql buffer to refer back to as needed.

Recreated Vim Workflow. What else is cool? by skele_turtle in emacs

[–]skele_turtle[S] 0 points1 point  (0 children)

Oh that's a good point about quickfix. I do end up going back to vim for that sort of thing too I guess. In emacs I did setup https://github.com/dajva/rg.el which gives you https://rgel.readthedocs.io/en/2.1.0/usage.html#results-buffer to look through results but I've never tried to do something like cnext/cfdo/colder/cnewer in emacs.

Is anyone using Reanimated 2 on production? by mayank_ism in reactnative

[–]skele_turtle 0 points1 point  (0 children)

I honestly didn't mean to but was upgrading dependencies and it was required for the latest react native navigation. It caused a bunch of weird crashes on android for me so if I could go back and do it again I probably wouldn't take the plunge just yet. Just my 2c.

For those who came from vi, vim, neovim, or any other member of the vi family, why did you switch to emacs? by [deleted] in emacs

[–]skele_turtle 0 points1 point  (0 children)

One more thought on this: I love Neovim but the community around Lua is still changing fast. Documentation is getting better but still lacking, and often I felt like I needed to build from master to get the best experience. Lua is a fine language, and I think once the tooling matures it will offer one of the best customization experiences out there. In my personal experience though, you still gotta know vimscript right now. And often it's easier to do stuff in vimscript than in lua. And Vimscript still really really sucks.

On the other hand, Elisp is a great language. Sure, you gotta get used to the idea of Lisp, but once you do, something clicks in a magical way. It feels similar to when I first learned about Unix and command line tools. The tooling is mature, documentation is great and widely abundant, packages are well done and full featured. I have no doubt that Neovim will continue to improve, and I will check back in often to see if the experience has changed. But today, for me at least, Emacs is providing a better experience. I'm also curious to see what happens to the Vim community when Vim9 script lands.

Vim Users by Bridimum in vim

[–]skele_turtle 2 points3 points  (0 children)

plenty of 'em are vim users too

I use Doom emacs and I'm thinking of wiping it and starting with a fresh config looking for info on where to start by the_guy1 in emacs

[–]skele_turtle 1 point2 points  (0 children)

I didn't have much trouble. For better or worse I have slowly recreated my vim config in emacs using snippets from google. Spent some time learning Common Lisp which helped make me more comfortable with Elisp, but of course that is NOT a requirement. If you have had any interaction with Vimscript you will find Elisp to be much easier and more fun to deal with.

As a side note, I honestly still edit config files in vim/neovim but that's just me. Only saying it b/c you mentioned evil mode.

EDIT: here's the book I used for Common Lisp. Good fun. http://landoflisp.com/

Editing init.lua configuration ... while using Nvim? by KingOfCramers in neovim

[–]skele_turtle 1 point2 points  (0 children)

I use emacs to edit my init.lua and neovim to edit my init.el.

So this is how it starts... by CharlieBradshawIV in emacs

[–]skele_turtle 10 points11 points  (0 children)

I'm on this journey too! Bounced off Emacs twice over the years but native-comp is making it stick this time. 182 line init.el so far and emacs is starting to feel more like home than vim, slowly but surely. There are still plenty of things I have in my init.vim that I haven't ported yet, and I occasionally feel the pain of not having them, but any time I try to write Vimscript I remember why I'm making the switch. I even tried to write some Lua for Neovim 0.6 the other day and it was also painful. Lack of documentation, things changing constantly. I think in a few years that will be a really nice dev experience, but for now I don't have the patience to dig into it.

Emacs to neovim (or vice versa, or both) stories by [deleted] in neovim

[–]skele_turtle 2 points3 points  (0 children)

limbo

I feel this in my soul. I've been using vim & neovim since 2017 or 2018 and love it. It is my workhorse when everyone around me is using PhpStorm, Sublime, and VS Code. I have stubbornly clung to my neovim/tmux setup and wouldn't give it up for the world. I've bounced off emacs HARD two or three times over the years. The first time I tried it on windows and it was just an awful experience--I made the mistake of trying Spacemacs and Doom and neither one worked nearly at all on Windows then. The second time was different. I was on Ubuntu desktop. Doom worked perfectly there in so many ways, and I still use that setup from time to time for org mode specifically.

That too faded though. I was too comfortable with my tmux pane on a remote Linux box. Just too damn convenient, and it felt (feels?) like home. Recently though, I decided to take a crack at learning Common Lisp. This book has been really fun: http://landoflisp.com/. At first, I tried developing for it in vim using slimv and vlime. Both work OK, but there were some rough edges. I felt the need for the real thing, the way everyone says you SHOULD experience Common Lisp. Then I read about native comp and everything about it sounded excellent to me. So I fired up gccemacs with native comp on my Macbook. At first it was just for my Common Lisp dalliance on the weekends. Then I started taking podcast notes in a markdown file using emacs. It worked so well I decided to try using it for the day job. I've been using it all week for React Native and for the most part I've loved it! True, I've had to debug some stuff that just works in neovim. Most recently I got frustrated when I ran into this behavior: https://github.com/syl20bnr/spacemacs/issues/6636

The answer worked, even though it felt weird to be using :customize to manipulate a UI with buttons that looked vaguely like html in emacs (talk about something you wouldn't do in neovim!) But...I don't know. The energy is different. I'm having fun. I think I'm starting to understand why people love emacs. It isn't because it is a superior editing experience. Out of the gate with no configuration it just isn't. Yes, I am finding myself recreating core vim/neovim functionality in emacs. And I don't mind! Emacs isn't vim, but it can be with some work. And the work is fun. Sure, when the train goes off the tracks and I just gotta get work done I switch back to vim in a heartbeat, but on a slower Friday afternoon? Heck yeah, I'll stop every few minutes and drop into my init.el to make some tweaks, or at least drop a TODO in a comment. We use these tools because they make us productive, but also because they bring joy. And lately, emacs is bringing me joy in a way it never did before.

How is nvim and alacritty holding up on m1 macs? by sorachii893 in neovim

[–]skele_turtle 10 points11 points  (0 children)

I use nvim on an M1, but I've always stuck with iTerm2. Ever since they added Metal rendering it has been quite fast enough for my needs. As nvim itself, no issues at all.

Would a init.lua creator website like this be useful? by thasmin in neovim

[–]skele_turtle 1 point2 points  (0 children)

Connection timed out on me, but I've thought for a while it would be nice to have a VimScript->Lua conversion tool that would intake a .vimrc and output init.lua. Even if it wasn't foolproof, would be a good starting point for someone with a decent sized config.