From 5a7d6e7e2de94d7f1d548b4869b6e09135270ff9 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 21 Feb 2012 05:33:17 +0800 Subject: [PATCH 1/8] Add .inputrc --- .inputrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .inputrc 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 From 40520ba19112cbfb164655c569cf81f6228193b6 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 21 Feb 2012 05:34:06 +0800 Subject: [PATCH 2/8] Install inputrc --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 9eb915a..9436041 100755 --- a/install.sh +++ b/install.sh @@ -5,6 +5,9 @@ BASEDIR=`dirname $0` # submodule init git submodule update --init +# +cp ${BASEDIR}/.inputrc ~/ + # vim cp ${BASEDIR}/.vimrc ~/.vimrc mkdir -p ~/.vim From c2a0ac35fdd6d0819313ec78f24aa73984c4df28 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 21 Feb 2012 05:34:13 +0800 Subject: [PATCH 3/8] style --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9436041..7652fcc 100755 --- a/install.sh +++ b/install.sh @@ -9,6 +9,6 @@ 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/ From ed95c6df5aadc6505143329a2f4db4dc98a533b2 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 23 Feb 2012 14:37:02 +0800 Subject: [PATCH 4/8] Add .sh template and update .vimrc --- .vim/template/production.sh | 1 + .vimrc | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .vim/template/production.sh diff --git a/.vim/template/production.sh b/.vim/template/production.sh new file mode 100644 index 0000000..1a24852 --- /dev/null +++ b/.vim/template/production.sh @@ -0,0 +1 @@ +#!/bin/sh diff --git a/.vimrc b/.vimrc index f03d155..d54831c 100644 --- a/.vimrc +++ b/.vimrc @@ -48,6 +48,10 @@ function LoadPerlTemplate() 0r ~/.vim/template/production.pl normal Gdd endfunction +function LoadShellTemplate() + 0r ~/.vim/template/production.sh + normal Gdd +endfunction autocmd BufNewFile *.html call LoadHTMLTemplate() autocmd BufNewFile *.pl call LoadPerlTemplate() From 0e7f7b6ac1743771cb256f53e04591c2eab4253d Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 23 Feb 2012 14:38:20 +0800 Subject: [PATCH 5/8] Add missing settings for shell template --- .vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc b/.vimrc index d54831c..4715477 100644 --- a/.vimrc +++ b/.vimrc @@ -56,6 +56,7 @@ endfunction autocmd BufNewFile *.html call LoadHTMLTemplate() autocmd BufNewFile *.pl call LoadPerlTemplate() autocmd BufNewFile *.php call LoadPHPTemplate() +autocmd BufNewFile *.sh call LoadShellTemplate() " " other au BufNewFile,BufRead *.psgi setf perl From e174f375d964a5de3113b9465e94e0bedfaae94e Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Fri, 23 Mar 2012 11:04:22 +0800 Subject: [PATCH 6/8] Remove anonymous function template (php) --- .vim/template/production.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.vim/template/production.php b/.vim/template/production.php index 675fbb4..b3d9bbc 100644 --- a/.vim/template/production.php +++ b/.vim/template/production.php @@ -1,5 +1 @@ Date: Fri, 6 Apr 2012 11:34:22 +0800 Subject: [PATCH 7/8] Update template to jQuery 1.7.2 --- .vim/template/production.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/template/production.html b/.vim/template/production.html index 298d71e..9957bcb 100644 --- a/.vim/template/production.html +++ b/.vim/template/production.html @@ -10,7 +10,7 @@ - + From 2916fccc93117d97e53e099530507070e702445d Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 16 Apr 2012 18:21:25 +0800 Subject: [PATCH 8/8] Mark *.mk as noexpandtab --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 4715477..4b30345 100644 --- a/.vimrc +++ b/.vimrc @@ -59,8 +59,9 @@ autocmd BufNewFile *.php call LoadPHPTemplate() autocmd BufNewFile *.sh call LoadShellTemplate() " " 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 "