Implementing WebSockets in Rust
Recently, I needed WebSockets in my side project. I will share how I implemented it, what I learned.
An autocomplete plugin for vim. Earlier I have used YCM for autocomplete. From usage perspective, they are very much similar. I recommend using neocomplete, because it is much lighter and consumes less resource than YCM. neocomplete is completely written in VimScript, while YCM requires python. Some python script will run alongside YCM and it provides the autocompletion feature for vim, and this is the reason your vim will consume ~500MB or may be more. In neocomplete your vim will be satisfied under ~30MB.
This plugin eases the comment toggle in Vim. Mostly I use
<leader>ci for inverting comment for a particular block of code. Other than that, you can use
<leader>cm to enclose block of code within comments.
I rarely use this plugin :) But I will tell you the unique feature of this plugin. It allows you to browse files within the current working directory. I always use ctrlp for opening files, and rarely use nerdtree. I guess in future I will remove this plugin from my collection. If you are using my vimrc settings, then you can toggle nerdtree by
It is the syntax checking plugin, and that is all it does. And like other plugins you can customize it too to best suit your needs. I no longer use this plugin, as it freezes the editor when you save a file. It runs the syntax check in the background, and sometimes that process is slow.
One of the best plugins I have seen. It makes the vim status bar more useful and informative. You can see file format, current branch, file name, etc. in vim status bar. And again, customize it as you want.
I helps you identify whitespaces. You can even strip whitespace on save by this command
:ToggleStripWhitespaceOnSave You can identify whitespace by writing some code in .vimrc, but I prefer using plugins, it makes the vim configuration more modular.
A nice collection of vim colorschemes. Choose between dark, light colorschemes and make your vim more sexy :p I am using solarized-dark, my other choices are badwolf and molokai.
It is said to be the ultimate git wrapper for vim, but alas I am not using it much. If used with vim-airline it will show current branch in status bar.
A nice plugin that helps you to maintain multiple session in vim. Suppose, you are working on a project, you are writing some custom module and want to finish your work tomorrow, so you will want vim to open the same module file for you the next day, vim-session will do that for you. It also allows you to jump between sessions. Earlier I used to manually open files in vim, and I find it cumbersome.
Commands that I use frequently:
:SaveSession mysession - will save the current session
:OpenSession mysession - open your session
Expand if, for, foreach statements with the press of
Thanks to technosophos for taking the effort of writing drupal snippets. Now you can expand
hook_permissions, etc. in the blink of an eye (press
<tab> key). If you are not finding snippets for some hook, I recommend fork technosophos’s repository and add your snippets there. Or you can add pull requests to his repository.
You can find the plugins and settings in this repository drupal-vim. Please star it, if you like it. Fork it, if you want to add more features.
Thanks for flying Vim :)