[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: file.png (48 KB, 544x545)
48 KB
48 KB PNG
Post your sins here. Anonymous. No forgiveness. Just honesty.
>>
>>107794837
I use the arrow keys for moving around
>>
>>107794837
i use dwm, with tmux on top, within a screen session.

all to use fish ;_;
>>
>>107794837
I never use counts, only motions.
>>
>>107794852
this
also I don't use macros
>>
I have setup my Vim config 10 years ago and I haven't touched it since. I have no idea what each line does or where I got it from. I just pasted a few snippets that I need in there. I have no intention of learning the Vim config language.
>>
My vimrc has a known backdoor exploit that I specifically wrote when I didn't know better, and now that I do, I don't care to fix it. As long as I never name a python environment something malicious, it'll all be ok. I don't use python very much anymore anyways.
>>
>>107794964
Same. I just :nnoremap <leader>n [the bullshit i need to do]
>>
>>107794837
Midnight Commander made such a great file manager and it's built in text editor has syntax highlighting that works good enough for me so I never bothered with VI or Vim. Did not like emacs either
>>
I use neovim and alias vim -> nvim. It just makes life so much easier.
>>
I tried to learn hjkl to move around years and years ago but it is not intuitive for a modern user. It made sense in the 70s when you had an archaic terminal keyboard.
Other than that vimrc is pretty simple for now. I'm not a power user.
>https://litter.catbox.moe/cbufokj17490szgt.vimrc
Only macros are g+1-5 to jump to 20% incremental positions in current line
and h+1-5 to do the same with the file
leader is , but it's only used to clear highlights with ,+space.
>>
>>107795674
I got really used to hjkl on my old laptop with a broken arrow key and now I can't quit it
>>
>>107794837
I love regex but still frequently have to look up how to do stuff. I don't use arrow keys but instead I over-rely on hjkl
>>
>>107795862
>I love regex
>still frequently have to look up how
checks out
with experience you will learn to dislike it
however in the context of vim navigation and search/replace it's workable
>>
>>107794837
I don't use vim registers. If I need to save multiple sections of text I paste them in sublime text and copy them separately.
I use visual mode once in a blue moon when I want to erase the first character of a ton of lines at a time. It's usually faster to just x and down arrow over and over because visual mode is an alien language.
I consider vim my primary text editor too.
>>
>>107794837
i only use insert, append and dd, and move with arrow keys. i am a neet running linux, but still, i could have learned more having had vim as my main text editor for years now
>>
My config got so bloated I ended up switching back to Nano.
>>
I use both Emacs and Vim regularly.
>>
>>107794837
I don't use macros and I don't use numbers for movement at all and I'm fairly sure there are some very important tricks I don't know about
I just feel like what I know and use is enough already, don't feel like forcing myself to learn more
>>
>>107794837
I use dwm, firefox+tridactyl, ranger for file manager, and vim for text editing
I have no idea how to do anything in vim other than move around and insert text. Haven't bothered to learn beyond, I just like the hjkl to move and open links in firefox without using the mouse.
feel like a fraud, but can't be fucked to figure all this shit out.
>>
>>107794837
I use vim macros to inefficiently process csv data instead of just using libreoffice because I think using macros just look cool.

Also, been wanting to write Clojure code in vim even though Emacs is obviously the better choice for that language.

Also using plain ol vim with like 20 lines of config instead of neovim, on that note I use no lsp ever
>>
File: IMG_0014.png (925 KB, 1728x2160)
925 KB
925 KB PNG
>>107794837
I started using Kate text editor because I’m trying to move around in real life and joysticks are better with KDE GUI text editor than terminal.
>>
vim motions are great but to restrict yourself to a terminal is not great. i also find vimscript to be not very enjoyable to use. i wrote a script that relied on a buffer's filetype and that variable does not get set before VimEnter function gets called, which would be fine but BufEnter does not get called on the inital buffer. i read all the documentation and could not find a different function to use, so i had to use a timer because otherwise the file type would not be set for the autocmd. none of these issues are solved by neovim either as lua is just as bad as vimscript.
>>
>>107798427
>i wrote a script that relied on a buffer's filetype
You probably want the FileType event.
>>
i made a fairly extensive config then used vim for like 5 minutes and went back to textadept
>>
>>107798508
>textadept
Does this have a decent, working vi plugin?
>>
>>107798471
i tried that, but the FileType gets called less often than the Enter functions. basically the script just decriminantly saved the last two buffers entered so i can swap between them with a single key press.
>>
>>107798508
You did it backwards. You're supposed to adapt to vim more than it adapts to you. Start with a minimal config that principally enables features rather than overriding default behaviour. Get used to the way the editor works. Only then start adding custom behaviour. If you go into it thinking "I will turn vim into $IDE_YOURE_USED_TO" then you will both suffer from the experience.
>>
I pretty much use a stock nvim.
I have a theme and LSP and that's it.
>>
>>107794837
I got to be honest, my brain works in object-verb not verb-object and vim has always severely fucked with me because of it. And, what's worse, is by ending with the object you have to either delay (which isn't done) for target representations or never display targets before the verb form is added
>>
>>107798794
Kakoune lost, get over it
>>
>>107798805
> he saw right through my clever disguise
I'll always be representing OV chads
>>
>>107794837
i barely know enough to save a file and exit vim i have been putting off vimtutor forever
>>
>>107798875
Helix is fine if you don't mind Rust
>>
File: a.jpg (376 KB, 750x761)
376 KB
376 KB JPG
>>107799206
>if you don't mind Rust
>>
>>107799284
Kakoune's sin was arriving too ahead of it's time, back when everyone was dick ridding Neovagina's newfond Lua API.
>>
>>107797513
Clojure is kind of meme-ish but I like Babashka more than Python. Kinda wish it was widespread, the whole thing is basically a Frankenstein of Go's convenience and Java's built ins. It even supports cross compilation.
https://github.com/babashka/babashka/wiki/Self-contained-executable#uberjar
>>
>>107799348
>Babashka
>Clojure
Have you also seen jank?
>>
>>107799361
Promising, though is going to stay in alpha for a very long time, LLVM is autistic. It's likely even Carp will go anywhere before Jank gets a proper RC.
>>
>>107799041
ZZ save and quit
ZQ quit without saving
>>
>>107794837
After using both, I honestly think emacs is better
>>
I hold down j or k
instead of jumping with numbers.
I have relative line numbers turned on to jump too and I still don't do it.
>>
I forgot until today that gt and gT in normal mode flip through tabs

