Skip to content

Commit

Permalink
Plugin delimitMate
Browse files Browse the repository at this point in the history
Finally, we've made Vim smart enough to insert matching delimiters, like
quotes, parentheses, and curly braces, automatically!
  • Loading branch information
jez committed Nov 12, 2016
1 parent 7fc1cab commit e69a4fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Plugin 'vim-scripts/a.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-fugitive'

" ----- Other text editing features -----------------------------------
Plugin 'Raimondi/delimitMate'

call vundle#end()

filetype plugin indent on
Expand Down Expand Up @@ -119,3 +122,14 @@ nmap <silent> <leader>b :TagbarToggle<CR>
let g:airline#extensions#hunks#non_zero_only = 1


" ----- Raimondi/delimitMate settings -----
let delimitMate_expand_cr = 1
augroup mydelimitMate
au!
au FileType markdown let b:delimitMate_nesting_quotes = ["`"]
au FileType tex let b:delimitMate_quotes = ""
au FileType tex let b:delimitMate_matchpairs = "(:),[:],{:},`:'"
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
augroup END


1 comment on commit e69a4fb

@jez
Copy link
Owner Author

@jez jez commented on e69a4fb Nov 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.