From 6f00c3e9b1e5bbc87cefc67f66eb2ee9296b88a3 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 27 Dec 2019 13:56:25 -0800 Subject: [PATCH] Ignore .swp files in nerdtree with vim, add .cap file as ruby --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 555703c..096befb 100644 --- a/vimrc +++ b/vimrc @@ -75,7 +75,7 @@ map ggVGg? " apply rot13 for people snooping over shoulder, good fun " Nerdtree settings let NERDTreeDirArrows=1 -let NERDTreeIgnore = ['\.pyc$'] +let NERDTreeIgnore = ['\.pyc$', '\.swp$'] let g:ale_linters = { \ 'javascript': ['eslint'] @@ -181,6 +181,10 @@ augroup javascript au! BufRead,BufNewFile *.js.flow set filetype=javascript augroup END +augroup ruby + au! BufRead,BufNewFile *.cap set syntax=ruby +augroup END + augroup styl au! BufRead,BufNewFile *.styl set syntax=stylus augroup END