I fucking love vim. fav things are tabs and splits, and all the fun things like regex replaces including for block processing, all the keycombos like like diw just chef's kiss

and vim works on most machines that you're sshed into (or at least vi). and all these features work out of the box. unlike with emacs where you need to install a bunch of plugins and stuff.
>>
>>107796521
>config bloat
join us in helix land. you don't even need a config
>>
>>107799434
just w or b to jump words? but yeah i just hold w unless I need to jump 50 lines. I'm just lazy as fuck 2bh. I barely use any functionality outside of replace. i started vim because it's what there was, now I just use it out of habit and because I dont see the point of anything else. I have terminal and vim.
>>
File: 1695092245286368.jpg (127 KB, 1000x1000)
127 KB
127 KB JPG
>>107794837
>man ed
>man sed
>man ex
>man vi
>man vim
man...
>>
there is at least one person trapped in an vim instance at any given point in time
>>
I abused tabs until I learned how to use buffers effectively
>>
>>107794837
I used visual mode to select and copy a line
>>
>>107794837
I use vi because vim is too slow on my SoC
>>
File: 4g20260108.png (278 KB, 1920x1071)
278 KB
278 KB PNG
>>107794837
I made a 4chan reader that uses vim keys to navigate threads, but I wrote it for Emacs.
>>
File: 1750429854475880.jpg (57 KB, 498x411)
57 KB
57 KB JPG
>>107794837
TF deleted vim again because it's useless, as vi can do almost everything I need, and 40MB is apparently a lot on a server because java is so bloated
>>
>>107800175
broke ass mofo
>>
>>107800175
how the fuck
what dinosaur are you using?
>>
>>107794852
This. It's much easier to use Fn+Up/Down to scroll through pages than repeatedly pressing k-j.
>>
>>107799420
Me too, and I think I’m about ready to leave and go use emacs instead of vim, who’s with me vimbros
>>
>>107801643
As a guy who was a Windows user up until about 3 months ago, I came into Vim just expecting it to be the Linux equivalent of Notepad, and I'm still impressed by how much Vim can do.

I feel like Emacs would be too much for me right now.
>>
>>107800175
I recently figured out a way to make vim work more like ed/ex without going full Ex-Mode and losing the visual mode view with the syntax highlighting.
" Extended Ex-mode
command EEX set cursorline | set insertmode | autocmd InsertEnter * call feedkeys("\<C-o>:")
command Visual set nocursorline | set noinsertmode | autocmd! InsertEnter

All it does is it returns you to the command-line after each command.

It's a bit of a hacky solution since it uses insertmode, but it werks, plus insertmode delays the redraw so you still can see messages in the command-line area which is indispensable.
>>
>>107802195
sorry meant for >>107799958
>>
>>107801643
Not me. As attractive an idea as putting my whole environment into my editor is, Emacs is a terrible implementation. Elisp kind of sucks and the decades of cruft make actually configuring it a nightmare. Plus, there's the 10 million plugins that it comes with out of the box that are all already turned on with awful defaults, so it's not just a matter of building up your config to your liking (already a herculean task due to the reasons stated), but also tearing down the garbage config that it comes with all while fighting against the editor at every turn.

