Skip to content

Instantly share code, notes, and snippets.

@SlevinBE
Created April 25, 2014 09:37
Show Gist options
  • Save SlevinBE/11283769 to your computer and use it in GitHub Desktop.
Save SlevinBE/11283769 to your computer and use it in GitHub Desktop.
vimrc tweaked
" ----------- Vundle Package manager config --------
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" Keep Plugin commands between vundle#begin/end.
Plugin 'Lokaltog/vim-easymotion'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" ----------- Vim optimizations ----------
" turn syntax highlighting on
syntax on
" line numbers
set number
" line number hightlight color
highlight LineNr ctermfg=grey
" show the current mode down at the bottoms
set showmode
" show the invisible vim commands
set showcmd
" Always show status line
set laststatus=2
" Show the rules
set ruler
" set the leader key to , instead of \
let mapleader = ","
" No annoying sound on errors
set noerrorbells
set novisualbell
set timeoutlen=500
" Highlight search results
set hlsearch
" Search will start searching incrementally while you type
set incsearch
" tab & indent settings
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
set expandtab
set smartindent
" Status Line
" ===========
set statusline= " Override default
set statusline+=%2*\ %f\ %m\ %r%* " Show filename/path
set statusline+=%3*%=%* " Set right-side status info after this line
set statusline+=%4*%l/%L:%v%* " Set <line number>/<total lines>:<column>
set statusline+=%5*\ %* " Set ending space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment