diff --git a/atom.xml b/atom.xml index 381427e2..e352138e 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ @@ -13,6 +13,174 @@ Octopress + + <![CDATA[rails开发用 vimfiles 配置]]> + + 2012-07-05T09:41:00+08:00 + http://wongyouth.github.com/blog/2012/07/05/rails-development-oriented-vimfiles + 看到很多朋友在烦编辑器的事,就像自己刚开始的时候一样。 我还是选择了vim, 就是喜欢他可以配置到自己喜欢的样子, 不知道你喜欢不喜欢我的配置,但是如果你着急上手,试试我的。

+ + + + +

虽然只在ubuntu测试过,但是应该在别的系统下也可以用

+ +

特点

+ +
    +
  • 单条命令完成安装,免除配置痛苦
  • +
  • vim插件不包含在repo里,支持一个命令更新所有vimplugins,免除更新插件之苦
  • +
+ + +

包含插件

+ +
    +
  • vundle, vim插件管理器, :BundleInstall! 更新所有插件
  • +
  • rails 必须的
  • +
  • NERDTree 树形文件管理器 F7 / F6 当前文件文件夹
  • +
  • NERDComment 注释用\cc / \c<space>
  • +
  • delimitMate 自动补全右括号
  • +
  • zencoding HTML垒码利器 <c-y>,
  • +
  • tabular 代码美化。 按 = 等对齐 \a=, 按 => 对齐 \a>
  • +
  • taglist 标签列表 F8
  • +
  • ctrlp 文件查找 <c-p>
  • +
  • bufExplorer 缓冲列表 <c-b>
  • +
  • preview markdown文件编译结果查看 \P
  • +
  • fugitive 超强大GIT代码仓库查询工具 + +
      +
    • 查状态 :Gstatus
    • +
    • 查异同 :Gdiff
    • +
    • 搜pattern :Ggrep, 替代ack
    • +
    • 查log :Glog
    • +
    • 打开Github上该文件 :Gbrowse
    • +
    • 说不完…
    • +
    +
  • +
  • snippets
  • +
  • 语法支持 + +
      +
    • less
    • +
    • markdown
    • +
    • sass, scss
    • +
    • coffee-script
    • +
    • css 文件中颜色color, background-color 自动显示为背景色 (需gvim)
    • +
    +
  • +
  • 配色方案 + +
      +
    • solarized
    • +
    • vim-github-colorscheme
    • +
    • backboard
    • +
    +
  • +
+ + +

vimrc DIY

+ +
    +
  • 当前行,列高亮
  • +
  • F3 搜索, alt-F3 替换 文件中所有当前光标下文字
  • +
  • F4 插入模式时 切换粘帖模式, 普通模式时 切换 行号
  • +
+ + +

你觉得还少了什么?

+ +

最后vim英文帮助看着吃力的话你可以下载VIM的中文说明,那就完美了 +vim中文帮助

+ +

Screenshots

+ +

vim-gui

+ +

repo 在这里 https://github.com/wongyouth/vimfiles

+]]>
+
+ + + <![CDATA[在rails中使用mongoid]]> + + 2012-06-30T12:54:00+08:00 + http://wongyouth.github.com/blog/2012/06/30/use-mongoid-with-rails + 在我看来noSQL解决方案有一个最大的优点就是可以方便的scale out, Oracle等大型数据库也可以支持Grid,支持集群但是就是配置起来的繁琐而已,可以写一本厚厚的书啦。而今天要使用的mongodb只是简单的一个配置文件就能搞定,简单易用容易让人理解,只就是生产力的极大提升啊。

+ + + + +

Mongodb可使用的ruby adapter 常用的有Mongoid, Mongo Ruby Driver, Mongo mapper, 在这里不比较两者的异同,我们简单的用现在人气高的一个mongoid。人气值可以在看这里

+ +

Step 1: Install Mongodb 2.0

+ +

目前Ubuntu官方库里的mongodb还没有升级到2.0版,我们用mongodb官方提供步骤来安装。

+ +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+
# 添加mongodb公司10gen的pgp键
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
+
+# 增加源到apt
+sudo sh -c "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/10gen.list"
+
+# 更新源
+sudo apt-get update
+
+# 安装mongodb
+sudo apt-get install mongodb-10gen
+
+# 启动mongodb
+sudo service mongodb start
+
+# test mongo client
+mongo
+
+# db.test.save( {a: 1} )
+# db.test.find()
+
+ + +

Step 2: Setup Gemfile to install mongoid

+ +

在Gemfile中添加mongoid

+ +
gem 'mongoid', '~> 3.0.0.rc'
+
+ +

执行

+ +
bundle install
+
+ +

这样就可以使用了。在[railscasts][]中有mongoid的使用视频,我就不接着举例了。 +虽然现在mongoid升级到了3.0rc,有些东西会有变化,但是大的变化不会太大。

+ +

mongoid的确是好东西,但是rails社区之前的插件基本都是为mysql特质的,所以很多好插件在mongoid下还不能用, +这个还需要社区在进一步的发展才能达到,重复造轮子代价太大,我们做迁移之前还是要考虑好这个现实问题的。

+]]>
+
+ <![CDATA[Ubuntu环境下在Rails项目中使用postgresql时的初始配置]]> diff --git a/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/index.html b/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/index.html index 6358a334..74ce40d5 100644 --- a/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/index.html +++ b/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/index.html @@ -294,30 +294,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/04/21/install-ruby-environment-on-ubuntu/index.html b/blog/2012/04/21/install-ruby-environment-on-ubuntu/index.html index 25e0fbed..1438ddec 100644 --- a/blog/2012/04/21/install-ruby-environment-on-ubuntu/index.html +++ b/blog/2012/04/21/install-ruby-environment-on-ubuntu/index.html @@ -285,30 +285,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/04/26/git-branch/index.html b/blog/2012/04/26/git-branch/index.html index 5e9e8d32..89482c24 100644 --- a/blog/2012/04/26/git-branch/index.html +++ b/blog/2012/04/26/git-branch/index.html @@ -245,30 +245,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/04/26/git-tagging/index.html b/blog/2012/04/26/git-tagging/index.html index 8cb6f597..eae4464a 100644 --- a/blog/2012/04/26/git-tagging/index.html +++ b/blog/2012/04/26/git-tagging/index.html @@ -286,30 +286,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/06/18/tmall-za-jin-dan/index.html b/blog/2012/06/18/tmall-za-jin-dan/index.html index 6acc068f..c8016097 100644 --- a/blog/2012/06/18/tmall-za-jin-dan/index.html +++ b/blog/2012/06/18/tmall-za-jin-dan/index.html @@ -335,30 +335,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/06/20/setup-new-ubuntu-environment/index.html b/blog/2012/06/20/setup-new-ubuntu-environment/index.html index be81fe89..e48fe5e1 100644 --- a/blog/2012/06/20/setup-new-ubuntu-environment/index.html +++ b/blog/2012/06/20/setup-new-ubuntu-environment/index.html @@ -285,30 +285,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/06/25/use-postgresql-with-rails/index.html b/blog/2012/06/25/use-postgresql-with-rails/index.html index 7ff97cce..f7ed5097 100644 --- a/blog/2012/06/25/use-postgresql-with-rails/index.html +++ b/blog/2012/06/25/use-postgresql-with-rails/index.html @@ -237,6 +237,8 @@

Ubuntu环境下在Rails项目中使用postgresql时的 « 配置一个新的Ubuntu开发环境 + 在rails中使用mongoid » +

@@ -256,30 +258,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/2012/06/30/use-mongoid-with-rails/index.html b/blog/2012/06/30/use-mongoid-with-rails/index.html new file mode 100644 index 00000000..3cb40dc2 --- /dev/null +++ b/blog/2012/06/30/use-mongoid-with-rails/index.html @@ -0,0 +1,368 @@ + + + + + + + + 在rails中使用mongoid - Wongyouth's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Wongyouth's Blog

+ +

Do things the stupid way.

+ +
+ +
+ +
+
+
+
+ +
+ +

在rails中使用mongoid

+ + +

+ + + + + + + + + + + + + + + | Comments + +

+ +
+ + +

在我看来noSQL解决方案有一个最大的优点就是可以方便的scale out, Oracle等大型数据库也可以支持Grid,支持集群但是就是配置起来的繁琐而已,可以写一本厚厚的书啦。而今天要使用的mongodb只是简单的一个配置文件就能搞定,简单易用容易让人理解,只就是生产力的极大提升啊。

