Compare commits

..

5 Commits

Author SHA1 Message Date
a7e82cc162 update 2024-06-02 11:21:56 +08:00
1a31226c6d update 2024-06-02 09:35:59 +08:00
6509c7cbf0 update 2024-06-01 22:45:20 +08:00
aa9c5099d3 update 2024-06-01 22:42:16 +08:00
f8e9308ced update 2024-06-01 22:39:15 +08:00
2 changed files with 36 additions and 2 deletions

25
.vimrc
View File

@@ -1 +1,26 @@
set nu set nu
call plug#begin()
" Declare the list of plugins.
"
Plug 'tpope/vim-sensible'
" Plug 'Valloric/YouCompleteMe'
Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' " Status line"
Plug 'majutsushi/tagbar' " Tag bar"
Plug 'jiangmiao/auto-pairs'
" list ends here.
call plug#end()

View File

@@ -1,5 +1,14 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#=============================================================================
# install.sh --- bootstrap script for vim
# Copyright (c) 2024-2024 Wenwen Zhang & Contributors
# Author: Wenwen Zhang < zhangwenwen1000@gmail.com >
# URL:
# License: GPLv3
#=============================================================================
echo "Vim Configuration Installation Script is Running ..." echo "Vim Configuration Installation Script is Running ..."
# 切换到用户根目录 # 切换到用户根目录
@@ -15,13 +24,13 @@ echo "Backup .vimrc/.vim to .vimrc/.vim_Back_$TIMESTAMP"
if [ -e "$CONFIG_FILE" ]; then if [ -f "$CONFIG_FILE" ]; then
mv "$CONFIG_FILE" "$CONFIG_FILE"_BACKUP_"$TIMESTAMP" mv "$CONFIG_FILE" "$CONFIG_FILE"_BACKUP_"$TIMESTAMP"
else else
echo "$CONFIG_FILE" " is not existing..." echo "$CONFIG_FILE" " is not existing..."
fi fi
if [ -f "$VIM_CONFIG_DIR" ]; then if [ -d "$VIM_CONFIG_DIR" ]; then
mv "$VIM_CONFIG_DIR" "$VIM_CONFIG_DIR"_BACKUP_"$TIMESTAMP" mv "$VIM_CONFIG_DIR" "$VIM_CONFIG_DIR"_BACKUP_"$TIMESTAMP"
else else
echo "$VIM_CONFIG_DIR" " is not existing" echo "$VIM_CONFIG_DIR" " is not existing"