From c1efc0bad65a0588264b474c1f3a6fa6711492fe Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 15 Aug 2022 22:56:56 +0800 Subject: [PATCH] update firenvim conf --- core/plugins.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/plugins.vim b/core/plugins.vim index c575903..7749197 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -371,9 +371,16 @@ if exists('g:started_by_firenvim') && g:started_by_firenvim \ } \ } + function! s:setup_firenvim() abort + set noruler noshowcmd + set laststatus=0 showtabline=0 + endfunction + augroup firenvim autocmd! - autocmd BufEnter *.txt setlocal filetype=markdown laststatus=0 nonumber noshowcmd noruler showtabline=1 + autocmd FileType text call s:setup_firenvim() + autocmd BufNewFile github.com_*.txt set filetype=markdown + autocmd BufNewFile stackoverflow.com_*.txt set filetype=markdown augroup END endif