From fc3005c81f57dd8da4c15e949da45dd61cc97f2d Mon Sep 17 00:00:00 2001 From: zhenyangze Date: Fri, 5 May 2023 22:37:34 +0800 Subject: [PATCH] change keymap --- layers/common/base.vim | 10 +-- layers/common/edit-code.vim | 7 ++ layers/common/terminal-asyncrun.vim | 36 +++++------ layers/common/tool-ai.vim | 1 + layers/common/tool-functions.vim | 17 +---- layers/common/tool-fzf.vim | 99 ----------------------------- layers/common/tool-ui.vim | 3 + layers/user/init.vim | 2 +- layers/user/keymap.vim | 1 - layers/user/quickmap.vim | 5 +- 10 files changed, 35 insertions(+), 146 deletions(-) create mode 100644 layers/common/edit-code.vim create mode 100644 layers/common/tool-ai.vim create mode 100644 layers/common/tool-ui.vim diff --git a/layers/common/base.vim b/layers/common/base.vim index 6d73cae..4638222 100644 --- a/layers/common/base.vim +++ b/layers/common/base.vim @@ -111,14 +111,10 @@ set splitright set splitbelow " autocmd -autocmd FileType python set tabstop=4 shiftwidth=4 expandtab ai -autocmd FileType php set tabstop=4 shiftwidth=4 expandtab ai -autocmd FileType html set tabstop=4 shiftwidth=4 expandtab ai -autocmd FileType blade set tabstop=4 shiftwidth=4 expandtab ai -autocmd FileType ruby set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai -autocmd FileType vue set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai -autocmd FileType javascript set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai +autocmd FileType python,php,html,blade set tabstop=4 shiftwidth=4 expandtab ai +autocmd FileType ruby,vue,javascript set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai autocmd Filetype gitcommit setlocal spell textwidth=80 + "autocmd FileType php setlocal noeol binary fileformat=dos "autocmd BufRead,BufNew *.md,*.mkd,*.markdown set filetype=markdown.mkd " vimrc文件修改之后自动加载, windows diff --git a/layers/common/edit-code.vim b/layers/common/edit-code.vim new file mode 100644 index 0000000..0f377d6 --- /dev/null +++ b/layers/common/edit-code.vim @@ -0,0 +1,7 @@ +Plug 'Exafunction/codeium.vim' + +let g:codeium_disable_bindings = 1 +imap