Skip to content

Commit

Permalink
More Vim plugin configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
mtscout6 committed Sep 12, 2015
1 parent 89bfa3c commit 501aa29
Show file tree
Hide file tree
Showing 62 changed files with 414 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
_vim/bundle
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Matt Smith's Dotfiles

My original dotfiles came from a fork of a colleague of mine. I've learned a lot
since that time, and now it's time to start again from scratch with my own
My original dotfiles came from a fork of a colleague of mine. I've learned a
lot since that time, and now it's time to start again from scratch with my own
personal quirks completely throughout the repo. Here's to another fun ride!

## TODO

- Look into: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
For node_modules path addition
3 changes: 3 additions & 0 deletions _vim/rc/plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
filetype off
filetype plugin indent off

" Increase timeout for YouCompleteMe
let g:neobundle#install_process_timeout=300

if has('vim_starting')
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
Expand Down
7 changes: 7 additions & 0 deletions _vim/rc/plugins/ack.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NeoBundle 'mileszs/ack.vim'

let g:ackprg = 'ag --nogroup --nocolor --column'

noremap <leader>s :Ack
map <F3> :execute "Ack -w " . expand("<cword>")<Bar> cw<CR>
map <F4> :execute "Ack -w --type=" . &filetype . " " . expand("<cword>")<Bar> cw<CR>
8 changes: 8 additions & 0 deletions _vim/rc/plugins/airline.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
" Default
let g:airline#extensions#tmuxline#enabled = 0
" Presentation
"let g:airline#extensions#tmuxline#enabled = 1

NeoBundle 'bling/vim-airline'
3 changes: 3 additions & 0 deletions _vim/rc/plugins/bufonly.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NeoBundle 'duff/vim-bufonly'

map <leader>b :BufOnly<CR>
8 changes: 8 additions & 0 deletions _vim/rc/plugins/cjsx.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NeoBundleLazy 'mtscout6/vim-cjsx', {
\ 'autoload': {
\ 'filetypes': [
\ 'coffee',
\ 'coffeescript'
\ ]
\ }
\ }
10 changes: 10 additions & 0 deletions _vim/rc/plugins/closetag.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NeoBundleLazy 'docunext/closetag.vim', {
\ 'autoload': {
\ 'filetypes': [
\ 'html',
\ 'xml',
\ 'javascript'
\ ]
\ }
\ }

7 changes: 7 additions & 0 deletions _vim/rc/plugins/coffee-script.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NeoBundleLazy 'kchmck/vim-coffee-script', {
\ 'autoload': {
\ 'filetypes': [
\ 'coffee'
\ ]
\ }
\ }
10 changes: 10 additions & 0 deletions _vim/rc/plugins/css.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NeoBundleLazy 'JulesWang/css.vim', {
\ 'autoload': {
\ 'filetypes': [
\ 'css',
\ 'less',
\ 'scss',
\ 'sass'
\ ]
\ }
\ }
10 changes: 10 additions & 0 deletions _vim/rc/plugins/css3-syntax.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NeoBundleLazy 'hail2u/vim-css3-syntax', {
\ 'autoload': {
\ 'filetypes': [
\ 'css',
\ 'less',
\ 'scss',
\ 'sass'
\ ]
\ }
\ }
12 changes: 12 additions & 0 deletions _vim/rc/plugins/ctrl-p-git-log.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NeoBundleLazy 'kaneshin/ctrlp-git-log', {
\ 'depends':[
\ 'kien/ctrlp.vim'
\ ],
\ 'autoload': {
\ 'commands': [
\ 'CtrlPGitLog'
\ ]
\ }
\ }

map <leader>gl :CtrlPGitLog<CR>
14 changes: 14 additions & 0 deletions _vim/rc/plugins/ctrl-p-git.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
NeoBundleLazy 'mattn/ctrlp-git', {
\ 'depends':[
\ 'kien/ctrlp.vim'
\ ],
\ 'autoload': {
\ 'commands': [
\ 'CtrlPGitFiles',
\ 'CtrlPGitBranch'
\ ]
\ }
\ }

map <leader>gs :CtrlPGitFiles<CR>
map <leader>gb :CtrlPGitBranch<CR>
12 changes: 12 additions & 0 deletions _vim/rc/plugins/ctrl-p-modified.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NeoBundleLazy 'jasoncodes/ctrlp-modified.vim', {
\ 'depends':[
\ 'kien/ctrlp.vim'
\ ],
\ 'autoload': {
\ 'commands': [
\ 'CtrlPModified'
\ ]
\ }
\ }

map <leader>gm :CtrlPModified<CR>
17 changes: 17 additions & 0 deletions _vim/rc/plugins/ctrl-p.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let g:ctrlp_working_path_mode = 'r'
let g:ctrlp_extensions = ['tag', 'buffertag', 'line', 'funky']
", 'git-log', 'git_branch', 'git_files', 'modified']
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'

