Shaleen Jain

· 1 min read

My Vim and Tmux Setup

<p>For the past couple of weeks I have been slowly setting up my <a rel="noopener nofollow noreferrer external" target="_blank" href="https://github.com/shalzz/.vim">Vim</a> and <a rel="noopener nofollow noreferrer external" target="_blank" href="https://github.com/shalzz/dotfiles">tmux</a> config files to just the way I prefer, creating the perfect workflow for working on C/C++ and Rust projects that increases my productivity by not only <em>not</em> having to constantly switch between the keyboard and the mouse/touchpad for every little task/navigation but also to just touch type my way to glory :). Especially since with C and Rust not having a single canonical IDE and inherently requiring to interact with the terminal for compiling and debugging, Vim coupled with a language server (I’m using cquery for C/C++, RLS for Rust) <em>is</em> the perfect IDE for these languages.</p> <span id="continue-reading"></span> <p>Some of the vim plugins that you definitely need for C++ but are hard to find are <a rel="noopener nofollow noreferrer external" target="_blank" href="https://github.com/octol/vim-cpp-enhanced-highlight">vim-cpp-enhanced-highlight</a> and <a rel="noopener nofollow noreferrer external" target="_blank" href="https://github.com/majutsushi/tagbar">tagbar</a> with ofcourse a decent language server like <a rel="noopener nofollow noreferrer external" target="_blank" href="https://github.com/cquery-project/cquery">cquery</a>. You can find my complete .vim config file <a rel="noopener nofollow noreferrer external" target="_blank" href="https://github.com/shalzz/.vim">here</a>.</p> <p>Vim and tmux work perfectly together and with the tmuxline.vim plugin even more seamlessly. One thing that does trip you up while setting up both vim/nvim and tmux is enabling true color support, <a rel="noopener nofollow noreferrer external" target="_blank" href="https://www.cyfyifanchen.com/neovim-true-color/">this</a> blog helped me sort that out rather quickly.</p> <p><img src="https://shaleenjain.com/blog/vim-and-tmux/nvim-and-tmux.jpg" alt="screenshot" title="screenshot of my vim setup" /></p> <p>That’s what my development environment looks like now.</p>
Liked this article? Share this with others

Got any questions or comments? Drop me a message on Twitter @shalzzj

Sign up for my newsletter to be the first to know about a new post