Replies: 4 comments 1 reply
-
Moved to a discussion since it's more of a generic free form vim question than a Conjure one. I don't have any direct advice to help you down the current path of "insert first" vim usage, my advice would be to embrace normal mode and the modal nature of vim. I spend a fraction of my time in insert mode actually typing and 95% in normal mode, hopping around and issuing commands such as Vim's motions, text objects and mappings are incredibly powerful, I can't edit for any length of time without them, I feel so held back by moving a cursor character by character using arrow keys and backspace. Things like easymotion take that power further by allowing you to project your movements anywhere on your screen instantly without touching your mouse. So, I'll share this on twitter and see if others have advice but my recommendation is to embrace the evil side. I tried emacs+evil mode for over a year (Spacemacs) but ran into too many siturations where the vim mappings fell away and I was left with unfamiliar emacs mappings. My solution was to go back to vim and write Conjure to scratch the eval itch. |
Beta Was this translation helpful? Give feedback.
-
FWIW, I learned Dvorak years before Vim, and when I started using Vim, I was also a little concerned that hjkl wouldn't be convenient, but I quickly found that (at least, in my opinion!) hjkl still feels pretty good, even in the Dvorak layout:
It's also worth noting that as you get more comfortable with Vim, if you're "doing it right," you won't be using hjkl to get around anyway, most of the time. My suggestion would be to give vimtutor a try, spend a few days with Vim trying to do things the Vim way, and see what you think. You might be surprised to find that you enjoy it! (Or maybe not! YMMV :) ) |
Beta Was this translation helpful? Give feedback.
-
I agree with Oliver that if one is to embrace vi-style editors, one really must embrace the modes (command, insert, visual). I get that on a Dvorak keyboard the hjkl movement keys are in somewhat awkward places, but the arrow keys work just as well in that case, and you're already using them in Emacs. As I said elsewhere, vi's modes are a learning curve, but I believe a very worthwhile one. |
Beta Was this translation helpful? Give feedback.
-
Look. I'm not getting into dogma. If we're purely talking about ergonomics, the emacs keybindings out of the box are not that great either. I got so frustrated with the emacs keybindings that I wrote my own rebinding library. https://github.com/zcaudate/eta and bound most of the commonly used functions to Here are my bindings for reference. https://github.com/zcaudate/etude/blob/master/etude/etude-bindings.el I've also installed a keylogger in emacs and looked at how I'm using the editor. https://github.com/zcaudate/eta-logger I've got around 7 months of data confirming that I spend most of my time on either movement or eval, even when I'm heavily writing code because about 80% of the time, I'm actually evaling on a test example to make sure that the outputs are correct. Based on my usage I believe that mnemonic movement and modes actually will actually increase my keystrokes and decrease my productivity overall. Unless there's actual data that show a significant increase in productivity for mnemonic movement and modes, it's just personal experience. I'm not discounting personal experience but I have my own ones as well and these days, I don't get swayed too easily unless someone shows me hard evidence. I know that vim works for a lot of people. It's great. NeoVim is something that I'll most likely get into very slowly because luajit rocks and the design is so much simpler than emacs. If I need to write programs for vim - I'll most likely do it by connecting to it via the msgpack api (through Clojure and emacs) and sending it lua commands. It'd be faster for me to write programs for nvim that way than writing those programs in vim itself. |
Beta Was this translation helpful? Give feedback.
-
Hi @Olical
I've been playing around with conjure's features and it's fantastic. However, coming from emacs, I'm having issues just moving around in the editor. I don't know how to switch files or how to switch buffers in vim so it's basically unusable for me until I figure out how to get it working.
The hjkl thing is not really that great on a Dvorak keyword so I don't intend do jump through those hoops. I also really can't get use to pressing
I
for insert to type anything because I spend a lot more time moving around and it interrupts the flow too much. I have a couple of keybindings that help me with moving/editing that I'd like to get working in Vim:C-<right>
andC-<left>
map to slurp and spitC-e
is eval last sexp andC-x-x
is eval fileC-<up>
andC-<down>
is for moving up and down formsC-x-<right>
andC-x-<left>
to switch back and forth between buffersI also use M-. and M-, for jumping to and back from definitions. Anything else is optional for me.
Is there some sort of
emacs
mode for vim or a sample emacs-ish config that I can use to start myself off with conjure?Beta Was this translation helpful? Give feedback.
All reactions