From f29854f80894b52bc72b42c6aa7113ce203bb6cf Mon Sep 17 00:00:00 2001 From: Rawley Date: Mon, 21 Mar 2022 15:28:49 +0000 Subject: [PATCH] Update .vimrc --- Vim/.vimrc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Vim/.vimrc b/Vim/.vimrc index 69021e4..94327fb 100644 --- a/Vim/.vimrc +++ b/Vim/.vimrc @@ -1,5 +1,6 @@ "Not compatible with vi, which causes problems set nocompatible +"Get filetype filetype on filetype plugin on filetype indent on @@ -23,10 +24,10 @@ call plug#begin() Plug 'ap/vim-buftabline' Plug 'dracula/vim' Plug 'fatih/vim-go', { 'for': 'go' } - Plug 'kien/rainbow_parentheses.vim', { 'for': 'clojure' } + Plug 'frazrepo/vim-rainbow' call plug#end() +"Dracula > All colorscheme dracula -set bg=dark syntax on set ai set number @@ -35,10 +36,23 @@ set sw=2 set t_Co=256 set background=dark set nowrap +"Buffer movement, going to go to harpoon soon to try to get away from buffer +"switch inefficiency. nmap :bp nmap :bn nmap :Bclose +"Nerd tree nmap :NERDTreeToggle +"COC auto complete inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" +"For writing blog posts +autocmd BufNewFile,BufRead *.html,*.txt,*.blog set spell +autocmd BufNewFile,BufRead *.html,*.txt,*.blog set wrap +"Load only on Lisp, Clojure, or Emacs Lisp files for rainbow parens +au FileType clj,lisp,lsp,cl,l,el,elc,eln call rainbow#load() +"Toggle on by default +if (&ft=="clj") || (&ft=="lisp") || (&ft=="lsp") || (&ft=="el") || (&ft=="eln") || (&ft=="l") || (&ft=="cl") || (&ft=="elc") + :RainbowToggle +endif