/
vimrc
119 lines (92 loc) · 2.28 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
set nocompatible
" syntax highlighting
syntax on
if has("autocmd")
" "all Bundle declarations have to happen when filetype off"
" https://github.com/gmarik/vundle/issues/210
filetype off
endif
" vundle plugins
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" vundle manage self
" Bundle 'gmarik/vundle'
Bundle 'adjohnson916/vundle'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
" Bundle 'snipmate-snippets'
" Bundle 'honza/snipmate-snippets'
Bundle 'honza/vim-snippets'
Bundle 'garbas/vim-snipmate'
" Bundle 'msanders/snipmate.vim'
" Bundle 'thomaspeklak/snipmate.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'jistr/vim-nerdtree-tabs'
Bundle 'kchmck/vim-coffee-script'
" Bundle 'altercation/vim-colors-solarized'
Bundle 'wavded/vim-stylus'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/ctrlp.vim'
Bundle 'scrooloose/syntastic'
Bundle 'scrooloose/nerdcommenter'
Bundle 'wannesm/wmnusmv.vim'
Bundle 'Lokaltog/powerline'
Bundle 'editorconfig/editorconfig-vim'
" pathogen plugins
call pathogen#infect()
" call pathogen#runtime_append_all_bundles()
" call pathogen#helptags()
" powerline
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
" re-enabled filetype detection after plugins
if has("autocmd")
filetype plugin indent on
endif
" default (display) encoding utf-8
set encoding=utf-8
" show unwanted whitespace
set listchars=tab:→\ ,trail:·
set list
" wrap lines for display
set wrap
" don't auto break long lines
set textwidth=0
" line numbers
set number
set modeline
" tabs
"set autoindent
"set smartindent
set expandtab
set copyindent
set preserveindent
set tabstop=2
set softtabstop=2
set shiftwidth=2
"backspace like most apps
set backspace=indent,eol,start
" C-style indentation setup
"set cinkeys=0{,0},0),:,0#,!^F,o,),e
" use \t in regex search
:retab
" search highlighing
:set hlsearch
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
" allow toggling auto-indent for pasting
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
" tab bindings
nnoremap <F7> :tabp<CR>
nnoremap <F8> :tabn<CR>
" NERDTree bindings
map <C-n> :NERDTreeToggle<CR>
" full mouse support
" set mouse=a
set wildmode=list:longest,full
set wildmenu
" 256 colors
set t_Co=256
set encoding=utf-8
let g:Powerline_symbols = "fancy"
set laststatus=2 " always show statusline