/vim-dotfiles

Primary LanguageVim Script

vim-dotfiles

vim

Prerequisites

  1. vim (version 8)
  2. vim-plug, Minimalist Vim plugin manager that can be found here. Plug is awesome and it can be installed as easy as copy/pasting single curl command!

Plugins

  1. gruvbox

Gruvbox is quite nice colour theme that supports various filetypeis highlighting. Also, it might be good for your eyes (it is inspired by Solarized and other themes that actually have that as one of the goals)!

  1. vim-sensible

As name suggests, sensible set of defaults for vim. Good even for people that doesn't want to go over this complete procedure. Seriously, give it a check!

  1. delimitMate

Automatic closing of quotes, parenthesis and etc. This module can make your life easier if you are developer.

  1. indentLine

This plugin will quite nicely indicate indentation level that you are currently working on. Especially useful for languages that are sensitive to this.

  1. jedi-vim

This plugin provides autocompletion for vim.

  1. pydoc.vim

Python documentation. If you are Python developer, you may want to give a chance to this plugin.

  1. supertab

Plugin that allows you to use < TAB > for insert completion. Quite useful.

  1. tagbar

Class outline viewer for vim. Enables easy navigation through file structure.

  1. vim-airline

Airline is awesome status/tabline that indicates all the right updates/data about file being worked on.

  1. vim-flake8

Style and syntax checher for Python code. If you are Python developer you may want this plugin.

  1. vim-quickrun

Want to quickly run code that you just wrote in another split window? This is plugin for you.

  1. ale

Asynchronous Lint Engine for vim. It supports multiple languages and it is quite nice. Strong recommendation.

Setup

  1. Clone this repo:
git clone https://github.com/kemals/vim-dotfiles
  1. Backup current .vimrc if there is one:
cp ~/.vimrc ~/vimrc.bac
  1. Copy cloned config file as new .vimrc:
cp vim-dotfiles/config/vimrc ~/.vimrc
  1. Open the newly copied file with vim:
vim ~/.vimrc
  1. Once the vim opens the file, in Normal mode:
:PlugInstall
  1. Plug will install all the modules listed in the .vimrc and once it completes just close the file:
:qa!
  1. Profit (after opening new file with vim)!

Shortcuts

  1. < F1 > - vim main help file
  2. < F2 > - hide/show line numbers
  3. < F5 > - tagbar toggle (class outline)
  4. < CTRL w > < h j k l > - move to split window left/down/up/right
  5. < CTRL , > - run your code in split window