I'd rather deal with vim+terminal and not having everything perfectly integrated than spending 3-5 years in agony sorting out Emacs.
>>
>>107801643
for me it's doom
>>
>>107794837
I use visual mode almost exclusively for edits. Fuck normal mode lmao
>>
I use neovim for latex. I don't program at all I'm a theology student. If not for claude I would probably use overleaf or word
>>
>>107794837
i never read the manual. Rather than using registers to save text to the system's clipboard, I just type :mouse=r and copy and paste. i don't even know what r does, but it allows me to copy text with le mouse.
>>
>>107801643
open bracket
>>
>>107801643
close bracket
>>
i just found out about di" to delete inside quotes
>>
I make macros all the time and never actually realy "save" them. A lot of the macros I make probably don't even need to be macros, I just don't know how to do it otherwise.
I only use th " register.
>>
>>107803963
Macros are meant to be disposable. If you find a macro particularly useful and want to save it, turn it into a key binding in your config.
>>
>>107803958
Just for you know, you can also do something like
di(
di[
diw
di{
vi”
ci”
ca”
da”
etc
The pattern is obvious
>>
>>107804088
don't forget dit
delete inside (html/xml) tag
>>
>>107804189
>>107804088
There's also dip and dis to delete inside paragraph and sentence respectively. Do :h text-objects to learn more.
>>
>>107794837
I hate vim. It is a pile of shit with terrible font rendering, has a pure spaghetti codebase and is made by people who have no idea when to stop but they somehow lucked upon the best set of keybinds to navigate and edit text while existing in an environment where every other editor is somehow an even bigger pile of shit.
>>
>>107804419
Did you read the Vim user manual?
Just for your information, this is supposed to be a Vim confessions thread, not a Vim "I'm too melanated to read the manual" thread.
>>
Am I supposed to always leave insert mode? I have esc mapped to ctrl-j and ctrl-k respectively to be as fast as possible
>>
>>107804088
Most of them don’t work in vsvim, I had to configure my .vsvimrc from scratch without vimscript btw
>>
>>107794837
>sins
step aside
>>
>>107804582
You should switch esc and caps lock, this is more ergonomic outside of vim even.
>>
>>107804784
Most (neo)vim users are sinner then. I've got the same.
>>
>>107804812
*sinners
>>
>>107804796
Why should I remap esc to caps instead? Doesn’t it conflict when typing in caps?
>>
>>107804859
NTA but when do you ever write in caps? Shift
>>
>>107804796
I have esc mapped to l shift as a tap. It's still shift when held. caps is mapped to be delete as tap and meh as hold.
>>107804812
I just have it autosave whenever I leave insert mode
>>
>>107804796
Outside of Vim, using Caps Lock as Control is the more useful remapping.
>>
Hello My Children. It is I, Timothy Pope. Thank you for your confessions. I bless and forgive you all. Peace be with you.
>>
>>107794837
I switched away from it the moment I got evil mode set up on emacs.
>>
>>107806455
I have ctrl-j and ctrl-k respectively because it just works. Remapping caps instead would mess with my muscle memory for typing in caps
>>
>>107794837
I make a bogus edit, undo, navigate somewhere to check definitions or yank something, then redo/undo so the view snaps to the place I was at previously. Yes, I do know about m/M.
>>
>>107806680
Why switch to emacs at all though? It feels like you get less ecosystem. It makes sense if you like programming lisp I guess.
>>
i have to look up how to remove trailing white space every time
>>
>>107794837
I never use counts, I just do
xset r rate 300 50

to move around fast.
>>
>>107807145
Not that anon, but the Emacs ecosystem has always felt more advanced to me despite Emacs having a lot fewer users and probably fewer packages too. For example, Emacs has Magit, which is basically an whole keyboard-driven GUI for git inside your editor. It basically turns your keyboard into a version control joystick that has dozens of buttons. Vim packages tend to either be inferior clones of Magit or just provide a bunch of shell-like commands rather than a whole UI paradigm. The sheer depth of functionality in org-mode is similarly unmatched by anything in the Vim ecosystem as far as I know.
Elisp is okay but not great, I think that it's really the abstractions rather than the language that let Emacs users do more with less. The design of major modes, minor modes, keymaps, hooks, overlays, text properties, and advice feels relatively coherent and powerful, in contrast to Vim's more haphazard specific-feature-by-specific-feature evolution.
>>
>>107794837
I use the same colors file I made in 1997, I've ported it to every single server and PC I've ever owned. I feel crippled when it's not active.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.