From fede19a0982e4b5904fa7b77c66d7987cfe130ad Mon Sep 17 00:00:00 2001 From: Jue Wang Date: Mon, 17 Jan 2022 14:06:26 +0800 Subject: [PATCH] add Plug vim-indentLine --- .gitignore | 1 + .myvimrc | 18 +++++++++--------- autoload/plug.vim | 4 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fcd9821 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/plugged/* diff --git a/.myvimrc b/.myvimrc index ef79129..ed1bb6f 100644 --- a/.myvimrc +++ b/.myvimrc @@ -24,21 +24,20 @@ set encoding=utf-8 set guifont=Consolas:h10 set clipboard=unnamed +noremap q :q +noremap w :w +noremap :q! +noremap K 5k +noremap J 5j +noremap H 5h +noremap L 5l + " ===screen split noremap sk :set nosplitbelow:split noremap sj :set splitbelow:split noremap sh :set nosplitright:vsplit noremap sl :set splitright:vsplit -noremap q :q -noremap w :w -noremap :q! - -noremap K 5k -noremap J 5j -noremap H 5h -noremap L 5l - map k map j map h @@ -68,6 +67,7 @@ Plug 'preservim/nerdtree' Plug 'gcmt/wildfire.vim' Plug 'tpope/vim-surround' Plug 'mg979/vim-visual-multi' +Plug 'Yggdroot/indentLine' call plug#end() diff --git a/autoload/plug.vim b/autoload/plug.vim index 2b89b5a..42d43d8 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -769,7 +769,7 @@ function! s:infer_properties(name, repo) if repo !~ '/' throw printf('Invalid argument: %s (implicit `vim-scripts'' expansion is deprecated)', repo) endif - let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git') + let fmt = get(g:, 'plug_url_format', 'https://git::@hub.fastgit.org/%s.git') let uri = printf(fmt, repo) endif return { 'dir': s:dirpath(g:plug_home.'/'.a:name), 'uri': uri } @@ -1165,7 +1165,7 @@ function! s:update_impl(pull, force, args) abort let $GIT_TERMINAL_PROMPT = 0 for plug in values(todo) let plug.uri = substitute(plug.uri, - \ '^https://git::@github\.com', 'https://github.com', '') + \ '^https://git::@hub.fastgit\.org', 'https://hub.fastgit.org', '') endfor endif