Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- set hidden
- set nobackup
- set noswapfile
- set list
- set listchars=tab:>.,trail:.,extends:#,nbsp:.
- set pastetoggle=<F2>
- filetype off " required
- set ruler
- set number
- set incsearch
- set hlsearch
- set autoindent
- set smartcase
- set showmode " Show the mode we're in
- set smarttab " Insert tabs according to shiftwidth
- set expandtab " Use 4 spaces as tab
- set backspace=indent,eol,start
- set formatoptions=cqrt " Formatting options, see :h fo-table
- set laststatus=2 " Always display a status line
- set shortmess=at " Short messages in statusline
- set whichwrap=<,>,h,l " Allow cursor keys and h/l to wrap lines
- set termencoding=utf-8 " UTF8 as default encoding
- set encoding=utf-8 " ...
- set tabstop=4 " Tab options
- set shiftwidth=4 " ...
- set softtabstop=4 " ...
- set scrolloff=30 " Always show 4 lines before/after cursor
- let mapleader = ','
- let g:netrw_liststyle=3
- nmap <silent> ,/ :nohlsearch<CR>
- nnoremap <C-h> <C-w>h
- nnoremap <C-j> <C-w>j
- nnoremap <C-k> <C-w>k
- nnoremap <C-l> <C-w>l
- " bind K to grep word under cursor
- nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR>
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- " let Vundle manage Vundle, required
- Plugin 'gmarik/Vundle.vim'
- "Syntastic
- Plugin 'scrooloose/syntastic'
- let g:syntastic_check_on_open = 1
- let g:syntastic_aggregate_errors = 1
- "Syntastic HTML Settings
- "Syntastic Python settings
- let g:syntastic_python_checkers = ['flake8']
- let g:syntastic_python_flake8_post_args='--ignore=E501,N802,E121,E128,E123'
- Plugin 'Keithbsmiley/tmux.vim'
- Bundle 'lervag/vim-latex'
- "Vim Peekaboo
- Plugin 'junegunn/vim-peekaboo'
- "Vim-markdown
- Plugin 'godlygeek/tabular'
- Plugin 'plasticboy/vim-markdown'
- let g:vim_markdown_frontmatter=1
- let g:vim_markdown_folding_disabled=1
- Plugin 'bling/vim-airline'
- let g:airline_detect_modified=1
- let g:airline_powerline_fonts = 1
- let g:airline#extensions#branch#enabled = 1
- let g:airline#extensions#syntastic#enabled = 1
- let g:airline#extensions#tabline#enabled = 1
- if !exists('g:airline_symbols')
- let g:airline_symbols = {}
- endif
- " unicode symbols
- let g:airline_left_sep = '»'
- let g:airline_left_sep = '▶'
- let g:airline_right_sep = '«'
- let g:airline_right_sep = '◀'
- let g:airline_symbols.linenr = '␊'
- let g:airline_symbols.linenr = ''
- let g:airline_symbols.linenr = '¶'
- let g:airline_symbols.branch = '⎇'
- let g:airline_symbols.paste = 'ρ'
- let g:airline_symbols.paste = 'Þ'
- let g:airline_symbols.paste = '∥'
- let g:airline_symbols.whitespace = 'Ξ'
- " powerline symbols
- let g:airline_left_sep = ''
- let g:airline_left_alt_sep = ''
- let g:airline_right_sep = ''
- let g:airline_right_alt_sep = ''
- let g:airline_symbols.branch = ''
- let g:airline_symbols.readonly = ''
- let g:airline_symbols.linenr = ''
- " Tim Pope's Fugitive
- Plugin 'tpope/vim-fugitive'
- Plugin 'tpope/vim-git'
- " CtrlP omnifind bar
- Plugin 'kien/ctrlp.vim'
- let g:ctrlp_match_window = 'bottom,order:ttb'
- let g:ctrlp_working_path_mode = 'ra'
- let g:ctrlp_extensions = ['mixed', 'line']
- " The Silver Searcher
- if executable('ag')
- " Use ag over grep
- set grepprg=ag\ --nogroup\ --nocolor
- " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
- let g:ctrlp_user_command = 'ag %s --nocolor --nogroup -g ""'
- " ag is fast enough that CtrlP doesn't need to cache
- let g:ctrlp_use_caching = 0
- endif
- " Rainbow Parens
- Plugin 'kien/rainbow_parentheses.vim'
- au VimEnter * RainbowParenthesesToggle
- au Syntax * RainbowParenthesesLoadRound
- au Syntax * RainbowParenthesesLoadSquare
- au Syntax * RainbowParenthesesLoadBraces
- " EasyMotion: <leader><leader>motion
- Plugin 'Lokaltog/vim-easymotion'
- " Indent Line
- Bundle 'Yggdroot/indentLine'
- " Colorschemes
- Plugin 'flazz/vim-colorschemes'
- Plugin 'junza/Spink'
- Plugin 'altercation/vim-colors-solarized'
- Plugin 'stephpy/vim-yaml'
- "Ag.vim
- Plugin 'rking/ag.vim'
- "Screensaver
- Plugin 'itchyny/screensaver.vim'
- "Vim to Haskell
- Plugin 'dag/vim2hs'
- call vundle#end() " required
- filetype plugin indent on " required
- autocmd BufNewFile,BufReadPost *.md set filetype=markdown
- colorscheme mushroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement