Skip to content

Instantly share code, notes, and snippets.

@Linuus
Created June 5, 2013 21:06
Show Gist options
  • Save Linuus/5717318 to your computer and use it in GitHub Desktop.
Save Linuus/5717318 to your computer and use it in GitHub Desktop.
Failing vimrc from tmux
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-bundler'
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-powerline'
Bundle 'kchmck/vim-coffee-script'
Bundle 'godlygeek/tabular'
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
colorscheme molokai
set hlsearch
endif
let g:Powerline_symbols = 'fancy' " Fancy symbols for Powerline
set tabstop=2 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 4.
set shiftwidth=2 " Indents will have a width of 4
set softtabstop=2 " Sets the number of columns for a TAB
set expandtab " Expand TABs to spaces
set number
set laststatus=2
map <C-j> <C-w>h
map <C-k> <C-w>j
map <C-l> <C-w>k
map <C-ö> <C-w>l
set guifont=Menlo\ for\ Powerline
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
noremap ö l
noremap l k
noremap k j
noremap j h
map § :NERDTreeToggle<CR>
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
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment