Monday, November 29, 2010
Saturday, November 27, 2010
Saturday, October 9, 2010
Thursday, August 19, 2010
svnsync example
copied from http://paste.lisp.org/display/99333
it really works
first create a file pre-revprop-change including the following output by cat. And the file needs to be executable.
That is,
it really works
first create a file pre-revprop-change including the following output by cat. And the file needs to be executable.
That is,
$chmod +x pre-revprop-change
$ cat pre-revprop-change
#!/bin/sh
exit 0
$ ls -Alh pre-revprop-change
-rwxr-xr-x 1 pmezard staff 18B May 17 11:37 pre-revprop-change
$ svnadmin create repo
$ cp pre-revprop-change repo/hooks/
$ svnsync init --username svnsync file://`pwd`/repo http://wub.googlecode.com/svn
Copied properties for revision 0.
$ svnsync sync file://`pwd`/repo
Committed revision 1.
Copied properties for revision 1.
Transmitting file data ................................................................
Committed revision 2.
Copied properties for revision 2.
[...]
Wednesday, July 21, 2010
kerying in ubuntu
Remove the files under that folder would get rid of the keyrings
and then it would remind you to create a new one.
and then it would remind you to create a new one.
Friday, July 16, 2010
Monday, July 5, 2010
working with long lines in vim
some are copied from http://vim.wikia.com/wiki/Best_Vim_Tips
When we have long lines in VIM and we set wrap option to make it a lone lines look like
several lines in view. But the moving across lines using jk are still on real lines. How to work around this?
First, we can map like the following:
noremap <C-J> gj noremap <C-K> gk
That's really useful when dealing with long lines. It lets you use Control-J and Control-K to move up and down screen lines instead of buffer lines with j and k. Control-J isn't really mapped to anything by default, it's like hitting enter, but Control-K is something to do with digraphs. However, noremap won't remove this ability in insert mode.
Alternatively, you could use:
noremap <Up> gk noremap <Down> gj
Subscribe to:
Posts (Atom)
