![]() Set tabstop = 4 set expandtab "Use softtabstop spaces instead of tab characters for indentation set clipboard=unnamed helps to work with MacOS clipboard using y.In this case, current line will have absolute value, but all others relative. set relativenumber another cool setting which can show line numbers relative to the line you are currently on This setting can be combined with set number.set mouse=a allows you to work with vim using your mouse.You just need to add following lines to your ~/.vimrc file. There is a bunch of cool features which you have to turn on in the beginning. Now we are able to modify it to customize vim view and behaviour to meet our needs. Plugin 'VundleVim/Vundle.vim' "Plugins go here call vundle# end () " required Then, you need to create a file ~/.vimrc with the following content: set nocompatible " be iMproved, required The installation procces is pretty easy: $ git clone ~/.vim/bundle/Vundle.vim Vim has a bunch of plugin managers, but as I understand there is the most popular one - Vundle. The first step for plugin installation is to pick a plugin manager. So, all special vim features are controlled by a plugin system. $ alias vim = '/usr/local/Cellar/macvim/7.4-74/bin/mvim -v' It adds a few benefits like system clipboard support. Macvim is the latest vim compiled with proper flags. We could use brew install vim but for macos, there is a better way - using macvim. So, first of all, we need to update default vim 7.3 to 7.4. Even though, vim is a crossplatform solution, this article aims to cover MacOS and iTerm2. ![]() Ok, we’re motivated to do something cool. I started to poke around and realized that there is no one source which can describe how to do something like that: I've been using Vim for about 2 years now, mostly because I can't figure out how to exit it.- I Am Devloper February 17, 2014 The only thing you shouldi know is: hit Esc and :q! I decided to master vim, there should be something charming - so many people can’t be wrong. Show that some programmers prefer vim over real IDEs. Many screencasts and videos from conferences I’ve always been curious about how cool programmers use vim so efficient.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |