2010-09-01から1ヶ月間の記事一覧

Remove DOS line endings (^M) in Vim

The recommended way to remove DOS line endings (^M) in Vim is the following :s command. :%s/\r//Source: http://vim.wikia.com/wiki/Change_end-of-line_format_for_dos-mac-unix

How I boosted my Vim

This is a clear and informative article about Vim customization:http://nvie.com/posts/how-i-boosted-my-vim/

Vim regex

I have a difficult time remembering the regex escaping rules in vim, so here is an example that I might refer to later.Add <br> to all lines: :%s/\(.*\)/\1\/

Subversive Connector Discovery does not work with proxy

More proxy woes:https://bugs.eclipse.org/bugs/show_bug.cgi?id=306786

Telling Maven Integration plugin for Eclipse where Maven installation directory is under Ubuntu

The Maven plugin for Eclipse by default uses an embedded Maven installation which is Maven 3.0. It turns out this has some incompatibilities with Maven 2.x and you are likely better off using Maven 2.x, which is fortunately still the versi…

Vim: Reopen a file with a different encoding

:e! ++enc=utf-8 Reopens current file with UTF-8 encoding :e ++enc=utf-8 filename.txt Opens filename.txt with UTF-8 encodingSee :help encoding-values for a list of supported encodings. Typical ones are latin1, utf-8, euc-jp, sjis, big5.