Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- filetype off "required for vundle
- call pathogen#infect()
- set rtp+=~/.vim/bundle/vundle/
- call vundle#rc()
- Bundle 'gmarik/vundle'
- Bundle 'Valloric/YouCompleteMe'
- filetype plugin indent on "required for vundle
- filetype on "now that vundle is over
- set softtabstop=2
- set tabstop=2
- set shiftwidth=2
- set expandtab
- set guioptions-=T
- set guioptions+=e
- set t_Co=256
- set mouse=a
- syntax enable
- set guitablabel=%M\ %t
- set ruler
- set nowrap
- set autoindent
- set smartindent
- set number
- set ignorecase
- set smartcase
- set hlsearch
- set incsearch
- set undolevels=100
- set history=250
- set title
- set novisualbell
- set noerrorbells
- set nobackup
- set pastetoggle=<F3>
- set laststatus=2
- set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l
- set magic "for regex pattern matching
- set background=dark "for better solarized
- colorscheme solarized
- "highlight tabs(\t char)
- syn match tab display "\t"
- hi link tab Error
- "eliminate traling whitespaces
- fun! <SID>StripTrailingWhitespaces()
- let l = line(".")
- let c = col(".")
- %s/\s\+$//e
- call cursor(l, c)
- endfun
- " kill any trailing whitespace on save
- autocmd FileType c,cabal,cpp,haskell,javascript,php,python,readme,text
- \ autocmd BufWritePre <buffer>
- \ :call <SID>StripTrailingWhitespaces()
- function! HasPaste()
- if &paste
- return 'PASTE MODE '
- en
- return ''
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement