diff --git a/.vimrc b/.vimrc index 0341e8f..f20e3ae 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,9 @@ +"Not compatible with vi, which causes problems +set nocompatible +filetype on +filetype plugin on +filetype indent on +"Plugins in ~/.vim/plugged call plug#begin() Plug 'jiangmiao/auto-pairs' Plug 'pangloss/vim-javascript', { 'for': 'javascript' } @@ -17,6 +23,7 @@ call plug#begin() Plug 'ap/vim-buftabline' Plug 'dracula/vim' Plug 'fatih/vim-go', { 'for': 'go' } + Plug 'kien/rainbow_parentheses.vim', { 'for': 'clojure' } call plug#end() colorscheme dracula set bg=dark @@ -35,3 +42,8 @@ nmap :NERDTreeToggle inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" +if filetype?=="clojure" + call RainbowParenthesesToggle + call RainbowParenthesesLoadRound + call RainbowParenthesesLoadSquare +endif