6 ms·
I've been using VI since the 90's and VIM since... well the 90's. VSCode is the first IDE I've been able to live, and happily. It blows my mind. I have a tonn
by cik 8y ago
I've been using VI since the 90's and VIM since... well the 90's. VSCode is the first IDE I've been able to live, and happily. It blows my mind.
I have a tonne of tooling around automated python environments, vim plugins (now vscode plugins), tasks - and it's made the whole thing significantly more 'unixy' than it was before. And to think - MSFT!
I have git hooks for my homedir's dotfiles that automatically look to see if the plugin cache needs an update one way or the other - and runs my aliases (see below).
I have global tasks that now link into workspaces, pretty decent python, golang, and c++ support. I've mapped keys to the 'wierd' collection of things I do between terminator terminals, vim tabs, and whatnot... honestly, it's pretty good. It's not great, the things in 'vim' support are really 'vi'-light. I'd be much happier if vim support meant understanding my .vim hierarchy - but I'm happy.
# vscode bash bits
alias vspluginsave="code --list-extensions | xargs -L 1 echo code --install-extension > .vscode.plugins"
alias vspluginload="sh ~/.vscode.plugins"
alias vspluginclean="rm -rf ~/.vscode/extensions"
- zython 8y agoJust out of curiosity, what are some of the tasks that you run in vscode ? I've never found a real use for them, so I want to know what other people use them for.
- deleted 8y ago[deleted]
- ziftface 8y agoI use them to convert markdown files to pdfs and open them. It can be as simple as the shell command `pandoc .md -o .pdf; open *.pdf`, and for more complicated documents, you can just write a makefile and have vscode use that.
- Apaec 8y agoTmux + vim seems better suited for this task.
- cik 8y agoI have a bunch of docker wrappers for restarting various things. I have some GNU Make targets, flake8, ansible-playbook calls that I run, some django targets. Since I structure things similarly, I'm 100% okay with the idea that a specific command is useless in a specific project (i.e no make for X). But the idea is that I can than wrap django's manage.py to collect just the commands we write, do something similar for make targets, and selected other things - so that I can just continue working and check on the task later. In my mind, almost anything other than linting, debugging, profiling, and deploying shouldn't need to interrupt my flow.
- pythonslayer 8y agoHow do you have global tasks setup?
- moises_silva 8y agoWhat vim plugin(s) do you use? I remember installing one but the emulation did not quite work for jumping into code definitions and back (it'd jump, but going back wouldn't work correctly), so I moved back to pycharm for the time being (vim emulation worked better there for me).
- localhost 8y agoI use this: https://marketplace.visualstudio.com/items?itemName=vscodevim.vim https://marketplace.visualstudio.com/items?itemName=vscodevi... You can also have it use neovim as the backend as well: https://marketplace.visualstudio.com/items?itemName=vscodevim.vim#user-content-neovim-integration https://marketplace.visualstudio.com/items?itemName=vscodevi...
- moises_silva 8y agoThanks!
- cik 8y agoA tonne of them, all managed by pathogen. I actually have a chunk of my bashrc that automatically reinfects my vimdir. Below are the ones I can easily grab. I also have a tonne of homebrew over the years, and a love/hate relationship with Jedi, YouCompleteMe and friends. https://github.com/noahfrederick/vim-skeleton https://github.com/noahfrederick/vim-skeleton vim-skeleton https://github.com/majutsushi/tagbar https://github.com/majutsushi/tagbar tagbar https://github.com/tmhedberg/SimpylFold https://github.com/tmhedberg/SimpylFold SimpylFold https://github.com/nvie/vim-flake8 https://github.com/nvie/vim-flake8 vim-flake8 https://github.com/kien/ctrlp.vim.git https://github.com/kien/ctrlp.vim.git ctrlp.vim https://github.com/hashivim/vim-terraform.git https://github.com/hashivim/vim-terraform.git vim-terraform https://github.com/hashivim/vim-packer.git https://github.com/hashivim/vim-packer.git vim-packer https://github.com/hashivim/vim-vagrant.git https://github.com/hashivim/vim-vagrant.git vim-vagrant git://github.com/rodjek/vim-puppet.git vim-puppet https://github.com/fatih/vim-go.git https://github.com/fatih/vim-go.git vim-go git://github.com/chase/vim-ansible-yaml.git https://github.com/vim-airline/vim-airline https://github.com/vim-airline/vim-airline vim-airline https://github.com/vim-airline/vim-airline-themes https://github.com/vim-airline/vim-airline-themes vim-airline-themes git://github.com/ekalinin/Dockerfile.vim.git Dockerfile.vim
- dguaraglia 8y agoThis has been my experience too. I've been an exclusive Vim user (except for Java and Scala, for which I used IntelliJ with the excellent IdeaVim plugin) for over a decade. VS Code is the first editor where the benefit added outweighs the small losses brought by leaving my carefully manicured .vimrc. There's one thing I wish I could figure out (I haven't really put that much work into it, so I'm sure there's a fix): is there a way to bind "<<" to "move text left without losing the current selection"?
- zyngaro 8y agoSame here ! Long time vim user, I switched to vscode 2 years ago an early adopter ! I absolutly love it! It still blows my mind that it's a JS app running in a browser !
- lliamander 8y agoInteresting how many people have switched from vi/vim to vscode. Does anyone have stories of making a similar switch from emacs? I currently use intellij for java work (because my employer pays for the license) but for most any other type of editing I use emacs. I'd be interested to see what other emacs users think of vscode.
- Loic 8y agoI am currently switching from emacs to VS Code. I am using an emacs keymap and I must say, it is wonderful. For Python, I can per project easily select the right virtual environment, the "intellisense" like system is working very well, it is pretty fast and you can customize a lot of it. I am expecting to slowly move out of emacs for my coding in the next few months. Emacs will be kept because I have a lot of org-mode files to manage my company at a higher level (lot of tables with formulas to calculate several key indicators). On the longer term, they could be moved as Python notebooks with the rendering in VS Code. So yes, I do think this is the editor which is going to move a lot of old coders out of emacs/vi/vim. PS: The added bonus is that I easily get support of Go, Typescript, etc. without the need to "debug my editor". Just install the right extension, done.
- cik 8y agoI have some code that automatically builds virtualenvs for me - in directories (it overrides cd). With vscode, I can change the python interpreter, simply by giving it knowledge of where I store my venvs... with one variable! I can't even tell you how hard that was with VIM.
- lliamander 8y ago> So yes, I do think this is the editor which is going to move a lot of old coders out of emacs/vi/vim. That certainly seems a possibility, though I expect it may be somewhat dependent upon the language used, and whether the community around that language invests enough effort to develop vscode plugins for that language.
- outworlder 8y agoI am still faithful to my Emacs, but Visual Studio Code is this beautiful thing I can't take my eyes off. As an editor, VSCode is still inferior (but improving at lightspeed). As an out-of-the-box experience, it blows almost everything else out of the water. Against my customized Spacemacs, it's still struggling. But that renderer is gorgeous!
- RobertRoberts 8y agoHow does Sublime Text compare to VScode for you? I am curious about the choice between the two, and why one would be better.
- cik 8y agoI can't Sublime in any way - and I say that having tried TextMate on OSX a decade or so back. Sublime just isn't VIM in so many different ways, it hurts. Neither is VSCode - but the varying tradeoffs are solidly worth it (IMHO). I've also JetBeans'd (2001-2003) with varying success, and have been trying PyCharm on and off since 2014, just due to the promise. They're not there - or at least not enough. JetBeans constant need to move my profiles around (literally they change per version) has made my strategy of having revision control sync things throughout a nightmare. Also, due to some files being binary - I just couldn't. VSCode - and especially now that I have the global tasks plugin has simply blown my mind. Every (python django) repository I have has a wrapper script, as part of my tooling - I simply have vscode call that. Now, I have several commands I used to jump to a terminal for, run within code, in a collapsed terminal. It's great. My #1 use for that is a profiler and runserver. In dev, I always, always want them running. It's much the same for other languages - and my environment.
- kstrauser 8y agoI loved Sublime Text for years, but it gave me every impression of being dead on the vine. Since it's proprietary, there's not the option of forking it to add my own features and fixes. I personally find VSCode to be at least as good as ST in every way, and much better in many.
- gianpaj 8y agoout of curiosity. Have you added features or fixes to VSCode?
- kstrauser 8y agoSame here for me, but with Emacs. I've used it for decades and love it. One day I heard that VSCode had an MIT license, so I figured I'd see what all the fuss was about. Wow. Everything actually "just worked". Python had perfect syntax highlighting out of the box. It noticed that I had pylint installed and started using it. It was trivially easy to set up per-workspace virtualenvs. Its git plugin certainly isn't the awesomeness that is Emacs's magit, but it's totally sufficient for normal day-to-day workflows. It's now been a couple of months since I fired up Emacs at all, and now most of my coworkers have also switched to VSCode (yay for making it easy to share settings among coworkers within a project!). I am far, far from an MS fanboy, but they hit this one out of the park. Well done, team.
- another-cuppa 8y agoHonestly, if you like VSCode you should have been using emacs rather than vim all along...
- linsomniac 8y agoI've been thinking about installing VSCode for a year now, I've been happily using vi/vim since the '80s. Because of your message I finally installed it to try out. I've got a few projects I'm working on, can't wait to see how it works for Python. I'm an ops guy, so I don't write code often. One thing I forsee being a problem is that one of my projects is a side project, that I usually work on from the couch at home, using my chromebook sshed into a box running vim. So, I can't run vscode in that environment. No biggie though, I can drop to vim for that.
- tracker1 8y agoWorth noting, it looks like there is an extension for opening an SSH FS remotely[0]. It's something I've been curious about and will probably explore further. Not sure about getting a more flushed out dev environment on your chromebook, I know it's an option and that VS Code works in Linux (use it under ubuntu/elementary). [0] https://marketplace.visualstudio.com/items?itemName=Kelvin.vscode-sshfs https://marketplace.visualstudio.com/items?itemName=Kelvin.v...
- Apaec 8y agoHonest question, how can I know if this type of comments are not something like paid advertising more than an honest review? Most vim users chose it because they're borderline anti-IDEs, it's really strange to me that you chose to switch for features that a vim+tmux workflow already offers.