Skip to content

Instantly share code, notes, and snippets.

@sebslomski
Created January 7, 2015 14:14
Show Gist options
  • Select an option

  • Save sebslomski/00b2ddbdb005495e51d2 to your computer and use it in GitHub Desktop.

Select an option

Save sebslomski/00b2ddbdb005495e51d2 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'pangloss/vim-javascript'
Bundle 'evidens/vim-twig'
Bundle 'kchmck/vim-coffee-script'
Bundle 'git://github.com/altercation/vim-colors-solarized.git'
Bundle 'bling/vim-airline'
set laststatus=2
let g:airline_enable_syntastic=1
let g:airline_theme='light'
let g:airline_enable_fugitive=1
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_linecolumn_prefix = '␊ '
let g:airline_linecolumn_prefix = '␤ '
let g:airline_linecolumn_prefix = '¶ '
let g:airline_fugitive_prefix = '⎇ '
let g:airline_paste_symbol = 'ρ'
let g:airline_paste_symbol = 'Þ'
let g:airline_paste_symbol = '∥'
Bundle 'git://github.com/groenewege/vim-less.git'
Bundle 'git://github.com/nono/vim-handlebars.git'
" Bundle 'git://github.com/othree/html5.vim.git'
Bundle 'git://github.com/scrooloose/syntastic.git'
Bundle '[email protected]:wavded/vim-stylus.git'
filetype plugin indent on " required!
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
syntax enable
let g:solarized_termcolors=256
set background=light
colorscheme solarized
set hidden
set mouse=a " enable mouse for cursor positioning
set expandtab " enter spaces when tab is pressed
set tabstop=4 " use 4 spaces to represent tab
set softtabstop=4
set shiftwidth=4 " number of spaces to use for auto indent
set autoindent " copy indent from current line when starting a new line
set copyindent
set smartcase
set backspace=indent,eol,start
set incsearch
set ignorecase
set showmatch
set hlsearch
set wrapmargin=2
set number " displays line number for each line
set title " show title in window title
"set noruler
set undolevels=1000
set history=1000
set encoding=utf-8
set fileencoding=utf-8
" wildmenu (enables a small menu with all completion suggestions)
set wildmenu
set wildmode=list:longest,full
set wildignore=*.swp,*.bak,*.pyc,*.class
set list
set lcs=tab:»· "show tabs
set lcs+=trail:· "show trailing spaces
set showbreak=»»»
set nobackup
set noswapfile
set nowritebackup
set cursorline
"hi CursorLine cterm=NONE ctermbg=black
map bn :bnext<CR>
map bp :bprev<CR>
map bf :bfirst<CR>
map bl :blast<CR>
map bd :bdelete<CR>
map ba :badd
map e :e
map :Q :q<CR>
map :Q! :q!<CR>
map <f7> :w<CR>:silent!clear <CR><CR>
map <f8> :w<CR>:!pyflakes %<CR>
map <f9> :w<CR>:!python %<CR>
map ,/ :s/^/\/\//<CR>:noh<CR>
map ,# :s/^\/\///<CR>:noh<CR>
cmap w!! w !sudo tee % >/dev/null
filetype on
filetype plugin on
filetype indent on
autocmd filetype python set expandtab
" Änderungen an vimrc sofort aktivieren
autocmd BufWritePost ~/.vimrc source ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment