-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
143 lines (119 loc) · 4.25 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
set nocompatible " be iMproved, required
filetype off " required
runtime macros/matchit.vim
" 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')
" ------------------------------------------------------------------------------
" Plugins
" ------------------------------------------------------------------------------
" to get started:
"
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
"
" then:
"
" :VundleInstall
" ------------------------------------------------------------------------------
" let Vundle manage Vundle (required)
Plugin 'gmarik/Vundle.vim'
" the BEST git integration for vim
Plugin 'tpope/vim-fugitive'
" reduces eye-strain AND looks trendy
Plugin 'altercation/vim-colors-solarized'
" The base16 colorschemes for VIM
Plugin 'chriskempson/base16-vim'
" enables the :SCROLLCOLOR command
Plugin 'ScrollColors'
" vim IDE
Plugin 'project.tar.gz'
" vim Wiki w/lurvely checklists and wiki syntax, killer combo with Project
Plugin 'vimwiki'
" pretty pretty status bar; integrates with other services
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" auto-formatting for Puppet
Plugin 'rodjek/vim-puppet'
" Lovely whitespace alignment
Plugin 'Tabular'
" Makes ASCII tables easy (for ReST, etc)
Plugin 'dhruvasagar/vim-table-mode'
Plugin 'msanders/snipmate.vim'
Plugin 'surround.vim'
Plugin 'matchit.zip'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" ------------------------------------------------------------------------------
" Plugin settings
" ------------------------------------------------------------------------------
" vimproject
" --------------------------------------
" g = <F12> toggles Project sidebar
let g:proj_flags="imstbgv"
" vimwiki
" --------------------------------------
let wiki_notes = {}
let wiki_notes.path = '~/notes/'
let wiki_notes.html_header = '~/public_html/header.tpl'
let wiki_notes.nested_syntaxes = {'ruby': 'ruby', 'puppet': 'puppet', 'yaml': 'yaml', 'bash': 'sh', 'sh': 'sh', 'python': 'python', 'c++': 'cpp', 'erb': 'eruby', 'eruby': 'eruby'}
" Example additional wiki
"let wiki_2 = {}
"let wiki_2.path = '~/another_wiki/'
"let wiki_2.index = 'main'
" list of active wikis
let g:vimwiki_list = [wiki_notes]
"
let g:table_mode_corner = '+'
let g:table_mode_separator = '|'
" this is the best characters for the default Monospace font
let g:airline_left_sep='▶'
let g:airline_right_sep='◀'
let g:airline_theme='papercolor'
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.branch='𝌎'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.branch = 'ᚵ'
let g:airline_symbols.branch = 'ᚴ'
" ------------------------------------------------------------------------------
" General settings
" ------------------------------------------------------------------------------
syntax on
set tabstop=2 shiftwidth=2 expandtab " make tabs spaces
set autoindent
set ruler
" key bindings
" --------------------------------------
" toggle paste mode (prevents wonky formatting when pasting into a terminal)
map <F2> :set paste!<cr>
" remove whitespace
map <F5> :%s/[[:space:]]\+$//<cr>
" toggle spellcheck
map <F7> :set spell! spelllang=en_us spellfile=~/.vim/spellfile.add<cr>
" custom colors
" --------------------------------------
" colors for vimdiff
" from https://gforge.onyxpoint.net/redmine/projects/simp-dev/wiki/Tips_and_Tricks
if &diff
set t_Co=256
colorscheme zellner
endif
set t_Co=256
set background=dark
" Set this when not useing base16 Gnome terminal themes
" colorscheme base16-harmonic16