From 11ddd3a39b58b1a1d08fb1d6a8d059fe5d98e625 Mon Sep 17 00:00:00 2001 From: Rawley Date: Mon, 21 Mar 2022 15:41:33 +0000 Subject: [PATCH] Update .vimrc --- Vim/.vimrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Vim/.vimrc b/Vim/.vimrc index 94327fb..a1c6c59 100644 --- a/Vim/.vimrc +++ b/Vim/.vimrc @@ -37,7 +37,7 @@ 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. +"switch inefficiency nmap :bp nmap :bn nmap :Bclose @@ -51,8 +51,9 @@ inoremap pumvisible() ? "\" : "\" 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") +au FileType clojure,lisp,lsp,cl,l,el,elc,eln call rainbow#load() +"Toggle on rainbow parens by default if the following file type is detected +let fts=['clojure', 'lisp', 'lsp', 'cl', 'el', 'eln', 'l', 'elc'] +if index(fts, &filetype) != -1 :RainbowToggle endif