[+] 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:
parent
ad7c176f6f
commit
b3bce97ba2
@ -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,
|
||||||
|
|||||||
@ -166,10 +166,10 @@ 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
|
||||||
""")
|
""")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def singleton(cls) -> Self:
|
def singleton(cls) -> Self:
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user