+ + + + +

Mongodb可使用的ruby adapter 常用的有Mongoid, Mongo Ruby Driver, Mongo mapper, 在这里不比较两者的异同,我们简单的用现在人气高的一个mongoid。人气值可以在看这里

+ +

Step 1: Install Mongodb 2.0

+ +

目前Ubuntu官方库里的mongodb还没有升级到2.0版,我们用mongodb官方提供步骤来安装。

+ +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+
# 添加mongodb公司10gen的pgp键
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
+
+# 增加源到apt
+sudo sh -c "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/10gen.list"
+
+# 更新源
+sudo apt-get update
+
+# 安装mongodb
+sudo apt-get install mongodb-10gen
+
+# 启动mongodb
+sudo service mongodb start
+
+# test mongo client
+mongo
+
+# db.test.save( {a: 1} )
+# db.test.find()
+
+ + +

Step 2: Setup Gemfile to install mongoid

+ +

在Gemfile中添加mongoid

+ +
gem 'mongoid', '~> 3.0.0.rc'
+
+ +

执行

+ +
bundle install
+
+ +

这样就可以使用了。在[railscasts][]中有mongoid的使用视频,我就不接着举例了。 +虽然现在mongoid升级到了3.0rc,有些东西会有变化,但是大的变化不会太大。

+ +

mongoid的确是好东西,但是rails社区之前的插件基本都是为mysql特质的,所以很多好插件在mongoid下还不能用, +这个还需要社区在进一步的发展才能达到,重复造轮子代价太大,我们做迁移之前还是要考虑好这个现实问题的。

+
+ + + +
+ +
+

Comments

+
+
+
+ +
+ + + + +
+
+

+ Copyright © 2012 - Wongyouth - + Powered by Octopress +

+ +
+ + + + + + + + + + + + + + + + diff --git a/blog/2012/07/05/rails-development-oriented-vimfiles/index.html b/blog/2012/07/05/rails-development-oriented-vimfiles/index.html new file mode 100644 index 00000000..6b7b5b0f --- /dev/null +++ b/blog/2012/07/05/rails-development-oriented-vimfiles/index.html @@ -0,0 +1,376 @@ + + + + + + + + rails开发用 vimfiles 配置 - Wongyouth's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Wongyouth's Blog

+ +

Do things the stupid way.

+ +
+ +
+ +
+
+
+
+ +
+ +

Rails开发用 Vimfiles 配置

+ + +

+ + + + + + + + + + + + + + + | Comments + +

+ +
+ + +

看到很多朋友在烦编辑器的事,就像自己刚开始的时候一样。 我还是选择了vim, 就是喜欢他可以配置到自己喜欢的样子, 不知道你喜欢不喜欢我的配置,但是如果你着急上手,试试我的。

+ + + + +

虽然只在ubuntu测试过,但是应该在别的系统下也可以用

+ +

特点

+ +
    +
  • 单条命令完成安装,免除配置痛苦
  • +
  • vim插件不包含在repo里,支持一个命令更新所有vimplugins,免除更新插件之苦
  • +
+ + +

包含插件

+ +
    +
  • vundle, vim插件管理器, :BundleInstall! 更新所有插件
  • +
  • rails 必须的
  • +
  • NERDTree 树形文件管理器 F7 / F6 当前文件文件夹
  • +
  • NERDComment 注释用\cc / \c<space>
  • +
  • delimitMate 自动补全右括号
  • +
  • zencoding HTML垒码利器 <c-y>,
  • +
  • tabular 代码美化。 按 = 等对齐 \a=, 按 => 对齐 \a>
  • +
  • taglist 标签列表 F8
  • +
  • ctrlp 文件查找 <c-p>
  • +
  • bufExplorer 缓冲列表 <c-b>
  • +
  • preview markdown文件编译结果查看 \P
  • +
  • fugitive 超强大GIT代码仓库查询工具 + +
      +
    • 查状态 :Gstatus
    • +
    • 查异同 :Gdiff
    • +
    • 搜pattern :Ggrep, 替代ack
    • +
    • 查log :Glog
    • +
    • 打开Github上该文件 :Gbrowse
    • +
    • 说不完…
    • +
    +
  • +
  • snippets
  • +
  • 语法支持 + +
      +
    • less
    • +
    • markdown
    • +
    • sass, scss
    • +
    • coffee-script
    • +
    • css 文件中颜色color, background-color 自动显示为背景色 (需gvim)
    • +
    +
  • +
  • 配色方案 + +
      +
    • solarized
    • +
    • vim-github-colorscheme
    • +
    • backboard
    • +
    +
  • +
