

You can also do it here by pressing the Space key. Code Folding - Modern IDEs can fold the codes at functions and import statements, by showing the first line only.If you reverse the keys to :vs, you get a horizontal split (opening the new file to the right of your current file).Key combos: Ctrl + j move to the split below, Ctrl + kmove to the split above,Ĭtrl + l move to the split to the right, Ctrl + h move to the split to the left. Split layout - If you open a file with :sp, you split the layout vertically (opening the new file below the current file).Trust me, you guys are going to be surprised when you hear the features of your new ide. We did so many things but I did not explain what we were doing or what features we added to our Vim-Ide. We made vim a powerful yet lightweight ide. Now Ctrl+o to write and press Enter to save it. Let NERDTreeIgnore= "ignore files in NERDTreeĮnter fullscreen mode Exit fullscreen mode Map g :YcmCompleter GoToDefinitionElseDeclaration Let g:ycm_autoclose_preview_window_after_completion=1 Highlight BadWhitespace ctermbg=red guibg=darkredĪu BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ Open your terminal and type:Īu BufNewFile, BufRead *.js, *.html, *.css Mac - We are going to install vim using Homebrew. For now, I'm going to focus on Linux installation but I'll provide the links for other operating systems. Let's get started now.Īfter this tutorial, our vim will look like : I'm sure by the end of the day, you will be a fan. This will reduce your coding time by half. While using vim you don't need to touch the mouse. Also, who doesn't want to work on an IDE which opens up within a second? Another reason to choose vim is because of its keyboard shortcuts. Why Vim?Īs I mentioned earlier, Vim is very fast and highly customizable. It normally runs in the terminal and is very easy to learn. Vim is a very lightweight text editor that can be customized however we want.

What's Vim?īefore we go any further, let's talk about what vim is. That's why I have come up with the best solution. We are all fed up with iDE's and text editors which takes years to open up and setting up these things takes more time than writing the whole code. We are going to talk about something which is also my personal favorite - VIM.
