using vimball or netrw

2006-11-16 Thread J A G P R E E T
Hi There,
  I work on windows OS and want to access(read/write) to remote
server(UNIX).
   From the vim site I came to know this is possible, but how to use it is
outa my mind.

I check the two plugins netrw and vimball;

I'm not getting much understanding regarding these two plugins and not much
help available for these two.

Can I get much detailed document to get more understanding on the same.

Regards,
Jagpreet





RE: Mapping doesn't work in putty.

2006-10-18 Thread J A G P R E E T
Hi Peter,
   It doesn't work in this case either.
But I got the solution from Tony.

Thanks a lot for your efforts.

Regards,
Jagpreet

-Original Message-
From: Peter Hodge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 12:18 PM
To: J A G P R E E T; Vim mailing list
Subject: Re: Mapping doesn't work in putty.

Perhaps you could use:

  map [ctrl-v][ctrl-left] :tabpCR
  map [ctrl-v][ctrl-right] :tabnCR

Except instead of typing 'ctrl-v' and 'ctrl-left' literally, you type those
combinations instead.  This will map the exact escape sequences that your
terminal is sending.

regards,
Peter



--- J A G P R E E T [EMAIL PROTECTED] wrote:

 Hi There,
I have these mappings defined in my .vimrc file.
 
 map C-t :tabnew
 map C-left :tabpCR
 map C-right :tabnCR
 
 I'm using putty(terminal emulator) to access the unix server.
 
 The fist mapping works absolutely fine.
 The other two doesn't work at all and gives the error(E388: Couldn't find
 definition).
 Furthermore I checked C-left shows the definition for the variable under
 cursor.
 No clues why its not overridden from my mapping.
 
 When I changed map C-left : tabpCR to
 Map F2 : tabpCR
 It works.
 
 Another point is the mapping(C-left, C-right) works if I use Exceed or
 x-Manager.
 I have no clue at all why its not working in putty.
 As far as I know for mapping at least; graphics support is not a must.
 
 Whats missing for this mapping in putty.
 
 Regards,
 Jagpreet 
 
 
 
 




 
On Yahoo!7 
Men's Health: What music do you want to hear on Men's Health Radio? 
http://www.menshealthmagazine.com.au/ 




RE: Mapping doesn't work in putty.

2006-10-18 Thread J A G P R E E T
Thanks a ton Tony.
  I checked how putty is treating to left and C-left.
The new settings which is working(for putty and xterm as well) in my case
is.


map C-t :tabnew
if has(gui_running) || (term == win32) || (term == pcterm) || (term
== xterm)
  map C-left : tabprevCR
  map C-right : tabnextCR
else
  map Esc[D :tabprevCR
  map Esc[C :tabnextCR
endif


It was tough for me but your valuable input made it easy.

Regards,
Jagpreet



-Original Message-
From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 1:38 PM
To: J A G P R E E T
Cc: Vim mailing list
Subject: Re: Mapping doesn't work in putty.

J A G P R E E T wrote:
 Hi There,
I have these mappings defined in my .vimrc file.
 
 map C-t :tabnew
 map C-left :tabpCR
 map C-right :tabnCR
 
 I'm using putty(terminal emulator) to access the unix server.
 
 The fist mapping works absolutely fine.
 The other two doesn't work at all and gives the error(E388: Couldn't find
 definition).
 Furthermore I checked C-left shows the definition for the variable under
 cursor.
 No clues why its not overridden from my mapping.
 
 When I changed map C-left : tabpCR to
 Map F2 : tabpCR
 It works.
 
 Another point is the mapping(C-left, C-right) works if I use Exceed or
 x-Manager.
 I have no clue at all why its not working in putty.
 As far as I know for mapping at least; graphics support is not a must.
 
 Whats missing for this mapping in putty.
 
 Regards,
 Jagpreet 
 
 
 
 

This is the kind of error that could be the result of a bad or incomplete 
termcap/terminfo entry.

In console Vim, you can see what codes any key or keychord sends to Vim by 
hitting it in Insert mode, prefixed by Ctrl-V (or by ctrl-Q if your Ctrl-V
is 
the paste key). In gvim the same procedure (on a non-printable key or 
keychord) gives you the  notation for what gvim thinks you have pressed.

By the above method you can check, for instance, if Vim can tell the 
difference between Left and Ctrl-Left, Right and Ctrl-Right. (When I run Vim

in GUI mode, it can; when I run the same executable in console mode, either
in 
a konsole xterm or in /dev/tty with no access to X-windows, it cannot). If

it cannot tell the difference, then you must use something else for the
{lhs} 
of your mappings -- S-Left and S-Right are likely candidates.

If Vim can tell the difference, it still mightn't know that what you've hit
is 
Ctrl-Left. In that case, one method (there are others) is to use the raw 
keycode sequence as the {lhs} of the mapping. You may have to bracket the 
mapping definition by a test on term since different terminals give
different 
keycodes. Example (in the vimrc):

if has(gui_running) || (term == win32) || (term == pcterm)
 we're either on our way to a GUI session
 or on a terminal where C-Left etc. are defined correctly
map C-Left  :tabprevCR
map C-Right :tabnextCR
elseif term =~ '^xterm'
 local xterm console
 Left and Ctrl-Left are the same
 map Backslash-Left instead
map BslashEscOD :tabprevCR
map BslashEscOC :tabprevCR
elseif term == linux
 non-X text console
 here too, map Backslash-Left
map BslashEsc[D :tabprevCR
map BslashEsc[C :tabnextCR
elseif term == putty
 putty connection
 ... etc. ...
else
 unknown type of console terminal
 assume that Left is OK but C-Left isn't
map BslashLeft  :tabprevCR
map BslashRight :tabnextCR
endif

Note: The expression (term == putty) is a guess on my part. You may have
to 
use something else depending on what Vim sees as the terminal type when in a

putty session.


Best regards,
Tony