3 ms·
The way I do it in vim is to have one terminal window with vim open, and one terminal with a couple of tabs for git, compiling, and flashing for embedded stuff
by s_m_t 8y ago
The way I do it in vim is to have one terminal window with vim open, and one terminal with a couple of tabs for git, compiling, and flashing for embedded stuff or server for web stuff.
The important part in vim is for me to start it by opening ALL the files in my project directory and then just have two side by side windows. I never muck around with the file viewer or creating new windows. So other than the commands you expect from general text editing, searching, and swapping buffers (fuzzy search plus ctags makes this comparable to the ide's I've seen) the only vim commands I use are... Focus window right, focus window left, and save.
I used to waste time mucking about as you say until I saw Casey Muratori coding for handmade hero in emacs with pretty much the same setup. He takes it a step further by not even having separate buffers, he just seems to put all his code in one big file.
- keithnz 8y agoI'm assuming you mean https://www.youtube.com/watch?v=hbmV1bnQ-i0 https://www.youtube.com/watch?v=hbmV1bnQ-i0 ? If he's putting code into one file because it is easier to manage while using terminal based editing, that doesn't make a good case for using those tools. I've seen similar demos of peoples "enviroment", but they are all demos, not actually doing real dev. I did see https://www.twitch.tv/curlhacker https://www.twitch.tv/curlhacker ( guy who made curl ) and he worked on real issues, he worked pretty well, but I didn't see that it was any better than using an IDE...sometimes it seemed more awkward Unfortunately his coding videos have been deleted, there is one still image which shows his multi terminal setup What I like seeing is, project setup, debugging, acquiring packages, API discovery, refactoring, unit testing, navigating code / multi file management, git management, etc. Seeing developers struggle with the natural frictions that occur is much more interesting I find.