From 8bb321f8b032dfaeffbe3d1b8dfeb215c12d3642 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 18 Jul 2022 07:45:58 +0100 Subject: First public release --- micro-vim/ftplugin/micro.vim | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 micro-vim/ftplugin/micro.vim (limited to 'micro-vim/ftplugin') diff --git a/micro-vim/ftplugin/micro.vim b/micro-vim/ftplugin/micro.vim new file mode 100644 index 0000000..ea3ce5a --- /dev/null +++ b/micro-vim/ftplugin/micro.vim @@ -0,0 +1,26 @@ + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:save_cpo = &cpo +set cpo-=C + +setlocal suffixesadd+=.micro,.cro +setlocal comments=b://,fb:- +setlocal commentstring=//\ %s + +setlocal smartindent cindent + +setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab + +" run make editing a micro file and it will be parsed for errors +setlocal makeprg=micro\ -parse\ % +setlocal errorformat=%f:%l\ col\ %c\ %trror:\ %m + +let b:undo_ftplugin="setl com<" + +let &cpo = s:save_cpo +unlet s:save_cpo + -- cgit v1.2.3