add .vimrc and update postinstall.sh
This commit is contained in:
parent
846dec538f
commit
90e0b47e02
|
@ -0,0 +1,30 @@
|
|||
syntax on
|
||||
set nu
|
||||
set showmatch
|
||||
set ts=4
|
||||
set softtabstop=4
|
||||
syntax enable
|
||||
syntax on
|
||||
set cursorline
|
||||
|
||||
if &term=="xterm"
|
||||
set t_Co=8
|
||||
set t_Sb=^[[4%dm
|
||||
set t_Sf=^[[3%dm
|
||||
endif
|
||||
|
||||
"indent based on file type
|
||||
filetype indent plugin on
|
||||
filetype on
|
||||
|
||||
set autoindent
|
||||
set smartindent
|
||||
set ruler
|
||||
|
||||
"show command in bottom
|
||||
set showcmd
|
||||
|
||||
set shiftwidth=4
|
||||
set hlsearch
|
||||
set encoding=utf-8
|
||||
set fileencodings=ucs-bom,utf-8,cp936
|
|
@ -17,6 +17,7 @@ function conf-local()
|
|||
cp ${ABSPATH}/.rc/.zshrc ~
|
||||
cp ${ABSPATH}/.rc/.bashrc ~
|
||||
cp ${ABSPATH}/.rc/.bash_aliases ~
|
||||
cp ${ABSPATH}/.rc/.vimrc ~
|
||||
}
|
||||
|
||||
function collect()
|
||||
|
@ -24,6 +25,7 @@ function collect()
|
|||
cp ~/.zshrc ${ABSPATH}/.rc/
|
||||
cp ~/.bashrc ${ABSPATH}/.rc/
|
||||
cp ~/.bash_aliases ${ABSPATH}/.rc/
|
||||
cp ~/.vimrc ${ABSPATH}/.rc/
|
||||
}
|
||||
|
||||
function __main__()
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
sudo apt-get install -y \
|
||||
git vim emacs fcitx scrot cmake g++ gcc chromium-browser \
|
||||
zsh lftp gnome gnome-shell evince w3m kmplayer xclip \
|
||||
python virtualbox nmon iconv
|
||||
python virtualbox nmon iconv make ghostscript
|
||||
|
||||
# sudo apt-get install -y texlive-full
|
||||
# sudo apt-get install -y clisp
|
||||
|
|
|
@ -16,6 +16,26 @@ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
|||
cp ${VAGRANTPATH}/sources.list /etc/apt/
|
||||
sudo apt-get update
|
||||
|
||||
# install some necessary sowftware
|
||||
# copy files
|
||||
cp -r ${VAGRANTPATH}/sw ~
|
||||
|
||||
echo "-----------------------------------"
|
||||
echo "install some necessary software."
|
||||
sudo apt-get install -y \
|
||||
emacs zsh vim
|
||||
emacs zsh vim g++ build-essential \
|
||||
make git ghostscript
|
||||
|
||||
echo "-----------------------------------"
|
||||
echo "configure this virtual machine"
|
||||
mkdir ~/github/
|
||||
cd ~/github/
|
||||
git clone https://github.com/aborn/configure.git
|
||||
chmod u+x ~/github/configure/configure
|
||||
~/github/configure/configure
|
||||
|
||||
echo "-----------------------------------"
|
||||
echo "configure emacs."
|
||||
git clone https://github.com/aborn/emacs.lite.git
|
||||
chmod u+x ~/github/emacs.lite/sh/configure
|
||||
~/github/emacs.lite/sh/configure
|
||||
|
||||
|
|
Loading…
Reference in New Issue