NeoBundleLazy 'kien/ctrlp.vim', {
\ 'autoload': {
\ 'commands':[
\ 'CtrlP',
\ 'CtrlPGitFiles',
\ 'CtrlPGitBranch',
\ 'CtrlPGitLog',
\ ]
\ }
\ }

map <leader>t :CtrlP getcwd()<CR>
1 change: 1 addition & 0 deletions _vim/rc/plugins/delimitMate.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'raimondi/delimitmate'
1 change: 1 addition & 0 deletions _vim/rc/plugins/dispatch.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'tpope/vim-dispatch'
7 changes: 7 additions & 0 deletions _vim/rc/plugins/dockerfile.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NeoBundleLazy 'ekalinin/Dockerfile.vim', {
\ 'autoload':{
\ 'filetypes':[
\ 'Dockerfile'
\ ]
\ }
\ }
15 changes: 15 additions & 0 deletions _vim/rc/plugins/emmet.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
NeoBundleLazy 'mattn/emmet-vim', {
\ 'autoload': {
\ 'filetypes': [
\ 'cjsx',
\ 'coffeescript',
\ 'html',
\ 'javascript',
\ 'markdown',
\ 'md',
\ 'xml'
\ ]
\ }
\ }

imap <C-e> <C-y>,
8 changes: 8 additions & 0 deletions _vim/rc/plugins/endwise.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NeoBundleLazy 'tpope/vim-endwise', {
\ 'autoload':{
\ 'filetypes':[
\ 'ruby',
\ 'vim'
\ ]
\ }
\ }
1 change: 1 addition & 0 deletions _vim/rc/plugins/exchange.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'tommcdo/vim-exchange'
12 changes: 12 additions & 0 deletions _vim/rc/plugins/fugitive.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NeoBundle 'tpope/vim-fugitive'

nnoremap <silent> <leader>gs :Gstatus<CR>
nnoremap <silent> <leader>gd :Gdiff<CR>
nnoremap <silent> <leader>gc :Gcommit<CR>
nnoremap <silent> <leader>gb :Gblame<CR>
nnoremap <silent> <leader>gl :Glog<CR>
nnoremap <silent> <leader>gp :Git push<CR>
nnoremap <silent> <leader>gw :Gwrite<CR>
nnoremap <silent> <leader>gr :Gremove<CR>
autocmd FileType gitcommit nmap <buffer> U :Git checkout -- <C-r><C-g><CR>
autocmd BufReadPost fugitive://* set bufhidden=delete
8 changes: 8 additions & 0 deletions _vim/rc/plugins/git-gutter.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NeoBundle 'airblade/vim-gitgutter'

