3 ms·
> Ctrl + X works on most 'gui text editors' Really? Even if you haven't selected the line? Because if you haven't selected the line then you'll have to use you
by executesorder66 9y ago
> Ctrl + X works on most 'gui text editors'
Really? Even if you haven't selected the line? Because if you haven't selected the line then you'll have to use your mouse first or do the home + shift + end + Ctrl + X to delete the line.
I remember Ctrl + D does this (without needing to select the line) in Eclipse. But it's still faster to type dd than Ctrl + D
> How does "find references" work in vim?
https://stackoverflow.com/a/9616315 https://stackoverflow.com/a/9616315
- cytzol 9y ago> Really? Even if you haven't selected the line? Yeah
- rootlocus 9y ago> Really? Even if you haven't selected the line? Absolutely, works for the entire line, no matter where you are. > But it's still faster to type dd than Ctrl + D Don't be overly pedantic. I could say Ctrl + D is faster because dd means: 'press d' + 'release d' + 'press d' while Ctrl + d means 'press Ctrl' + 'press d', or I could say that you don't have to change modes to use Ctrl + D, but you could say your finger is already on d, you're more comfortable, etc. The difference in speed is quite negligible. > https://stackoverflow.com/a/9616315 https://stackoverflow.com/a/9616315 Using cscopes sure is better than dumb text search, but apparently doesn't know the difference I asked about. From the comments: > Now that I've spent a bit of time with cscope, it seems to me that cscope does not differentiate variables of the same name that belong to different classes. class_b::var may be returned even though I'm only looking for class_a::var. I'm using C++. Am I doing anything wrong? Maybe it works better for other languages. However, my point is: if you think "There hasn't been one feature that and IDE has that I used, which can't be achieved in vim (or via a plugin)", then I don't think you've used JetBrains IDEs.
- user5994461 9y agoCtrl + D is delete the line on some editors, duplicate the line on some editors. Prepare to be surprised when trying to to use it across environments. Ctrl + X is the shortcut for cut (as in cut then paste). It cuts the current selection. It doesn't auto select the line if there is no selection.
- IChrisI 9y agoEvery editor is different, including vim. In Sublime Text 3, it's Shift+Delete to delete a line, and whether it goes to your clipboard or not depends on a config setting. There's a shortcut to duplicate a line too, but I don't remember the default because I've customized it.
- rootlocus 9y agoWell, if you want to be really pedantic: Ctrl + Y is delete without copy (at least in IntelliJ IDEA).