Skip to content

Commit

Permalink
Try vundle for vim plugin management
Browse files Browse the repository at this point in the history
  • Loading branch information
randymorris committed Mar 23, 2011
1 parent 15ef788 commit 91288c8
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 48 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
vim/bundle/*
27 changes: 3 additions & 24 deletions .gitmodules
@@ -1,24 +1,3 @@
[submodule "vim/bundle/supertab"] [submodule "vim/vundle"]
path = vim/bundle/supertab path = vim/vundle
url = http://github.com/ervandew/supertab.git url = http://github.com/gmarik/vundle
ignore = untracked
[submodule "vim/bundle/pathogen"]
path = vim/bundle/pathogen
url = http://github.com/tpope/vim-pathogen.git
ignore = untracked
[submodule "vim/bundle/markdown"]
path = vim/bundle/markdown
url = http://github.com/tpope/vim-markdown.git
ignore = untracked
[submodule "vim/bundle/gundo"]
path = vim/bundle/gundo
url = http://github.com/sjl/gundo.vim.git
ignore = untracked
[submodule "vim/bundle/nerdcommenter"]
path = vim/bundle/nerdcommenter
url = http://github.com/scrooloose/nerdcommenter.git
ignore = untracked
[submodule "vim/bundle/matchit"]
path = vim/bundle/matchit
url = http://github.com/vim-scripts/matchit.zip.git
ignore = untracked
1 change: 0 additions & 1 deletion vim/autoload/pathogen.vim

This file was deleted.

1 change: 0 additions & 1 deletion vim/bundle/gundo
Submodule gundo deleted from e7a1ec
1 change: 0 additions & 1 deletion vim/bundle/markdown
Submodule markdown deleted from 34e28b
1 change: 0 additions & 1 deletion vim/bundle/matchit
Submodule matchit deleted from ced6c4
1 change: 0 additions & 1 deletion vim/bundle/nerdcommenter
Submodule nerdcommenter deleted from c8d831
1 change: 0 additions & 1 deletion vim/bundle/pathogen
Submodule pathogen deleted from 552e5f
1 change: 0 additions & 1 deletion vim/bundle/supertab
Submodule supertab deleted from 231e05
36 changes: 19 additions & 17 deletions vim/vimrc
Expand Up @@ -3,14 +3,7 @@
" Randy Morris (rson451@gmail.com) " Randy Morris (rson451@gmail.com)
" "
" CREATED: 2008-08-18 22:31 " CREATED: 2008-08-18 22:31
" MODIFIED: 2011-03-09 19:23 " MODIFIED: 2011-03-23 17:30

" Setup Pathogen "{{{
" supress errors if < vim 7
silent! call pathogen#runtime_append_all_bundles()
silent! call pathogen#helptags()
filetype off
"}}}


" Simple Settings {{{ " Simple Settings {{{


Expand Down Expand Up @@ -59,7 +52,6 @@ if v:version >= 700
set completeopt-=menu " Get rid of the ugly menu set completeopt-=menu " Get rid of the ugly menu
endif endif


filetype plugin indent on " Enable filetype detection
syntax on " Syntax highliting syntax on " Syntax highliting


if has('folding') if has('folding')
Expand Down Expand Up @@ -105,7 +97,7 @@ endif
" Auto Commands "{{{ " Auto Commands "{{{
if has('autocmd') if has('autocmd')
" Set mutt settings " Set mutt settings
autocmd BufRead,BufNewFile /tmp/mutt-* set filetype=mail | set textwidth=72 | set spell | set wrap autocmd BufRead,BufNewFile /tmp/mutt-* set ft=mail tw=72 spell wrap


" Automatically add CREATED date and update MODIFIED date " Automatically add CREATED date and update MODIFIED date
if v:version >= 700 if v:version >= 700
Expand All @@ -114,7 +106,7 @@ if has('autocmd')
endif endif


" Explicitly set filetype on certain files " Explicitly set filetype on certain files
autocmd BufRead,BufNewFile *.jinja set filetype=htmljinja autocmd BufRead,BufNewFile *.jinja set ft=htmljinja


" Restore cursor position " Restore cursor position
autocmd BufReadPost * call RestoreCursorPos() autocmd BufReadPost * call RestoreCursorPos()
Expand Down Expand Up @@ -243,7 +235,7 @@ function! OpenFoldOnRestore()
endfunction endfunction


" Tmux integration " Tmux integration
function TmuxWindowMotion(dir) function! TmuxWindowMotion(dir)
let dir = a:dir let dir = a:dir


let old_winnr = winnr() let old_winnr = winnr()
Expand All @@ -270,22 +262,28 @@ endfunction


" Vim 7 and above {{{ " Vim 7 and above {{{
if v:version >= 700 if v:version >= 700
" Setup Vundle
filetype off
set runtimepath+=~/.vim/vundle/
call vundle#rc()

" Markdown syntax file
Bundle "tpope/vim-markdown"

" NERD Commenter " NERD Commenter
Bundle "scrooloose/nerdcommenter"
let NERDCreateDefaultMappings = 0 let NERDCreateDefaultMappings = 0
let NERDCommentWholeLinesInVMode = 1 let NERDCommentWholeLinesInVMode = 1
let NERDSpaceDelims = 1 let NERDSpaceDelims = 1
map <Leader>c <plug>NERDCommenterToggle map <Leader>c <plug>NERDCommenterToggle
" SnipMate
let g:snips_author = 'Randy Morris'
let g:snips_email = 'randy@rsontech.net'
let g:snips_dir = '~/.vim/snippets/'

" Super Tab " Super Tab
Bundle "ervandew/supertab"
let g:SuperTabDefaultCompletionType = "context" let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabMidWordCompletion = 0 let g:SuperTabMidWordCompletion = 0


" Bufstat " Bufstat
Bundle "rson/vim-bufstat"
highlight BufferNC ctermfg=248 ctermbg=239 highlight BufferNC ctermfg=248 ctermbg=239
highlight link Buffer StatusLine highlight link Buffer StatusLine
let g:bufstat_active_hl_group = 'Buffer' let g:bufstat_active_hl_group = 'Buffer'
Expand All @@ -297,6 +295,7 @@ endif
" Vim 7.3 and above {{{ " Vim 7.3 and above {{{
if v:version >= 703 if v:version >= 703
" Gundo " Gundo
Bundle "sjl/gundo.vim"
nmap <Leader>U :GundoToggle<CR> nmap <Leader>U :GundoToggle<CR>
let g:gundo_preview_bottom = 1 let g:gundo_preview_bottom = 1
let g:gundo_preview_height = 10 let g:gundo_preview_height = 10
Expand All @@ -306,4 +305,7 @@ endif


"}}} "}}}


" End Vundle
filetype plugin indent on

" vim:foldlevel=0:foldmethod=marker " vim:foldlevel=0:foldmethod=marker
1 change: 1 addition & 0 deletions vim/vundle
Submodule vundle added at f1bac1

0 comments on commit 91288c8

Please sign in to comment.