Skip to content
Yash Srivastav edited this page May 26, 2016 · 1 revision

This is a suggested vimrc which will allow you to work comfortably. The .vimrc file is located in your home folder.

set backspace=indent,eol,start      " Backspace behaviour is normal
set history=10000                    " Lots of history
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 04. Theme/Colors                                                                                                    "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

set t_Co=256          " Enable 256-color mode
set background=dark   " I usually work with a dark background
syntax enable         " Enable syntax processing
colorscheme harlequin " Colorscheme Harlequin is good

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 05. Vim UI                                                                                                          "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

set number                     " Show line number
set rnu                        " Relative line numbers
set cul                        " Highlight Current Line
set showcmd                    " Show command in bottom bar
set showmode                   " Show current mode
filetype indent on             " Load filetype specific indent files
set wildmode=longest:list,full " Autocomplete on command line
set wildmenu                   " Enable ctrl-n and ctrl-p to scroll through matches
set wildignore=*.o,*.obj,*~    " Stuff to ignore
set lazyredraw                 " Redraw only when we need to
set showmatch                  " Showmatch highlight matching parenthesis
set scrolloff=5                " Minimum of two lines below and above cursor
set sidescrolloff=7            " Minimum of 7 characters right of cursor
set sidescroll=1
set ruler                      " Always show info along bottom
set incsearch                  " Incremental searching
set hlsearch                   " Highlight matches
set ignorecase                 " Case insensitive matching
set smartcase                  " Smart case matching
set list                       " Display all chars
set listchars=tab:▷⋅,trail:⋅,nbsp:⋅,eol:¬

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 06. Text Formatting/Layout                                                                                          "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

set expandtab     " Expand all tabs to spaces
set smarttab      " Insert tabs smartly
set autoindent    " Indent properly
set smartindent   " Automatically insert indents smartly
set shiftwidth=2  " Shift movements move by 2
set softtabstop=0 " No idea :P
set tabstop=2     " No idea :P

Colorscheme harlequin can be found at https://raw.githubusercontent.com/nielsmadan/harlequin/master/colors/harlequin.vim and must be saved to ~/.vim/colors/harlequin.vim

Clone this wiki locally