highlight clear SignColumn
map ]h <Plug>GitGutterNextHunk
map [h <Plug>GitGutterPrevHunk
map <leader>hv <Plug>GitGutterPreviewHunk
map <Leader>hs <Plug>GitGutterStageHunk
map <Leader>hr <Plug>GitGutterRevertHunk
1 change: 1 addition & 0 deletions _vim/rc/plugins/git.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'tpope/vim-git'
14 changes: 14 additions & 0 deletions _vim/rc/plugins/gitv.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
NeoBundleLazy 'gregsexton/gitv', {
\ 'depends':[
\ 'tpope/vim-fugitive'
\ ],
\ 'autoload':{
\ 'commands':'Gitv'
\ }
\ }

nnoremap <silent> <leader>gv :Gitv<CR>
nnoremap <silent> <leader>gV :Gitv!<CR>
highlight diffAdded guifg=#00bf00
highlight diffRemoved guifg=#bf0000
1 change: 1 addition & 0 deletions _vim/rc/plugins/goldenview.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'zhaocai/GoldenView.Vim'
13 changes: 13 additions & 0 deletions _vim/rc/plugins/instant-markdown.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
NeoBundleLazy 'suan/vim-instant-markdown', {
\ 'autoload': {
\ 'filetypes': [
\ 'markdown',
\ 'md',
\ 'mkd.markdown'
\ ]
\ }
\ }

let g:instant_markdown_autostart = 0

map <leader>fp :InstantMarkdownPreview<CR>
7 changes: 7 additions & 0 deletions _vim/rc/plugins/javascript.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NeoBundle 'pangloss/vim-javascript', {
\ 'autoload': {
\ 'filetypes': [
\ 'javascript'
\ ]
\ }
\ }
9 changes: 9 additions & 0 deletions _vim/rc/plugins/jsdoc.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NeoBundleLazy 'heavenshell/vim-jsdoc', {
\ 'autoload': {
\ 'filetypes': [
\ 'javascript'
\ ]
\ }
\ }

nmap <silent> <leader>jd <Plug>(jsdoc)
12 changes: 12 additions & 0 deletions _vim/rc/plugins/json.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let g:vim_json_syntax_conceal = 0

NeoBundleLazy 'elzr/vim-json', {
\ 'autoload': {
\ 'filetypes': [
\ 'json'
\ ]
\ }
\ }

" Pretty Print Json
nmap <leader>jf :%!python -m json.tool<CR>
7 changes: 7 additions & 0 deletions _vim/rc/plugins/jsx.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NeoBundleLazy 'mxw/vim-jsx', {
\ 'autoload': {
\ 'filetypes': [
\ 'javascript'
\ ]
\ }
\ }
7 changes: 7 additions & 0 deletions _vim/rc/plugins/less.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NeoBundleLazy 'groenewege/vim-less', {
\ 'autoload': {
\ 'filetypes': [
\ 'less'
\ ]
\ }
\ }
1 change: 1 addition & 0 deletions _vim/rc/plugins/logstash.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'robbles/logstash.vim'
21 changes: 21 additions & 0 deletions _vim/rc/plugins/markdown.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
let g:vim_markdown_frontmatter=1

NeoBundleLazy 'plasticboy/vim-markdown', {
\ 'depends':[
\ 'godlygeek/tabular'
\ ],
\ 'autoload': {
\ 'filetypes': [
\ 'markdown',
\ 'md',
\ 'mkd.markdown'
\ ]
\ }
\ }

autocmd Filetype mkd.markdown setlocal wrap
autocmd Filetype mkd.markdown setlocal linebreak
autocmd Filetype mkd.markdown setlocal nolist
autocmd Filetype mkd.markdown setlocal columns=100
autocmd Filetype mkd.markdown setlocal tw=100
autocmd Filetype mkd.markdown setlocal wm=4
1 change: 1 addition & 0 deletions _vim/rc/plugins/matchit.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'edsono/vim-matchit'
9 changes: 9 additions & 0 deletions _vim/rc/plugins/matchtag.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NeoBundleLazy 'gregsexton/MatchTag', {
\ 'autoload':{
\ 'filetypes':[
\ 'html',
\ 'xml',
\ 'javascript'
\ ]
\ }
\ }
8 changes: 8 additions & 0 deletions _vim/rc/plugins/multiple-cursors.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let g:multi_cursor_use_default_mapping=0
let g:multi_cursor_start_key='<leader>m'
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<Esc>'

NeoBundle 'terryma/vim-multiple-cursors'
1 change: 1 addition & 0 deletions _vim/rc/plugins/nerdcommenter.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'scrooloose/nerdcommenter'
9 changes: 8 additions & 1 deletion _vim/rc/plugins/nerdtree.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
NeoBundleLazy 'scrooloose/nerdtree', {'autoload':{'commands':['NERDTreeToggle','NERDTreeFind']}}
NeoBundleLazy 'scrooloose/nerdtree', {
\ 'autoload':{
\ 'commands':[
\ 'NERDTreeToggle',
\ 'NERDTreeFind'
\ ]
\ }
\ }

let NERDTreeShowHidden=1
let NERDTreeIgnore=[]
Expand Down
10 changes: 10 additions & 0 deletions _vim/rc/plugins/node.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NeoBundleLazy 'moll/vim-node', {
\ 'autoload': {
\ 'filetypes': [
\ 'coffee',
\ 'coffeescript',
\ 'javascript',
\ 'less'
\ ]
\ }
\ }
5 changes: 5 additions & 0 deletions _vim/rc/plugins/projectionist.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NeoBundle 'mtscout6/vim-projectionist'

map <leader>ft :A<CR>
map <leader>fv :AV<CR>
map <leader>fs :AS<CR>
1 change: 1 addition & 0 deletions _vim/rc/plugins/qfgrep.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'sk1418/QFGrep'
1 change: 1 addition & 0 deletions _vim/rc/plugins/quickfix-reflector.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'stefandtw/quickfix-reflector.vim'
1 change: 1 addition & 0 deletions _vim/rc/plugins/repeat.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'tpope/vim-repeat'
8 changes: 8 additions & 0 deletions _vim/rc/plugins/ruby.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NeoBundleLazy 'vim-ruby/vim-ruby', {
\ 'autoload':{
\ 'filetypes':[
\ 'ruby',
\ 'vim'
\ ]
\ }
\ }
8 changes: 8 additions & 0 deletions _vim/rc/plugins/scss-syntax.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NeoBundleLazy 'cakebaker/scss-syntax.vim', {
\ 'autoload': {
\ 'filetypes': [
\ 'scss',
\ 'sass'
\ ]
\ }
\ }
1 change: 1 addition & 0 deletions _vim/rc/plugins/signature.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NeoBundle 'kshenoy/vim-signature'
Loading

0 comments on commit 501aa29

Please sign in to comment.