-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
95 lines (82 loc) · 2.4 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
let vundle_readme=expand('~/.vim/bundle/Vundle.vim/README.md')
" Set up Vundle to manage vim plugins
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
endif
" Pre-Vundle Setup
Plugin 'gmarik/Vundle.vim'
" Vundle Bundles
Plugin 'StripWhiteSpaces'
Plugin 'godlygeek/tabular.git'
" Fuzzy find -- super useful
Plugin 'kien/ctrlp.vim'
Plugin 'flazz/vim-colorschemes'
Plugin 'rking/ag.vim'
Plugin 'slim-template/vim-slim'
Plugin 'surround.vim'
Plugin 'tComment'
Plugin 'tacahiroy/ctrlp-funky'
Plugin 'thoughtbot/vim-rspec'
Plugin 'tpope/vim-abolish'
Plugin 'tpope/vim-bundler'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-ruby/vim-ruby'
call vundle#end()
filetype plugin indent on
:let g:html_indent_inctags = "html,body,head,tbody" " fix wierd html indentation
set background=dark
colorscheme terminal_colors
syntax enable
hi Error NONE
set autoindent " keep current indentation for newline
set autoread " keep buffer in sync with filesystem
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set smartindent
" crosshairs
set cursorcolumn
set cursorline
set rulerformat=%c\ %l\/%L " column current_line/total_lines
set ignorecase
" set incsearch
set iskeyword+=?
set nocompatible
set sm " show matching braces
set smartcase
set sw=2 " soft tab width in spaces. Same as softtabstop?
set ts=2
" search stuff
set wildmenu
set wildmode=longest,list,full
set nowrap " allow lines to run off page
set scrolloff=8 " show 8 lines of context above and below the line you are on
set number
set showtabline=2 " always show the tab bar
set shiftwidth=2 softtabstop=2 expandtab
set history=200
" netrw window stuff
let g:netrw_altv = 1
" let g:netrw_liststyle = 3
let g:netrw_winsize = ""
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set hlsearch
" GUI setup:
if has("gui_macvim") && has("gui_running")
let g:netrw_winsize = 50
colorscheme twilight
:set guioptions-=r "remove right-hand scroll bar
:set guioptions-=L "remove left-hand scroll bar
" syntax font and height
:set guifont=Monaco:h13
endif