Skip to content

Commit 71d3b55

Browse files
committed
Remove autocmd
1 parent 6f57bae commit 71d3b55

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

plugin/mappings.vim

-11
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,3 @@ execute 'nnoremap <unique> <silent>' s:prefix . '=' ':FormatLines<CR>'
5959
" Format the visually selected region using the formatter associated with the
6060
" current buffer.
6161
execute 'vnoremap <unique> <silent>' s:prefix ':FormatLines<CR>'
62-
63-
function! s:SetFormatExpr() abort
64-
if codefmt#AvailableInCurrrentBuffer()
65-
setlocal formatexpr=codefmt#FormatExpr()
66-
endif
67-
endfunction
68-
69-
augroup codefmt_formatexpr
70-
autocmd!
71-
autocmd BufEnter * call <SID>SetFormatExpr()
72-
augroup END

0 commit comments

Comments
 (0)