Skip to content

Commit

Permalink
adds some plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Nando Sousa committed Mar 30, 2015
1 parent 5cff776 commit a609b20
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dotvim/bundles.vim
Expand Up @@ -28,11 +28,14 @@ NeoBundle 'AutoComplPop' " Autocomplete
NeoBundle 'scrooloose/nerdcommenter'
NeoBundle 'tpope/vim-fugitive' " Git integration
NeoBundle 'scrooloose/syntastic' " Syntax checking on save
NeoBundle 'tpope/vim-dispatch' " Async external commands with output in vim
NeoBundle 'taglist.vim' " Tag list navigation
NeoBundle 'kien/ctrlp.vim'
NeoBundle 'rking/ag.vim'

" Async external commands with output in vim
" https://github.com/tpope/vim-dispatch/issues/9
NeoBundle 'tpope/vim-dispatch', { 'branch' : 'isolate' }

" Ruby
NeoBundle 'tpope/vim-rails'
NeoBundle 'tpope/vim-bundler'
Expand All @@ -42,7 +45,8 @@ NeoBundle 'josemarluedke/vim-rspec'
NeoBundle 'Blackrush/vim-gocode'
NeoBundle 'vim-ruby/vim-ruby'
NeoBundle 'tpope/vim-markdown'

NeoBundle 'digitaltoad/vim-jade'
NeoBundle 't9md/vim-ruby-xmpfilter'

" Colorschemes
NeoBundle 'altercation/vim-colors-solarized'
Expand Down
3 changes: 3 additions & 0 deletions dotvim/ftplugin/jade.vim
@@ -0,0 +1,3 @@
set sw=2
set ts=2
set et
3 changes: 3 additions & 0 deletions dotvim/ftplugin/javascript.vim
@@ -0,0 +1,3 @@
set sw=2
set ts=2
set et
3 changes: 3 additions & 0 deletions dotvim/global.vim
Expand Up @@ -26,4 +26,7 @@ set list
" Do not create swap files
set noswapfile

" Copy support
set clipboard=unnamed

source ~/.vim/plugins.vim
19 changes: 19 additions & 0 deletions dotvim/plugins.vim
Expand Up @@ -25,7 +25,9 @@ vnoremap > >gv
set grepprg=ag
let g:grep_cmd_opts = '--line-numbers --noheading'

" Tlist
let Tlist_Show_Menu=1
let Tlist_Highlight_Tag_On_BufEnter = 1
nmap <leader>t :TlistToggle<CR>
let g:ctrlp_map = '<leader>,'
Expand Down Expand Up @@ -72,3 +74,20 @@ autocmd FileType haml let b:switch_definitions =
\ g:switch_builtins.true_false,
\ g:switch_builtins.true_false,
\ ]


"XMP Filter
let g:xmpfilter_cmd = "seeing_is_believing"

autocmd FileType ruby nmap <leader>E <Plug>(seeing_is_believing-mark)
autocmd FileType ruby xmap <leader>E <Plug>(seeing_is_believing-mark)
autocmd FileType ruby imap <leader>E<Plug>(seeing_is_believing-mark)
autocmd FileType ruby nmap <leader>c <Plug>(seeing_is_believing-clean)
autocmd FileType ruby xmap <leader>c <Plug>(seeing_is_believing-clean)
autocmd FileType ruby imap <leader>c <Plug>(seeing_is_believing-clean)
" auto insert mark at appropriate spot.
autocmd FileType ruby nmap <leader>e <Plug>(seeing_is_believing-run)
autocmd FileType ruby xmap <leader>e <Plug>(seeing_is_believing-run)
autocmd FileType ruby imap <leader>e <Plug>(seeing_is_believing-run)

0 comments on commit a609b20

Please sign in to comment.