Archive | January, 2007

Vim 7 tabs

30 Jan

(Used in GVim 7)

"add to .vimrc
"tab mappings for firefox-like tabs
map  :tabn 
map  :tabp 
map  :tabnew 
map  :tabclose 

augroup filetype
        au!
        au! BufRead,BufNewFile *.phc    set filetype=php
        au! BufRead,BufNewFile *.mine   set filetype=mine
        au! BufRead,BufNewFile *.xyz    set filetype=drawing
        au! BufRead,BufNewFile *.pl    set filetype=perl
        au! BufRead,BufNewFile *.pm    set filetype=perl
augroup  END
syntax on

set tabstop=4
set expandtab
set title

colo koehler

Extssh is an Eclipse-only CVS connection method

25 Jan

http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/task-team-cmdlineclient.htm

“3. The ‘extssh’ connection method

The extssh connection method is unique to Eclipse CVS and doesn’t exist in the
command-line CVS client. If you are using extssh to connect to a SSH2
repository and would like to use the command line client for some CVS
operations you can configure the ext connection method to use extssh when
inside Eclipse.

1. Create a new repository location that uses the ext connection method. The
repository path, host, and user should be identical to those in the extssh
location.
2. Open the Team>CVS>Ext Connection Method preference page.
3. Enable ‘Use another connection method type to connect’ and choose *extssh* (which seems kind of weird).
4. Now when you use the ext connection method inside Eclipse, extssh will be
used instead of an external client.”

## To check this is doing what you think its doing have a look at CVS/Root – this will say what connection string you are using for in that CVS repository

Cygwin Perl

24 Jan

Run “o conf” to see configuration

Then “o conf urllist push ” # this is for options which have multiple entries
Otherwise “o conf wget /usr/bin/wget” # only one option

To commit: “o conf commit”

Prompts

24 Jan

# prompt with username@hostname

set prompt=”%B[%n@%m]%b%/(%h): “

Recording macros

8 Jan

q <register> Start macro recording into the named register. For instance, qa starts recording and puts the macro into register a.
q End recording.
@ <register> Replay the macro stored in the named register. For instance, @a replays the macro in register a.

Search replace with special characters

4 Jan

This is most common with ^M which are new lines in dos/windows.

(These are easily searched replaced using Ctrl-v then Ctrl-m)

Another way to do it is to use “ga” over a character, this will give you the character code.

Then you can do Ctrl-v <the character code> and this will work too.