+ + +

vimrc DIY

+ +
    +
  • 当前行,列高亮
  • +
  • F3 搜索, alt-F3 替换 文件中所有当前光标下文字
  • +
  • F4 插入模式时 切换粘帖模式, 普通模式时 切换 行号
  • +
+ + +

你觉得还少了什么?

+ +

最后vim英文帮助看着吃力的话你可以下载VIM的中文说明,那就完美了 +vim中文帮助

+ +

Screenshots

+ +

vim-gui

+ +

repo 在这里 https://github.com/wongyouth/vimfiles

+
+ + +
+

+ + + + + + + + + + + + + + + + + + + + + + + rails, vim + + + + +

+ + + + +

+ + « 在rails中使用mongoid + + +

+
+
+ +
+

Comments

+
+
+
+ +
+ + + + +
+
+

+ Copyright © 2012 - Wongyouth - + Powered by Octopress +

+ +
+ + + + + + + + + + + + + + + + diff --git a/blog/archives/index.html b/blog/archives/index.html index 5f5f2ef6..f8b26ee8 100644 --- a/blog/archives/index.html +++ b/blog/archives/index.html @@ -9,9 +9,9 @@ - + @@ -92,6 +92,34 @@

Blog Archive

2012

+ + + + + + + +

分类

- +

近期评论

diff --git a/blog/categories/git/atom.xml b/blog/categories/git/atom.xml index 81f70ec8..ebc11d27 100644 --- a/blog/categories/git/atom.xml +++ b/blog/categories/git/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: git | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/git/index.html b/blog/categories/git/index.html index 1969f73f..bdc6ee0c 100644 --- a/blog/categories/git/index.html +++ b/blog/categories/git/index.html @@ -130,30 +130,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/github/atom.xml b/blog/categories/github/atom.xml index e18c52ab..b2eef057 100644 --- a/blog/categories/github/atom.xml +++ b/blog/categories/github/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: github | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/github/index.html b/blog/categories/github/index.html index e21c052c..43e48f40 100644 --- a/blog/categories/github/index.html +++ b/blog/categories/github/index.html @@ -116,30 +116,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/mongodb/atom.xml b/blog/categories/mongodb/atom.xml new file mode 100644 index 00000000..c279e40f --- /dev/null +++ b/blog/categories/mongodb/atom.xml @@ -0,0 +1,78 @@ + + + + <![CDATA[Category: mongodb | Wongyouth's Blog]]> + + + 2012-07-05T12:05:24+08:00 + http://wongyouth.github.com/ + + + + + Octopress + + + + <![CDATA[在rails中使用mongoid]]> + + 2012-06-30T12:54:00+08:00 + http://wongyouth.github.com/blog/2012/06/30/use-mongoid-with-rails + 在我看来noSQL解决方案有一个最大的优点就是可以方便的scale out, Oracle等大型数据库也可以支持Grid,支持集群但是就是配置起来的繁琐而已,可以写一本厚厚的书啦。而今天要使用的mongodb只是简单的一个配置文件就能搞定,简单易用容易让人理解,只就是生产力的极大提升啊。

+ + + + +

Mongodb可使用的ruby adapter 常用的有Mongoid, Mongo Ruby Driver, Mongo mapper, 在这里不比较两者的异同,我们简单的用现在人气高的一个mongoid。人气值可以在看这里

+ +

Step 1: Install Mongodb 2.0

+ +

目前Ubuntu官方库里的mongodb还没有升级到2.0版,我们用mongodb官方提供步骤来安装。

+ +

```sh

+ +
# 添加mongodb公司10gen的pgp键
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
+
+# 增加源到apt
+sudo sh -c "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/10gen.list"
+
+# 更新源
+sudo apt-get update
+
+# 安装mongodb
+sudo apt-get install mongodb-10gen
+
+# 启动mongodb
+sudo service mongodb start
+
+# test mongo client
+mongo
+
+# db.test.save( {a: 1} )
+# db.test.find()
+
+ +

```

+ +

Step 2: Setup Gemfile to install mongoid

+ +

在Gemfile中添加mongoid

+ +
gem 'mongoid', '~> 3.0.0.rc'
+
+ +

执行

+ +
bundle install
+
+ +

这样就可以使用了。在[railscasts][]中有mongoid的使用视频,我就不接着举例了。 +虽然现在mongoid升级到了3.0rc,有些东西会有变化,但是大的变化不会太大。

+ +

mongoid的确是好东西,但是rails社区之前的插件基本都是为mysql特质的,所以很多好插件在mongoid下还不能用, +这个还需要社区在进一步的发展才能达到,重复造轮子代价太大,我们做迁移之前还是要考虑好这个现实问题的。

+]]>
+
+ +
diff --git a/blog/categories/mongodb/index.html b/blog/categories/mongodb/index.html new file mode 100644 index 00000000..c568eab7 --- /dev/null +++ b/blog/categories/mongodb/index.html @@ -0,0 +1,219 @@ + + + + + + + + Category: mongodb - Wongyouth's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Wongyouth's Blog

