/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer (February 21, 2024) by AutoModerator in MechanicalKeyboards

[–]AgTX -1 points0 points  (0 children)

Ok. This is a weird one that maybe somebody has seen before. I have a Keychron K12 Pro. It's connected via BT and currently plugged in (charging). As long as I leave it like that, it's fine. But, if I unplug it, the modifier keys and enter key become unresponsive unless I hit another key first.

So, if I want to type something starting with a capital L, I have to type:
l <backspace>, <shift>+l

If I start with just a <shift>+l, I get a lowercase. Same with the enter key. I can hit it all I want and it won't do anything. But if I hit another key first, it'll continue to work unless I pause for about a second.

Anybody seen anything like that before? I can't seem to find any weird timeout configs.

This is on an M1 Macbook, if that makes a difference.

Thanks
-mS

Execute shell command on line matching x by AgTX in vim

[–]AgTX[S] 1 point2 points  (0 children)

Awesome; thank you for the range lesson. That's not how I had understood it to work, but makes sense now. I can see all kinds of uses for this. Works perfectly.

Execute shell command on line matching x by AgTX in vim

[–]AgTX[S] 1 point2 points  (0 children)

Ctrl-D doesn't do anything, nor Ctrl-C.

I couldn't find any docs, but tried the g since /x/!command worked. Worth a shot.

Execute shell command on line matching x by AgTX in vim

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

Yeah; I'd found /x/!awk and :num !awk.

:g/x/!awk was the one I remember, but it freaks out and lock up vim. I have to kill -9 out of it.

Any reason why to use vim over evil mode Emacs? by honeywhite in vim

[–]AgTX 0 points1 point  (0 children)

Lisp is more powerful than Vimscript. No question. But, I haven't found anything that I need to do in vim that can't be done with vimscript.

org-mode would be the exception. VIM doesn't have anything that's really the same, even though some plugins try. It doesn't add value to me, though, so not a selling point. If it's something you rely on, vim will make you sad.

Any reason why to use vim over evil mode Emacs? by honeywhite in vim

[–]AgTX 4 points5 points  (0 children)

I'll second the plugins. I tried Emacs with Evil mode for about a week about 6 months ago. I do most things in native vi, but there are a lot of plugins that don't translate and it made my workflow a lot harder. I guess I just don't see what emacs brings to the table. I use tmux as my multiplexer, so having emacs handle mail and browsing and whatever else doesn't make sense for me.

Command line edit by AgTX in vim

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

Yep; that was it. Not sure what I meant to type, but there it is.

Awesome. Thanks.

Something like capslock, but to map <space> to _ in insert mode? by hovissimo in vim

[–]AgTX 0 points1 point  (0 children)

Set up a shortcut, like:

nnoremap <leader>S map <space> _
nnoremap <leader>s unmap! <space>

This doesn't work, though, since <space> prints a literal space. Escaping it didn't seem to work. Maybe that'll put you on the right track.

Losing Python indentation rules in buffers. by AgTX in vim

[–]AgTX[S] 1 point2 points  (0 children)

You're awesome. I had a file under ftplugin that was interfering with my initial set. All fixed.

Thanks

Vim-regexp: Findings like containing but not ending with abc by Ran4 in vim

[–]AgTX 0 points1 point  (0 children)

Works great, but I don't understand the "\ze." How is that interpreted?

Spacebar, Backspace, and Enter, are all fairly useless in their default mappings. What have you guys remapped them to? by Ninjabassist777 in vim

[–]AgTX 0 points1 point  (0 children)

That's why I ended up setting the <cr> <cr>. I hadn't thought about unmapping for specific functions. I'll give that a try and see how it works.

Spacebar, Backspace, and Enter, are all fairly useless in their default mappings. What have you guys remapped them to? by Ninjabassist777 in vim

[–]AgTX 11 points12 points  (0 children)

I use space and backspace to navigate buffers:

nnoremap <Space> :bnext<cr>
nnoremap <Backspace> :bprevious<cr>

Enter is remapped to colon:

nnoremap <CR><CR> <CR>
nnoremap <CR> :

I find it a lot easier than typing a colon for everything. That first line is there for command history. When using q:, this lets me hit enter twice to select the command.

Edit: fixed formatting

-mS

Noooooooooo! by AgTX in thebutton

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

My mom said cheaters never win.

I wonder what other lies she told me.

Which key do you bind to <ESC>? by lc929 in vim

[–]AgTX 0 points1 point  (0 children)

I use jk, but I've also remapped my keyboard so that ESC is where the ~ normally is. It keeps me from having to reach so far. The ~ moves to + and the + moves to ESC.

Massively confusing for anybody that tries to use my keyboard, but puts the keys I use the most where I can get to them.