5 ms·
That's a pretty neat article. Currently I'm trying to get away from Sublime because it's closed source. I considered Lime Text, the OSS clone, but that project
by adrianN 10y ago
That's a pretty neat article. Currently I'm trying to get away from Sublime because it's closed source. I considered Lime Text, the OSS clone, but that project seems to be dead. So I settled for vim. I'm still not as productive as with Sublime, but I'm getting there. Does anybody know a similar article for vim or other editors?
- hguant 10y agoThis article seems to mostly be about searching, manipulating words and lines, etc. If that's what you're looking for, vimtutor is a pretty good place to start. It should be available from the command line if you've installed vim. There are some pretty good github pages out there to help configure your vimrc into a monster. Ultimate vimrc is a pretty good baseline if you take the time to trime away some cruft.
- antihero 10y agoI'm using Visual Studio Code and absolutely loving it. If you document your code (JSDoc) etc, the IntelliSense is absolutely incredible. There's a vibrant plugin community, the only flaws I have found so far: * You can't add multiple folders to a project. This is fucking irritating. * The git plugin doesn't work on subfolders - IE because of problem number one, I put a group of (say, microservices) into a parent folder and add that, which in turn breaks the Git plugin. If you can ignore those things it's bloody brilliant. Obviously after you've added a bunch of extensions and stuff to spruce it up. It feels faster than Atom, too.
- gcp 10y agoMy flaws: 1) Uses Chrome's font renderer - it looks terrible on Windows 2) Indent = Tab size 3) Themes can't properly customize some key on-screen assets 4) No macro recording/playback 5) Can't edit enormous files Other than that the add-on ecosystem can be a bit fiddly, and you won't find syntax highlighting for more oddball things that you'd 100% find for vim or Emacs. Oh, and sometimes it ends up using 100% of the CPU in the V8 GC. Might be add-on related.
- tornadoboy55 10y ago1b) Electron is horrible bloat. Sublime uses 70 (idle) to 250 (lots of tabs) mb. VS Code and Atom both use 200-300Mb even when idling.
- gcp 10y agoI don't really mind the static overhead as long as it stays fast and if it could deal with 'larger than memory' files sensibly. Alas, it does neither. I'm very hesitant to standardize on a non-OSS editor, though, so I think Sublime is out for me.
- tornadoboy55 10y agoIdeally I'd like to use OSS for everything I can (and sometimes you can, see Transmission), but at times the non-OSS variant is simply the lesser of two evils. I'd rather use native Atom + native Gitkraken, but alas, that'd cost me nearly a gig of ram simply for idling. I won't stand by that kind of inefficiency.
- mercurysmessage 10y agoIs this just because JS isn't good for desktop, or because Electron is not optimized or efficient?
- gcp 10y agoI think it's mostly the latter, also Atom doesn't seem to be particularly written for efficiency. Firefox OS phones shipped with less RAM than Atom/VSCode use.
- moon_priestess 10y agoShouldn't you use the best tools for the job though? Unless you really need that last GB of RAM, it just seems like you're punishing yourself for the sake of an ideal, all to no greater consequence. A gig of RAM is probably less than a tenth of your total resources. If it makes your job easier, surely it's worth it, no?
- devdoomari 10y agonot related to vim, but try Visual Studio code. Once you personalize its shortcut key bindings (which everyone I know does), it's way better IDE than sublime/atom/etc. It has code definition 'peeking' (staying on the same file while 'peeking' on definition), reference peeking, renaming, etc.
- rockdoe 10y agoWhy do you think it's better than Sublime? Doesn't Sublime have those features mentioned?
- devdoomari 10y agosublime does have 'goto definition' and 'find usages / references', but they're not the same as peeking. They both open the target file (& changes the files you were viewing), whereas peeking just let you stay where you were.
- ivanhoe 10y agoKomodo Edit has all this features and more, and it's OSS project... also has a vim-compatibility mode, so you can train your vim skills in IDE-like environment, it makes the learning curve easier on you...
- proaralyst 10y agoWelcome to vim! I can't recall an article that helped past: disable your arrow keys. Try to avoid using hjkl unless absolutely neccessary. Don't move in insert mode. If you're pressing a key more than once there's probably a better motion. Have fun!
- farresito 10y agoHi. What would you say is the thing that holds you back to being as productive in vim as in sublime? Maybe we can give you a hand. Is it the plugins? Or getting used to how vim works? There are some pain points in vim, but there are also some pretty neat things about it. I'm far from being an expert, but I have been using it for a few years, so maybe I can give you a couple of tips.
- tedmiston 10y agoNot the parent but for me tasks like: - basic refactoring - go to method definition - move back / forward in the history of selected lines - project-wide search - quick switch projects while reopening the files where I left off are all faster (for me) in Sublime. Also auto-completion, though to be fair there are probably packages for this, I just tend to use vim for quick changes and haven't invested in heavily customizing it.
- farresito 10y agoRefactoring is indeed a problem. I try to use an IDE for that (for java I don't use vim anymore; it's complete overkill). If you use python or go, you can find some stuff out there, but sadly vim is not made for this. I've never really had a problem with goto method definition with ctags, and I've used that with multiple languages. ctags is usually relatively fast generating the tags, and you could probably set up so that it generates it each X seconds if you wanted. For the project wide search, ctrlP has served me well, although the fuzzy completion is far from good (command-t is way better at that), so I would probably recommend the second one if your project is large. Regarding switching projects, I've been using tmux for quite some time and it's a blessing. I could not imagine someone spending a lot of time in the terminal with vim and not using tmux or another terminal multiplexer. tmux is for me as important as vim itself. It makes a big difference. I have different sessions for different projects . You have probably heard about youcompleteme. It's not amazing (doesn't come close to intellij), but it works and it's free, so the last thing I will do is complain :) I'm not sure I understand the move back/forward in history. Do you mean undoing just some specific selected code? vim is far from perfect. The more I use other tools, the more I realize it's limited in a lot of ways, but unfortunately when I try to use other editors, I find too many shortcomings too, so right now for me vim is the best I have =)
- b3b0p 10y ago[0] TextMate 2 is quite active on GitHub. I like it because it is open source and it is a native app. I like and use Vim and Sublime also, but having a nice light native text/programmers editor has something going for it. Sublime just doesn't look right to me. [0] https://github.com/textmate/textmate https://github.com/textmate/textmate Edit: Assuming you are on macOS.