Compare commits
5 Commits
40cbe6c345
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a7e82cc162 | |||
| 1a31226c6d | |||
| 6509c7cbf0 | |||
| aa9c5099d3 | |||
| f8e9308ced |
25
.vimrc
25
.vimrc
@@ -1 +1,26 @@
|
||||
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()
|
||||
|
||||
13
install.sh
13
install.sh
@@ -1,5 +1,14 @@
|
||||
#!/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 ..."
|
||||
|
||||
# 切换到用户根目录
|
||||
@@ -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"
|
||||
else
|
||||
echo "$CONFIG_FILE" " is not existing..."
|
||||
fi
|
||||
|
||||
if [ -f "$VIM_CONFIG_DIR" ]; then
|
||||
if [ -d "$VIM_CONFIG_DIR" ]; then
|
||||
mv "$VIM_CONFIG_DIR" "$VIM_CONFIG_DIR"_BACKUP_"$TIMESTAMP"
|
||||
else
|
||||
echo "$VIM_CONFIG_DIR" " is not existing"
|
||||
|
||||
Reference in New Issue
Block a user