From 6d6215be3da96bc1d08282a0a527abc9d9b1debd Mon Sep 17 00:00:00 2001 From: 201341 <1186093704@qq.com> Date: Thu, 21 Oct 2021 15:38:43 +0800 Subject: [PATCH] Delete JavaScript, typescript config Signed-off-by: 201341 <1186093704@qq.com> --- vimrcs/filetypes.vim | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/vimrcs/filetypes.vim b/vimrcs/filetypes.vim index 19c6a4e3..5386023e 100644 --- a/vimrcs/filetypes.vim +++ b/vimrcs/filetypes.vim @@ -18,44 +18,6 @@ au FileType python map 2 /def au FileType python map C ?class au FileType python map D ?def - -"""""""""""""""""""""""""""""" -" => JavaScript section -""""""""""""""""""""""""""""""" -au FileType javascript call JavaScriptFold() -au FileType javascript setl fen -au FileType javascript setl nocindent - -au FileType javascript,typescript imap console.log();hi -au FileType javascript,typescript imap alert();hi - -au FileType javascript,typescript inoremap $r return -au FileType javascript,typescript inoremap $f // --- PHFP2xi - -function! JavaScriptFold() - setl foldmethod=syntax - setl foldlevelstart=1 - syn region foldBraces start=/{/ end=/}/ transparent fold keepend extend - - function! FoldText() - return substitute(getline(v:foldstart), '{.*', '{...}', '') - endfunction - setl foldtext=FoldText() -endfunction - - -"""""""""""""""""""""""""""""" -" => CoffeeScript section -""""""""""""""""""""""""""""""" -function! CoffeeScriptFold() - setl foldmethod=indent - setl foldlevelstart=1 -endfunction -au FileType coffee call CoffeeScriptFold() - -au FileType gitcommit call setpos('.', [0, 1, 1, 0]) - - """""""""""""""""""""""""""""" " => Shell section """"""""""""""""""""""""""""""