Skip to content

Commit

Permalink
More.
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerborene committed Apr 8, 2012
1 parent 72c76f1 commit 93bccc7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Expand Up @@ -121,3 +121,9 @@
[submodule "vim/bundle/ruby-sinatra"]
path = vim/bundle/ruby-sinatra
url = git://github.com/hallison/vim-ruby-sinatra.git
[submodule "vim/bundle/orgmode"]
path = vim/bundle/orgmode
url = git://github.com/jceb/vim-orgmode.git
[submodule "vim/bundle/speeddating"]
path = vim/bundle/speeddating
url = git://github.com/tpope/vim-speeddating.git
2 changes: 1 addition & 1 deletion vim/bundle/fugitive
Submodule fugitive updated 1 files
+47 −0 plugin/fugitive.vim
1 change: 1 addition & 0 deletions vim/bundle/orgmode
Submodule orgmode added at c2a2e2
2 changes: 1 addition & 1 deletion vim/bundle/rails
Submodule rails updated 1 files
+10 −4 autoload/rails.vim
1 change: 1 addition & 0 deletions vim/bundle/speeddating
Submodule speeddating added at e5995f
23 changes: 15 additions & 8 deletions vimrc
Expand Up @@ -146,12 +146,18 @@ au BufNewFile,BufRead {Rakefile,Vagrantfile,Guardfile,Capfile,Thorfile,Gemfile,p
au BufReadPost fugitive://* set bufhidden=delete
au BufWritePost .vimrc source $MYVIMRC

augroup ft_org
au!
au FileType org normal! zM
au FileType org setlocal formatoptions+=t
augroup END

augroup ft_markdown
au!
au BufNewFile,BufRead *.m*down setlocal filetype=markdown
au Filetype markdown nnoremap <buffer> <localleader>1 yypVr=
au Filetype markdown nnoremap <buffer> <localleader>2 yypVr-
au Filetype markdown nnoremap <buffer> <localleader>3 I### <ESC>
au FileType markdown nnoremap <buffer> <localleader>1 yypVr=
au FileType markdown nnoremap <buffer> <localleader>2 yypVr-
au FileType markdown nnoremap <buffer> <localleader>3 I### <ESC>
augroup END

augroup ft_vim
Expand Down Expand Up @@ -451,11 +457,11 @@ nnoremap <silent> <leader><tab> :ScratchToggle<cr>
" }}}
" Quick editing {{{

nnoremap <silent> <leader>et :e ~/tasks.txt<CR>
nnoremap <silent> <leader>ez :e ~/.zshrc<CR>
nnoremap <silent> <leader>ex :e ~/.tmux.conf<CR>
nnoremap <silent> <leader>es :e ~/.vim/snippets/<CR>
nnoremap <silent> <leader>ev :e $MYVIMRC<CR>
nnoremap <silent> <leader>ez :vsplit ~/.zshrc<CR>
nnoremap <silent> <leader>ex :vsplit ~/.tmux.conf<CR>
nnoremap <silent> <leader>es :vsplit ~/.vim/snippets/<CR>
nnoremap <silent> <leader>eo :vsplit ~/Dropbox/outline.org<CR>
nnoremap <silent> <leader>ev :vsplit $MYVIMRC<CR>
nnoremap <silent> <leader>rv :so $MYVIMRC<CR>
" }}}
Expand Down Expand Up @@ -486,6 +492,7 @@ let g:syntastic_auto_loc_list = 2
let g:syntastic_disabled_filetypes = ['html']
let g:SuperTabDefaultCompletionType = "<c-n>"
let g:SuperTabLongestHighlight = 1
let g:org_plugins = ['ShowHide', '|', 'Navigator', 'EditStructure', '|', 'Todo', 'Date', 'Misc']

if filereadable(expand("~/.vimrc.local"))
source ~/.vimrc.local
Expand Down

0 comments on commit 93bccc7

Please sign in to comment.