diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..d06e580 --- /dev/null +++ b/.inputrc @@ -0,0 +1,3 @@ +# +"\e[A":history-search-backward +"\e[B":history-search-forward diff --git a/.vim/template/production.html b/.vim/template/production.html new file mode 100644 index 0000000..9957bcb --- /dev/null +++ b/.vim/template/production.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + diff --git a/.vim/template/production.php b/.vim/template/production.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/.vim/template/production.php @@ -0,0 +1 @@ +[Z W nmap w " " other -au BufNewFile,BufRead *.psgi setf perl +au BufNewFile,BufRead *.mk set noexpandtab au BufNewFile,BufRead *.json setf json +au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif " diff --git a/install.sh b/install.sh index 9eb915a..7652fcc 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,10 @@ BASEDIR=`dirname $0` # submodule init git submodule update --init +# +cp ${BASEDIR}/.inputrc ~/ + # vim -cp ${BASEDIR}/.vimrc ~/.vimrc -mkdir -p ~/.vim +cp ${BASEDIR}/.vimrc ~/ +mkdir -p ~/.vim/ rsync -a ${BASEDIR}/.vim/ ~/.vim/