[+] update vim settings

1. disable filetype plugin;
  2. add import into beta.py augroup;
  3. add ++nested for BufEnter,
    but at the end, just disable filetype
    plugin;
    since can't figure out the way
    to override its effect;
This commit is contained in:
Siarhei Siniak 2026-01-06 22:07:49 +03:00
parent ad7c176f6f
commit b3bce97ba2
3 changed files with 7 additions and 6 deletions

@ -84,8 +84,8 @@ class FastSelect:
r""" r"""
augroup {auto_group} augroup {auto_group}
autocmd! autocmd!
autocmd VimLeavePre * python3 online_fxreader_pr34_vim.beta.FastSelect.singleton().close() autocmd VimLeavePre * python3 import online_fxreader_pr34_vim.beta; online_fxreader_pr34_vim.beta.FastSelect.singleton().close()
autocmd BufEnter * python3 online_fxreader_pr34_vim.beta.FastSelect.singleton().on_buf_enter() autocmd BufEnter * python3 import online_fxreader_pr34_vim.beta; online_fxreader_pr34_vim.beta.FastSelect.singleton().on_buf_enter()
augroup END augroup END
""".format( """.format(
auto_group=auto_group, auto_group=auto_group,

@ -167,7 +167,7 @@ class EditorConfigModeline:
Vim.run_command(r""" Vim.run_command(r"""
augroup EditorConfigModeline augroup EditorConfigModeline
autocmd! autocmd!
autocmd BufEnter * python3 import online_fxreader_pr34_vim.main; online_fxreader_pr34_vim.main.EditorConfigModeline.singleton().on_buffer() autocmd BufEnter * ++nested python3 import online_fxreader_pr34_vim.main; online_fxreader_pr34_vim.main.EditorConfigModeline.singleton().on_buffer()
augroup END augroup END
""") """)

@ -7,7 +7,8 @@ if has('python3')
source $HOME/.py3.vimrc source $HOME/.py3.vimrc
endif endif
filetype plugin indent on " filetype plugin indent on
filetype plugin off
set number set number
set noswapfile set noswapfile