From b3bce97ba244b76ee64242e38fbf6f2f370676e1 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Tue, 6 Jan 2026 22:07:49 +0300 Subject: [PATCH] [+] 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; --- dotfiles/.vim/online_fxreader_pr34_vim/beta.py | 4 ++-- dotfiles/.vim/online_fxreader_pr34_vim/main.py | 6 +++--- dotfiles/.vimrc | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dotfiles/.vim/online_fxreader_pr34_vim/beta.py b/dotfiles/.vim/online_fxreader_pr34_vim/beta.py index e1caac2..ce18cfa 100644 --- a/dotfiles/.vim/online_fxreader_pr34_vim/beta.py +++ b/dotfiles/.vim/online_fxreader_pr34_vim/beta.py @@ -84,8 +84,8 @@ class FastSelect: r""" augroup {auto_group} autocmd! - autocmd VimLeavePre * python3 online_fxreader_pr34_vim.beta.FastSelect.singleton().close() - autocmd BufEnter * python3 online_fxreader_pr34_vim.beta.FastSelect.singleton().on_buf_enter() + autocmd VimLeavePre * python3 import online_fxreader_pr34_vim.beta; online_fxreader_pr34_vim.beta.FastSelect.singleton().close() + autocmd BufEnter * python3 import online_fxreader_pr34_vim.beta; online_fxreader_pr34_vim.beta.FastSelect.singleton().on_buf_enter() augroup END """.format( auto_group=auto_group, diff --git a/dotfiles/.vim/online_fxreader_pr34_vim/main.py b/dotfiles/.vim/online_fxreader_pr34_vim/main.py index ceaa21a..e3fa583 100644 --- a/dotfiles/.vim/online_fxreader_pr34_vim/main.py +++ b/dotfiles/.vim/online_fxreader_pr34_vim/main.py @@ -166,10 +166,10 @@ class EditorConfigModeline: Vim.run_command(r""" augroup EditorConfigModeline - autocmd! - autocmd BufEnter * python3 import online_fxreader_pr34_vim.main; online_fxreader_pr34_vim.main.EditorConfigModeline.singleton().on_buffer() + autocmd! + autocmd BufEnter * ++nested python3 import online_fxreader_pr34_vim.main; online_fxreader_pr34_vim.main.EditorConfigModeline.singleton().on_buffer() augroup END - """) + """) @classmethod def singleton(cls) -> Self: diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index 194efee..8d05fd1 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -7,7 +7,8 @@ if has('python3') source $HOME/.py3.vimrc endif -filetype plugin indent on +" filetype plugin indent on +filetype plugin off set number set noswapfile