Skip to content

Instantly share code, notes, and snippets.

View othorizon's full-sized avatar
:octocat:
做自己喜欢的事

Rizon othorizon

:octocat:
做自己喜欢的事
View GitHub Profile
@othorizon
othorizon / MessageConfig.java
Created March 22, 2019 12:40 — forked from nilandev/MessageConfig.java
Spring MVC messageSource configuration via annotation
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
@Configuration
public class MessageConfig {
@Bean
public MessageSource messageSource() {
@othorizon
othorizon / 1- tools.md
Last active July 26, 2021 11:37
在线工具 汇总

Vim, Day 7

I have found myself using Vim for a lot more than I intended. Last week I thought I would only use it on those few occasions when I needed to jump to a text editor from the command line. One week in, I have changed the default application for XML, SQL, ERB, and ASP—don't ask [shudder]—file types to MacVim. I'll probably change shell scripts and Ruby files soon as well.

TextMate is still my primary editor, mainly because I frequently work with groups of files as a project. While NerdTree helps, the TextMate project model—especially with the [Project+][1] plugin—is very comfortable. And when it comes to the tools we use comfort is a huge factor, arguably even bigger than efficiency. A comfortable coder is usually more efficient than an uncomfortable one.

The main hurdle for me with projects in Vim is the concept of buffers, windows, and tabs, which differs from the TextMate model of tab == file and window == collection of tabs. I'm still trying to wrap my head around it all, but these lin