Created
September 20, 2016 14:52
-
-
Save kunal394/604caa7f939b174229c67ccdea2317d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
" Basic settings | |
set nocompatible " Eliminate backwards-compatability | |
set wildmenu " enhanced command-line completion | |
set smartindent | |
set number " Enable line numbers | |
" Display the cursor position on the last line of the screen or in the status | |
" line of a window | |
set ruler | |
syntax on " Syntax highlighting | |
set hlsearch " highlight search terms | |
set incsearch " show search matches as you type | |
set smartcase " ignore case if search pattern is all lowercase, | |
" case-sensitive otherwise | |
set laststatus=2 " show the satus line all the time | |
set mat=10 " how many tenths of a second to blink | |
" Use visual bell instead of beeping when doing something wrong | |
set visualbell | |
" For below two commands order is important | |
set tabstop=4 " no of spaces to use for a tab | |
set shiftwidth=4 " change the no of space chars used for a tab | |
set expandtab " convert tabs to spaces | |
" easier tab navigation | |
nnoremap <C-k> <ESC>:tabprevious<CR> | |
nnoremap <C-l> :tabnext<CR> | |
nnoremap <C-t> <ESC>:tabnew<CR> | |
""" | |
"Theme Settings | |
" To set different color themes download <themes>.vim files from net and copy | |
" these files in /usr/share/vim/vim74/colors file | |
set encoding=utf8 | |
let base16colorspace=256 " Access colors present in 256 colorspace | |
set t_Co=256 " Explicitly tell vim that the terminal supports 256 colors | |
set background=dark | |
colorscheme molokai | |
let g:airline_theme='powerlineish' " set statusline theme - to change it in a running session, type | |
" AirlineTheme powerlineish | |
"This unsets the last search pattern register by hitting return in | |
"normal/escape mode | |
nnoremap <CR> :noh<CR><CR> | |
"" to display date and time | |
let g:airline_section_b = '%{strftime("%c")}' | |
let g:airline_section_y = 'BN: %{bufnr("%")}' | |
""" | |
" Enhanced Cursor Setting | |
"set cursorcolumn " to show a line in the current column | |
set cursorline " to show a line in the center column | |
"if version >= 703 | |
"if exists('+colorcolumn') | |
" set colorcolumn=80 | |
" endif | |
""" | |
" Plugins | |
filetype off " Req'd for vundle | |
set rtp+=~/.vim/bundle/Vundle.vim " Vundle prelude | |
call vundle#begin() " ^ | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" To install new plugins just run :PluginInstall command | |
Plugin 'kien/ctrlp.vim' " fuzzy find files | |
Plugin 'bling/vim-airline' " Installed | |
"Plugin 'tpope/vim-fugitive' " the ultimate git helper | |
Plugin 'chriskempson/base16-vim' " colorthemes | |
"Plugin 'Valloric/YouCompleteMe', { 'do': './install.sh' } | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
""" code folding settings | |
set foldmethod=manual " fold based on indent | |
set nofoldenable " don't fold by default | |
" Enable the list of buffers | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#left_sep = '››' | |
let g:airline#extensions#tabline#right_sep = '‹‹' | |
" " Show just the filename | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
if !exists('g:airline_powerline_fonts') | |
" Use the default set of separators with a few customizations | |
let g:airline_left_sep='›' " Slightly fancier than '>' | |
let g:airline_right_sep='‹' " Slightly fancier than '<' | |
endif | |
"let g:airline_powerline_fonts = 1 | |
"let g:airline_left_sep='' " Slightly fancier than '>' | |
"let g:airline_right_sep='' " Slightly fancier than '<' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment