]> us-delaporte.pagekite.me Git - dotfiles.git/blob - vimrc
Profile updates - mainly
[dotfiles.git] / vimrc
1 " -------------------------------------------------------
2 "
3 " EdTheDev's Minimal .vimrc
4 "
5 " Everything belongs in a Vundle plugin.
6 " -------------------------------------------------------
7
8 " When setting up on a new machine, remember to:
9 " cd ~
10 " git clone https://github.com/gmarik/Vundle.vim.git
11 " ~/.vim/bundle/Vundle.vim
12 " vim +BundleInstall +qall
13 "
14 " Automatically setup Vundle on first run
15 " if !isdirectory(expand("~/.vim/bundle/Vundle.vim"))
16 " call system("git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle")
17 " endif
18
19 " Let the leader key be ,
20 let mapleader=","
21
22 " Easier Ex commands
23 nnoremap ; :
24
25 " iPad and Android keyboards have no ESC Key
26 inoremap ii <esc>
27
28
29 set smarttab
30
31 set nocompatible " be iMproved, required
32
33 set omnifunc=syntaxcomplete#Complete
34
35 filetype off " required
36
37 set rtp+=~/.vim/bundle/Vundle.vim
38 call vundle#begin()
39
40 " =================
41 " Here be Plugins!
42 " =================
43
44 " let Vundle manage Vundle
45 " required!
46 Plugin 'gmarik/vundle'
47
48 " EdTheDev's Minion file organizer.
49 " Plugin 'edthedev/minion'
50 " let g:minion_map_keys = 0
51
52
53 " Syntax helpers for ReStructuredText
54 " Plugin 'edthedev/rst-syntax.vim'
55
56 " EdTheDev's Vim configuration for Python PEP8
57 " Plugin 'edthedev/vim-pep8'
58 " let g:minion_todo_map_keys = 1
59
60
61 " let g:vimroom_ctermbackground = "black"
62
63 "Plugin 'fmoralesc/vim-pad'
64 " let g:pad_dir='~/Copy/notes'
65
66 " Low contrast color scheme for Gvim - much easier on the eyes.
67 " Plugin 'junegunn/seoul256.vim'
68
69 " Display tag (function/method) outline
70 " Plugin 'majutsushi/tagbar'
71 " nmap <leader>t :TagbarToggle<Cr>
72
73 " EdTheDev's Vim configuration for TODO list items.
74 " Plugin 'edthedev/vim-todo'
75 " let g:vim_todo_keys = 1
76
77 " Browsing files made easier.
78 " Plugin 'scrooloose/nerdtree'
79 " nmap <leader>r :NERDTreeToggle<CR>
80
81 " Async dispatch by Tim Pope
82 " Plugin 'tpope/vim-dispatch'
83
84 " Markdown highlighting
85 Plugin 'tpope/vim-markdown'
86 " let g:markdown_github_languages = ['sh', 'python']
87
88 "Plugin 'jceb/vim-orgmode'
89 "let g:org_todo_keywords=['TODO', 'DONE', 'WAITING', 'CANCELED']
90 "let g:org_agenda_files=['~/index.org']
91
92 " More obvious default behaviors
93 " Plugin 'edthedev/wordlike.vim'
94
95 " Plugin 'xolox/vim-notes'
96 " Add @Tag search support
97 "Bundle 'fmoralesc/vim-pad'
98 " let g:pad_dir='~/Copy/notes'
99
100 " Distraction free writing.
101 Plugin 'junegunn/goyo.vim'
102 nnoremap <leader>w :Goyo<Cr>
103
104 " Plugin 'vim-scripts/pylint-mode'
105 " let g:PyLintCWindow = 1
106 " let g:PyLintSigns = 1
107 " let g:PyLintOnWrite = 1
108 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,C0322,C0323,C0324,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0621,W0631,E0102,E0611,E1002,E1101,E1103,E1120,F0401,R0201,R0901,R0903,R0904,R0913'
109
110 " Help building Arduino source files.
111 " Plugin 'edthedev/arduino.vim'
112 " let g:arduino_compile_command = 'ino build --board-model=atmega328'
113 " let g:arduino_upload_command = 'ino upload --board-model=atmega328'
114
115 " Plugin 'tomswartz07/vim-todo'
116 "
117 " Run commands from the current line and get their output.
118 " Plugin 'edthedev/cmd.vim'
119
120 " Plugin 'itchyny/thumbnail.vim'
121 " :Thumbnail
122
123 " Plugin 'farseer90718/vim-taskwarrior'
124 " let g:task_rc_override = 'defaultwidth=999'
125 " Plugin 'farseer90718/vim-taskwarrior'
126 " let g:task_rc_override = 'defaultwidth=0'
127 " let g:task_report_name = 'list'
128 " Read up on it here: https://github.com/farseer90718/vim-taskwarrior
129 "
130
131 " For REST APIs Press QQ in normal mode to open.
132 " Plugin 'nicwest/QQ.vim'
133
134 " Plugin 'mihaifm/bufstop'
135 " nn <leader>b :Bufstop<CR> " get a visual on the buffers
136 " map <leader>a :BufstopModeFast<CR> " a command for quick switching
137
138 " Sensible defaults for Markdown
139 " Plugin 'plasticboy/vim-markdown'
140 " set nofoldenable "Do not fold everything
141
142 " Better status line.
143 Plugin 'bling/vim-airline'
144
145 " Plugin 'Windows-PowerShell-Syntax-Plugin'
146
147 " Quick complete of stuff...
148 " Plugin 'SirVer/ultisnips'
149
150 " let g:UltiSnipsExpandTrigger="<tab>"
151 " let g:UltiSnipsJumpForwardTrigger="<c-b>"
152 " let g:UltiSnipsJumpBackwardTrigger="<c-z>"
153
154 " Snippets for ultisnips
155 " Plugin 'edthedev/vim-snippets'
156
157 " Default to use strapdown and markdown for blog posts.
158 " UltiSnipsAddFiletypes markdown.strapdown
159
160
161 call vundle#end()
162 filetype plugin indent on " required for Vundle Bundle
163
164 " Page down with space key
165 " nn <space> <c-d>
166 " Shift space is undetectable in many terminals...
167 " nn <S-space> <c-u>
168
169
170 " If not something else, then assume Markdown
171 set filetype=markdown
172 set syntax=markdown
173
174 " Don't show tabs for HTML files. Do show trailing spaces."
175 au FileType html set nolist
176 au FileType javascript set nolist
177
178 set softtabstop=4 " makes the spaces feel like real tabs
179
180 " Sensible default for everything else.
181 set tabstop=2
182 set shiftwidth=2
183
184 colorscheme slate