Why Kakoune – The quest for a better code editor
211–220 of 329 posts
Re: Why Kakoune – The quest for a better code editor
#212After making a complicated selection, doing something else, I want to go back to that selection easily. Is there a selection history? A way to execute the last selection?
I tried running a shell command that waited on input and kak hung waiting for the command to finish. is there a way to kill the command? Or better, a way to interact with the command after its running?
I like it so far!
Re: Why Kakoune – The quest for a better code editor
#213Earlier quoted context omitted.
If you aren't sure where you'll end up with, do, in this case mmffffy`m Why would this be better? Because it works in macros too. In vim, you can record it as you go. In vi(nvi), I write it somewhere in the file, basically after I did it once, I would do Ommffffy`m^[0"wDdd and use @W later. You can of course use vim's visual mode, but in this simple case, there's not much difference.
Seriously? What is the advantage of using your cognitive capabilities to write Ommffffy`m^[0"wDdd rather than use a sensible IDE with common refactoring capabilities that are also context aware and integrated with the language you are using?
With practice, it's more like finger memory than cognitive load. What he's doing is setting a mark named "m", going to the second "f", and yanking from there back to the mark. It's a fairly interactive sequence as you move the cursor around, so while it looks scary in print, in practice it's just a series of actions you don't think about much.
An advantage to using commands like this is that you can record them into macros with just a couple extra keystrokes as you go. I used to do a lot of SQL and I'd get bored and frustrated, until I learned to use macros in vim to automate the repetitive parts.
Compared to IDEs, why not both? For languages with good IDEs I tend to use them with vim emulators.
Re: Why Kakoune – The quest for a better code editor
#214Earlier quoted context omitted.
Seriously? What is the advantage of using your cognitive capabilities to write Ommffffy`m^[0"wDdd rather than use a sensible IDE with common refactoring capabilities that are also context aware and integrated with the language you are using?
because you can just write a mapping or function that does that.
Re: Why Kakoune – The quest for a better code editor
#215Earlier quoted context omitted.
> That said I suspect most people would be better off learning a good IDE properly, including but not limited to: To be clear, do you think a "good IDE" is inherently better than Vim/Kako for most people? Personally i don't see a difference in a GUI based editor and a text based editor. In fact, i quite prefer text based, because it forces an editor to treat the keyboard as a first class citizen - GUI IDEs can get la…
The core "IDE" features you don't normally get with an editor are things like project views, intellisense, code completion as you type, real time parsing and error highlight, code navigation. Sure you can get most all of this by wrangling plugins for vim (or which ever editor you choose) but in an IDE like eclipse, netbeans, intellij, visual studio, it's all there, ready to go. In effect, a modern IDE is "programming…
The difference is that IDE-like features Vim are simply tuned for C (add Lisp for Emacs) instead of Java; plugins give them support for other languages. Anyone who has tried to write something other than Java in Eclipse can attest to how much plugin creep starts to enter the fray.
Re: Why Kakoune – The quest for a better code editor
#216Re: Why Kakoune – The quest for a better code editor
#217Re: Why Kakoune – The quest for a better code editor
#218Earlier quoted context omitted.
> Why not stop using the menus then? ;) Because you have to learn more commands/shortcuts than in Vim? ;)
Won't say anything bad about vim, I use it on a daily basis but normal IDEs aren't necessarily as bad as some people seem to want to portray them: A few hints to get reasonably good, fast: Use ctrl+arrowleft/arrowright to jump words at a time. Use shift to select as you move. This works together so ctrl + shift + arrowright means select to the next word boundary. At keast in some IDEs this will also stop at word boun…
Use w, W to jump words at a time.
Use v before moving to select as you move.
This works together, so vw will select to the next word boundary.
Press i to insert text, escape to stop inserting text.
Next: in the :help files, you will find a hint that tells you a direct shortcut for that command (like :help quit, or :help write, or just plain :help).
Re: Why Kakoune – The quest for a better code editor
#219Earlier quoted context omitted.
Seriously? What is the advantage of using your cognitive capabilities to write Ommffffy`m^[0"wDdd rather than use a sensible IDE with common refactoring capabilities that are also context aware and integrated with the language you are using?
In vim the only part you need is mmffffy`m. With practice, it's more like finger memory than cognitive load. What he's doing is setting a mark named "m", going to the second "f", and yanking from there back to the mark. It's a fairly interactive sequence as you move the cursor around, so while it looks scary in print, in practice it's just a series of actions you don't think about much. An advantage to using commands…
Re: Why Kakoune – The quest for a better code editor
#220Earlier quoted context omitted.
What would a GUI bring to this that isn't possible in the console? You can use a mouse to issue commands to console programs, after all: if you want to use your mouse to scroll through or select regions of text, you can.
You could use a nicer font, for one.
Granted, it won't support using variable-width fonts as-is; but that's never been a problem for me.