+ +

Do things the stupid way.

+ +
+ +
+ +
+
+
+ + +
+ + + + +
+
+

+ Copyright © 2012 - Wongyouth - + Powered by Octopress +

+ +
+ + + + + + + + + + + + + + + + diff --git a/blog/categories/mongoid/atom.xml b/blog/categories/mongoid/atom.xml new file mode 100644 index 00000000..0977e1fb --- /dev/null +++ b/blog/categories/mongoid/atom.xml @@ -0,0 +1,78 @@ + + + + <![CDATA[Category: mongoid | Wongyouth's Blog]]> + + + 2012-07-05T12:05:24+08:00 + http://wongyouth.github.com/ + + + + + Octopress + + + + <![CDATA[在rails中使用mongoid]]> + + 2012-06-30T12:54:00+08:00 + http://wongyouth.github.com/blog/2012/06/30/use-mongoid-with-rails + 在我看来noSQL解决方案有一个最大的优点就是可以方便的scale out, Oracle等大型数据库也可以支持Grid,支持集群但是就是配置起来的繁琐而已,可以写一本厚厚的书啦。而今天要使用的mongodb只是简单的一个配置文件就能搞定,简单易用容易让人理解,只就是生产力的极大提升啊。

+ + + + +

Mongodb可使用的ruby adapter 常用的有Mongoid, Mongo Ruby Driver, Mongo mapper, 在这里不比较两者的异同,我们简单的用现在人气高的一个mongoid。人气值可以在看这里

+ +

Step 1: Install Mongodb 2.0

+ +

目前Ubuntu官方库里的mongodb还没有升级到2.0版,我们用mongodb官方提供步骤来安装。

+ +

```sh

+ +
# 添加mongodb公司10gen的pgp键
+sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
+
+# 增加源到apt
+sudo sh -c "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/10gen.list"
+
+# 更新源
+sudo apt-get update
+
+# 安装mongodb
+sudo apt-get install mongodb-10gen
+
+# 启动mongodb
+sudo service mongodb start
+
+# test mongo client
+mongo
+
+# db.test.save( {a: 1} )
+# db.test.find()
+
+ +

```

+ +

Step 2: Setup Gemfile to install mongoid

+ +

在Gemfile中添加mongoid

+ +
gem 'mongoid', '~> 3.0.0.rc'
+
+ +

执行

+ +
bundle install
+
+ +

这样就可以使用了。在[railscasts][]中有mongoid的使用视频,我就不接着举例了。 +虽然现在mongoid升级到了3.0rc,有些东西会有变化,但是大的变化不会太大。

+ +

mongoid的确是好东西,但是rails社区之前的插件基本都是为mysql特质的,所以很多好插件在mongoid下还不能用, +这个还需要社区在进一步的发展才能达到,重复造轮子代价太大,我们做迁移之前还是要考虑好这个现实问题的。

+]]>
+
+ +
diff --git a/blog/categories/mongoid/index.html b/blog/categories/mongoid/index.html new file mode 100644 index 00000000..18b073b8 --- /dev/null +++ b/blog/categories/mongoid/index.html @@ -0,0 +1,219 @@ + + + + + + + + Category: mongoid - Wongyouth's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Wongyouth's Blog

+ +

Do things the stupid way.

