Created
November 9, 2014 14:03
-
-
Save jability/cb64395807a90c78daac to your computer and use it in GitHub Desktop.
my custom vimrc file
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
" VIM Configuration File | |
" Description: Optimized for C/C++ development, but useful also for other things. | |
" Author: Gerhard Gappmeier | |
" | |
set exrc | |
set secure | |
execute pathogen#infect() | |
filetype plugin indent on | |
" set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" disable vi compatibility (emulation of old bugs) | |
set nocompatible | |
" use indentation of previous line | |
set autoindent | |
" use intelligent indentation for C | |
set smartindent | |
" configure tabwidth and insert spaces instead of tabs | |
set tabstop=4 " tab width is 4 spaces | |
set softtabstop=4 | |
set shiftwidth=4 " indent also with 4 spaces | |
set noexpandtab " dont expand tabs to spaces | |
autocmd FileType c set colorcolumn=80 | |
highlight ColorColumn ctermbg=darkgray | |
" turn syntax highlighting on | |
set t_Co=256 | |
set background=light | |
"let g:solarized_termcolors=256 | |
"let g:rehash256 = 1 | |
colorscheme solarized | |
syntax on | |
" turn line numbers on | |
set number | |
" highlight matching braces | |
set showmatch | |
" intelligent comments | |
set comments=sl:/*,mb:\ *,elx:\ */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment