9/17/2023 0 Comments Sublime vim mode![]() Yes, you can run your RSpecs directly beneath your tests as you write them. You don’t need to create split windows or new tabs in iTerm, vim-dispatch will run commands asynchronously in a window below your Vim setup without disrupting it. in Vim* vim-dispatch - My true answer to window swapping. ![]() * vim-endwise - Autocomplete those ends for method definitions and blocks* vim-rails - Run Rails commands right from your Vim setup.* vim-ruby - Syntax highlighting for Ruby* vim-eunuch - Have an easier time making directories, renaming files, deleting files, etc. vim-fugitive is available for all your Git blame needs. Typing in :Ag ‘your search term here’ and getting results in milliseconds is crazy satisfying. * Git Integration - Sublime has great plugins for Git, and so does Vim. Vim’s solution is a plugin for The Silver Searcher, which is a blazing-fast alternative to grepping for code. (See this post on my reason for attempting to move away from Nerdtree.) I’ve also seen VimFiler as an alternative.* Fuzzy find/search - One of my gripes with Sublime is how slow its Find All function is once you’re working in a bigger project. The most popular I’ve seen is Nerdtree, which I used in my Vim setup until very recently. There are a couple of solutions out there. However, having to toggle between that and Normal mode is pretty inefficient. ![]() You can type in :Explore or :E in Vim to enter Explore mode, which will show you the directories. Thankfully, the CtrlP plugin for Vim does essentially the same thing. * Directories - I think my biggest annoyance with Vim when I first moved over was the lack of a directory at startup. Alternatives: Neobundle, Pathogen, vim-plug.* ctrl + p - Using ctrl + p (or cmd + p if you’re a Mac user) to fuzzy search through files was huge for me. I personally use Vundle, because you can list out all your Vim packages in your vimrc. * Package manager - There are a couple of Vim package managers out there. Here’s a couple that I have for parity between my Vim setup and my old Sublime setup: I don’t think I would have ever been able to make the swap without them. Vim has built-in functionality to be extended, but every plugin seemed. Hence you can just add the entry 'vintageoususectrlkeys': false to 'Preferences > Settings - User'. If you’re using Vim without them, mad props. What I didnt like about Vim was that a good number of plugins always felt like a hack. 3 Answers Sorted by: 6 Vintageous has the setting vintageoususectrlkeys, which should solve most of your issues.In contrast to other packages Vintageous uses the User preferences. It took a little time (and a little back and forth between using Sublime and Vim) and a couple of plugins to get used to operating full time with Vim. I would never have to leave iTerm for any of my work. One of my coworkers led me down the Vim rabbit hole. However, when I started tackling on bigger projects at work, Sublime’s ctrl+p slowed to a crawl and I found myself constantly swapping back and forth between iTerm and Sublime to write and run tests. It was pretty minimal and had a ton of useful plugins that were easy to configure and set up. When I started in development, Sublime was my text editor of choice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |