AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Tmuxinator autocomplete profile8/31/2023 ![]() ![]() You could do worse than to check out his projects and integrate them into your workflow. Tim Pope is the man who has given us several excellent Ruby (and other) plugins. This should get you a lot of basic IDE functionality out of the box. It adds syntax highlighting, IntelliSense-like autocompletion, and even compiler plugins. While a lot of the plugins will work without it, you’ll miss out on useful features like autocompletion. If it doesn’t, you need to either recompile Vim with ruby support ( relatively trivial) or install a version of Vim with Ruby support, like MacVim. The above command should include a +ruby. * Gundo: Interface to Vim’s well hidden tree structure storing document changes, which frequently proves much more useful than the linear ‘undo’ functionality Ruby Specific Pluginsįirst up, you need to ensure your version of Vim is compiled with Ruby: vim -version | grep ruby * Autoclose: Automatically close brackets or quotes * Surround: Wrap the usual vim boundary selections in parenthesis or quotes * TComment: Quick comment/uncomment functionality ![]() * Fugitive: Git integration directly in Vim While those are some of my favorites, here are some other vim plugins that deserve special mention: Finally, I frequently want to access files I have used recently MRU does exactly this. Sublime stalwarts will enjoy ctrlp an excellent fuzzy matcher which particularly shines when you have similarly named files, like in a Rails project for example. Pressing m while in this view will allow you the ability to delete, create, and rename nodes without ever leaving vim. This will give you a browsable tree structure, affording you a neat high-level overview of the current directory and its children. For browsing a project, I recommend the excellent Nerdtree. Fortunately, Vim’s rich ecosystem really comes into its own here. Let’s walk through some generally useful plugins, and then get to some Ruby-specific ones. Heavily customized to speed development, it bears more of a resemblance to a fully fledged (albeit lightweight!) IDE. ![]() Vim is the cornerstone of my environment. If you are looking for a simple start with Tmux, check out this article. Take a look, but I would recommend the Tmux Plugin Manager, tmux-battery, and tmux sensible. To aid this, tmuxinator sets up profiles (protip: bind these to Tmux shortcuts to facilitate easy opening of different types of projects like Rails, Sinatra, etc), which complements Tmux nicely.Īdditionally, Tmux is extendable through its plugin ecosystem. The real strength in Tmux for development lies in knowing in which window each of your different tools is running because with some quick window changing shortcuts, you can move so quickly that flow becomes instinctual. This particularly shines when it is deployed on a server, as you can start a long-running task, disconnect, and your tmux session will keep running. It allows you to split panes and move them around and reconnect to a tmux session from a different machine. Tmux is a terminal multiplexer (think screen), which means you can have several terminals in the same shell session. ![]()
0 Comments
Read More
Leave a Reply. |