Skip to content

Instantly share code, notes, and snippets.

@micc83
Last active February 8, 2016 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micc83/21723da859f1ffeef9b9 to your computer and use it in GitHub Desktop.
Save micc83/21723da859f1ffeef9b9 to your computer and use it in GitHub Desktop.
set nocompatible " Disable vi-compatibility
"------ Vundle BEGIN ------"
"https://github.com/VundleVim/Vundle.vim"
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"------ Plugins ------"
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive' "https://github.com/tpope/vim-fugitive
call vundle#end()
filetype plugin indent on
"------ Vundle END ------"
set t_Co=256
syntax enable
colorscheme atom-dark-256 "https://github.com/gosukiwi/vim-atom-dark
let mapleader = '.'
set clipboard=unnamed "Use cliplboard for copy (when supported)
"------- Visualization options ------"
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces
set smarttab
set tags=tags
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
set expandtab " expand tabs by default (overloadable per file type later)
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
set timeout timeoutlen=200 ttimeoutlen=100
set visualbell " don't beep
set noerrorbells " don't beep
set autowrite "Save on buffer switch
set mouse=a
"------- GUI Options -------"
set guifont=menlo:h14
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=10
"------- Status bar -------"
set laststatus=2 "Show always
set statusline=%F%m%r%h%w\
set statusline+=%{fugitive#statusline()}\
set statusline+=[%{strlen(&fenc)?&fenc:&enc}]
set statusline+=\ [line\ %l\/%L]
"------- Search ------"
set hlsearch
set incsearch
"------- Mappings ------"
"Make it easy to edit the Vimrc file
nmap <leader>ec :tabedit ~/.vimrc<cr>
"Remove hightlight after search
nmap <leader><space> :nohlsearch<cr>
"------ Auto-commands ------"
"Auto source
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment