Permalink
Browse files

Loaded up plugin and start of vimrc.

  • Loading branch information...
1 parent bcdcb09 commit 9a32339432e56eca3027a542d70b11a1388536a6 @tima committed Sep 15, 2012
Showing with 147 additions and 0 deletions.
  1. +57 −0 .gitmodules
  2. +1 −0 bundle/ack
  3. +1 −0 bundle/colors-solarized
  4. +1 −0 bundle/commentary
  5. +1 −0 bundle/ctrlp
  6. +1 −0 bundle/fugitive
  7. +1 −0 bundle/gundo
  8. +1 −0 bundle/hexHighlight
  9. +1 −0 bundle/jinja2
  10. +1 −0 bundle/markdown
  11. +1 −0 bundle/nerdtree
  12. +1 −0 bundle/numbers
  13. +1 −0 bundle/perl
  14. +1 −0 bundle/powerline
  15. +1 −0 bundle/python-mode
  16. +1 −0 bundle/repeat
  17. +1 −0 bundle/surround
  18. +1 −0 bundle/tagbar
  19. +1 −0 bundle/unimpaired
  20. +1 −0 bundle/vim-colors
  21. +71 −0 vimrc
View
@@ -0,0 +1,57 @@
+[submodule "bundle/fugitive"]
+ path = bundle/fugitive
+ url = git://github.com/tpope/vim-fugitive.git
+[submodule "bundle/ack"]
+ path = bundle/ack
+ url = git://github.com/mileszs/ack.vim.git
+[submodule "bundle/markdown"]
+ path = bundle/markdown
+ url = git://github.com/tpope/vim-markdown.git
+[submodule "bundle/surround"]
+ path = bundle/surround
+ url = git://github.com/tpope/vim-surround.git
+[submodule "bundle/unimpaired"]
+ path = bundle/unimpaired
+ url = https://github.com/tpope/vim-unimpaired.git
+[submodule "bundle/hexHighlight"]
+ path = bundle/hexHighlight
+ url = https://github.com/yurifury/hexHighlight.git
+[submodule "bundle/perl"]
+ path = bundle/perl
+ url = https://github.com/petdance/vim-perl.git
+[submodule "bundle/python-mode"]
+ path = bundle/python-mode
+ url = https://github.com/klen/python-mode.git
+[submodule "bundle/numbers"]
+ path = bundle/numbers
+ url = https://github.com/myusuf3/numbers.vim.git
+[submodule "bundle/jinja2"]
+ path = bundle/jinja2
+ url = https://github.com/Glench/Vim-Jinja2-Syntax.git
+[submodule "bundle/powerline"]
+ path = bundle/powerline
+ url = https://github.com/Lokaltog/vim-powerline.git
+[submodule "bundle/tagbar"]
+ path = bundle/tagbar
+ url = https://github.com/majutsushi/tagbar.git
+[submodule "bundle/nerdtree"]
+ path = bundle/nerdtree
+ url = https://github.com/scrooloose/nerdtree.git
+[submodule "bundle/gundo"]
+ path = bundle/gundo
+ url = https://github.com/sjl/gundo.vim
+[submodule "bundle/ctrlp"]
+ path = bundle/ctrlp
+ url = https://github.com/kien/ctrlp.vim.git
+[submodule "bundle/vim-colors"]
+ path = bundle/vim-colors
+ url = https://github.com/spf13/vim-colors.git
+[submodule "bundle/colors-solarized"]
+ path = bundle/colors-solarized
+ url = https://github.com/altercation/vim-colors-solarized.git
+[submodule "bundle/commentary"]
+ path = bundle/commentary
+ url = https://github.com/tpope/vim-commentary.git
+[submodule "bundle/repeat"]
+ path = bundle/repeat
+ url = https://github.com/tpope/vim-repeat.git
Submodule ack added at 989528
Submodule colors-solarized added at 528a59
Submodule commentary added at dc349b
Submodule ctrlp added at 0d198f
Submodule fugitive added at 413831
Submodule gundo added at 4c376a
Submodule hexHighlight added at 7e8167
Submodule jinja2 added at 1be943
Submodule markdown added at dcdab0
Submodule nerdtree added at a1433c
Submodule numbers added at 2f72ce
Submodule perl added at b94578
Submodule powerline added at 20ab08
Submodule python-mode added at e877c7
Submodule repeat added at 613eb1
Submodule surround added at 1a73f6
Submodule tagbar added at cd0e20
Submodule unimpaired added at e80137
Submodule vim-colors added at 9522f2
View
71 vimrc
@@ -0,0 +1,71 @@
+call pathogen#runtime_append_all_bundles()
+call pathogen#helptags()
+
+syntax on
+setlocal laststatus=2
+filetype plugin on
+
+" http://www.vim.org/scripts/script.php?script_id=1319
+" au BufRead,BufNewFile *.t set filetype=perl | compiler perlprove
+" http://www.vim.org/scripts/script.php?script_id=56
+" au BufRead,BufNewFile *.p(l|m) set filetype=perl | compiler perl
+
+" au BufNewFile,BufRead *.yaml,*.yml so ~/.vim/yaml.vim
+" au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
+
+" # Derived from Appendix C of Perl Best Practices
+" # See: http://www.oreilly.com/pub/a/oreilly/ask_tim/2001/codepolicy.html
+autocmd FileType perl set autoindent " Preserve current indent on new lines
+autocmd FileType perl set textwidth=78 " Wrap at this column
+set backspace=indent,eol,start " Make backspaces delete sensibly
+autocmd FileType perl set matchpairs+=<:> " Allow % to bounce between angles too
+
+" Suggestions from the PerlMonks http://www.perlmonks.org/?node_id=146388
+set vb " use visual bell instead of beeping
+set incsearch " incremental search
+
+autocmd FileType perl set autoindent|set smartindent " autoindent
+set tabstop=4|set shiftwidth=4|set expandtab|set softtabstop=4 " 4 space tabs
+autocmd FileType perl set showmatch " show matching brackets
+set number
+
+" check perl code with :make
+autocmd FileType perl set makeprg=perl\ -c\ %\ $*
+autocmd FileType perl set errorformat=%f:%l:%m
+autocmd FileType perl set autowrite
+
+" dont use Q for Ex mode
+map Q :q
+
+" make tab in v mode ident code
+vmap <tab> >gv
+vmap <s-tab> <gv
+
+" make tab in normal mode ident code
+nmap <tab> I<tab><esc>
+nmap <s-tab> ^i<bs><esc>
+
+" paste mode - this will avoid unexpected effects when you
+" cut or copy some text from one window and paste it in Vim.
+set pastetoggle=<F11>
+
+" comment/uncomment blocks of code (in vmode)
+vmap _c :s/^/#/gi<Enter>
+vmap _C :s/^#//gi<Enter>
+
+" my perl includes pod
+let perl_include_pod = 1
+
+" syntax color complex things like @{${"foo"}}
+let perl_extended_vars = 1
+
+" Tidy selected lines (or entire file) with _t:
+nnoremap <silent> _t :%!perltidy -q<Enter>
+vnoremap <silent> _t :!perltidy -q<Enter>
+
+" Deparse obfuscated code
+nnoremap <silent> _d :.!perl -MO=Deparse 2>/dev/null<cr>
+vnoremap <silent> _d :!perl -MO=Deparse 2>/dev/null<cr>
+
+set nocompatible
+

0 comments on commit 9a32339

Please sign in to comment.