+ +
+ +
+ +
+
+
+ + +
+ + + + +
+
+

+ Copyright © 2012 - Wongyouth - + Powered by Octopress +

+ +
+ + + + + + + + + + + + + + + + diff --git a/blog/categories/octopress/atom.xml b/blog/categories/octopress/atom.xml index 8a0d65f0..1ca41264 100644 --- a/blog/categories/octopress/atom.xml +++ b/blog/categories/octopress/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: octopress | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/octopress/index.html b/blog/categories/octopress/index.html index 8d5f7d1f..dcb06916 100644 --- a/blog/categories/octopress/index.html +++ b/blog/categories/octopress/index.html @@ -116,30 +116,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/postgresql/atom.xml b/blog/categories/postgresql/atom.xml index 3937b697..c987383e 100644 --- a/blog/categories/postgresql/atom.xml +++ b/blog/categories/postgresql/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Postgresql | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/postgresql/index.html b/blog/categories/postgresql/index.html index 4d2f525e..c8061993 100644 --- a/blog/categories/postgresql/index.html +++ b/blog/categories/postgresql/index.html @@ -116,30 +116,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/rails/atom.xml b/blog/categories/rails/atom.xml index 2f578f40..2c8d6093 100644 --- a/blog/categories/rails/atom.xml +++ b/blog/categories/rails/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Rails | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/rails/index.html b/blog/categories/rails/index.html index ee35052a..4f2d2a4e 100644 --- a/blog/categories/rails/index.html +++ b/blog/categories/rails/index.html @@ -116,30 +116,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/ruby/atom.xml b/blog/categories/ruby/atom.xml index 7e027e0c..6021f52d 100644 --- a/blog/categories/ruby/atom.xml +++ b/blog/categories/ruby/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ruby | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/ruby/index.html b/blog/categories/ruby/index.html index 18d77b37..ee165008 100644 --- a/blog/categories/ruby/index.html +++ b/blog/categories/ruby/index.html @@ -130,30 +130,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/ubuntu/atom.xml b/blog/categories/ubuntu/atom.xml index a58f1df5..4ab3bcbb 100644 --- a/blog/categories/ubuntu/atom.xml +++ b/blog/categories/ubuntu/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Ubuntu | Wongyouth's Blog]]> - 2012-06-25T16:39:57+08:00 + 2012-07-05T12:05:24+08:00 http://wongyouth.github.com/ diff --git a/blog/categories/ubuntu/index.html b/blog/categories/ubuntu/index.html index 68d2af72..f8ade0f4 100644 --- a/blog/categories/ubuntu/index.html +++ b/blog/categories/ubuntu/index.html @@ -116,30 +116,30 @@

近期博文

分类

- +

近期评论

