diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-03 22:21:25 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 00:23:03 +0300 |
| commit | 2eae5db069dc171f74cd863487655f6a88e5384d (patch) | |
| tree | 2d9d05e09978a2a44acbfbb8d651f240df3ca052 /uvim/runtime/ftplugin/mojo.vim | |
| parent | 473d922faed49241a5d29d9e37dc4819cd512006 (diff) | |
| download | Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.tar.gz Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.zip | |
NOISSUE rebrand vim to MNV's not Vim
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'uvim/runtime/ftplugin/mojo.vim')
| -rw-r--r-- | uvim/runtime/ftplugin/mojo.vim | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/uvim/runtime/ftplugin/mojo.vim b/uvim/runtime/ftplugin/mojo.vim deleted file mode 100644 index c7f3b6b41e..0000000000 --- a/uvim/runtime/ftplugin/mojo.vim +++ /dev/null @@ -1,48 +0,0 @@ -" Vim filetype plugin -" Language: Mojo -" Maintainer: Riley Bruins <ribru17@gmail.com> -" Last Change: 2024 Jul 07 -" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121) - -if exists('b:did_ftplugin') - finish -endif -let b:did_ftplugin = 1 - -let s:cpo_save = &cpo -set cpo&vim - -setlocal include=^\\s*\\(from\\\|import\\) -setlocal define=^\\s*\\(\\(async\\s\\+\\)\\?def\\\|class\\) - -" For imports with leading .., append / and replace additional .s with ../ -let b:grandparent_match = '^\(.\.\)\(\.*\)' -let b:grandparent_sub = '\=submatch(1)."/".repeat("../",strlen(submatch(2)))' - -" For imports with a single leading ., replace it with ./ -let b:parent_match = '^\.\(\.\)\@!' -let b:parent_sub = './' - -" Replace any . sandwiched between word characters with / -let b:child_match = '\(\w\)\.\(\w\)' -let b:child_sub = '\1/\2' - -setlocal includeexpr=substitute(substitute(substitute( - \v:fname, - \b:grandparent_match,b:grandparent_sub,''), - \b:parent_match,b:parent_sub,''), - \b:child_match,b:child_sub,'g') - -setlocal suffixesadd=.mojo -setlocal comments=b:#,fb:- -setlocal commentstring=#\ %s - -let b:undo_ftplugin = 'setlocal include<' - \ . '|setlocal define<' - \ . '|setlocal includeexpr<' - \ . '|setlocal suffixesadd<' - \ . '|setlocal comments<' - \ . '|setlocal commentstring<' - -let &cpo = s:cpo_save -unlet s:cpo_save |