diff --git a/blog/categories/vim/atom.xml b/blog/categories/vim/atom.xml new file mode 100644 index 00000000..0cc98138 --- /dev/null +++ b/blog/categories/vim/atom.xml @@ -0,0 +1,105 @@ + + + + <![CDATA[Category: vim | Wongyouth's Blog]]> + + + 2012-07-05T12:05:24+08:00 + http://wongyouth.github.com/ + + + + + Octopress + + + + <![CDATA[rails开发用 vimfiles 配置]]> + + 2012-07-05T09:41:00+08:00 + http://wongyouth.github.com/blog/2012/07/05/rails-development-oriented-vimfiles + 看到很多朋友在烦编辑器的事,就像自己刚开始的时候一样。 我还是选择了vim, 就是喜欢他可以配置到自己喜欢的样子, 不知道你喜欢不喜欢我的配置,但是如果你着急上手,试试我的。

+ + + + +

虽然只在ubuntu测试过,但是应该在别的系统下也可以用

+ +

特点

+ +
    +
  • 单条命令完成安装,免除配置痛苦
  • +
  • vim插件不包含在repo里,支持一个命令更新所有vimplugins,免除更新插件之苦
  • +
+ + +

包含插件

+ +
    +
  • vundle, vim插件管理器, :BundleInstall! 更新所有插件
  • +
  • rails 必须的
  • +
  • NERDTree 树形文件管理器 F7 / F6 当前文件文件夹
  • +
  • NERDComment 注释用\cc / \c<space>
  • +
  • delimitMate 自动补全右括号
  • +
  • zencoding HTML垒码利器 <c-y>,
  • +
  • tabular 代码美化。 按 = 等对齐 \a=, 按 => 对齐 \a>
  • +
  • taglist 标签列表 F8
  • +
  • ctrlp 文件查找 <c-p>
  • +
  • bufExplorer 缓冲列表 <c-b>
  • +
  • preview markdown文件编译结果查看 \P
  • +
  • fugitive 超强大GIT代码仓库查询工具 + +
      +
    • 查状态 :Gstatus
    • +
    • 查异同 :Gdiff
    • +
    • 搜pattern :Ggrep, 替代ack
    • +
    • 查log :Glog
    • +
    • 打开Github上该文件 :Gbrowse
    • +
    • 说不完...
    • +
    +
  • +
  • snippets
  • +
  • 语法支持 + +
      +
    • less
    • +
    • markdown
    • +
    • sass, scss
    • +
    • coffee-script
    • +
    • css 文件中颜色color, background-color 自动显示为背景色 (需gvim)
    • +
    +
  • +
  • 配色方案 + +
      +
    • solarized
    • +
    • vim-github-colorscheme
    • +
    • backboard
    • +
    +
  • +
+ + +

vimrc DIY

+ +
    +
  • 当前行,列高亮
  • +
  • F3 搜索, alt-F3 替换 文件中所有当前光标下文字
  • +
  • F4 插入模式时 切换粘帖模式, 普通模式时 切换 行号
  • +
+ + +

你觉得还少了什么?

+ +

最后vim英文帮助看着吃力的话你可以下载VIM的中文说明,那就完美了 +vim中文帮助

+ +

Screenshots

+ +

vim-gui

+ +

repo 在这里 https://github.com/wongyouth/vimfiles

+]]>
+
+ +
diff --git a/blog/categories/vim/index.html b/blog/categories/vim/index.html new file mode 100644 index 00000000..395c5df3 --- /dev/null +++ b/blog/categories/vim/index.html @@ -0,0 +1,219 @@ + + + + + + + + Category: vim - Wongyouth's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Wongyouth's Blog

+ +

Do things the stupid way.

+ +
+ +
+ +
+
+
+ + +
+ + + + +
+
+

+ Copyright © 2012 - Wongyouth - + Powered by Octopress +

+ +
+ + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index 0b177093..ede99a46 100644 --- a/index.html +++ b/index.html @@ -79,6 +79,92 @@

Do things the stupid way.

+
+ +
+ +

Rails开发用 Vimfiles 配置

+ + +

+ + + + + + + + + + + + + + + | Comments + +

+ +
+ + +

看到很多朋友在烦编辑器的事,就像自己刚开始的时候一样。 我还是选择了vim, 就是喜欢他可以配置到自己喜欢的样子, 不知道你喜欢不喜欢我的配置,但是如果你着急上手,试试我的。

+ +
+ + + + + + +
+ + +
+ +
+ +

在rails中使用mongoid

+ + +

+ + + + + + + + + + + + + + + | Comments + +

+ +
+ + +

在我看来noSQL解决方案有一个最大的优点就是可以方便的scale out, Oracle等大型数据库也可以支持Grid,支持集群但是就是配置起来的繁琐而已,可以写一本厚厚的书啦。而今天要使用的mongodb只是简单的一个配置文件就能搞定,简单易用容易让人理解,只就是生产力的极大提升啊。

+ +
+ + + + + + +
+ +

分类

- +

近期评论

diff --git a/sitemap.xml b/sitemap.xml index eda0e2b0..66279af5 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -30,12 +30,22 @@ http://wongyouth.github.com/blog/2012/06/25/use-postgresql-with-rails/ 2012-06-25T15:15:35+08:00 + + http://wongyouth.github.com/blog/2012/06/30/use-mongoid-with-rails/ + 2012-07-05T12:04:07+08:00 + + + + http://wongyouth.github.com/blog/2012/07/05/rails-development-oriented-vimfiles/ + + 2012-07-05T09:54:24+08:00 + http://wongyouth.github.com/blog/archives/ - 2012-06-25T15:20:58+08:00 + 2012-07-05T12:04:07+08:00 http://wongyouth.github.com/ - 2012-06-25T15:20:58+08:00 + 2012-07-05T12:04:07+08:00 \ No newline at end of file