adding a new feature

2008-09-09 Fir de Conversatie Ranjeeth P T
This is my first mail

Usually when we open an object file( in C i.e.out file ) we get unseen 
characters
So adding the property of objdump will be nice??


Ranjeeth p t

Govt Engineering College

Palakkad Kerala India


  
--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



RE: adding a new feature

2008-09-09 Fir de Conversatie John Beckett

Ranjeeth P T wrote:
 Usually when we open an object file( in C i.e.out file ) we 
 get unseen characters So adding the property of objdump will be nice??

Vim is distributed with xxd. The following tip mentions the basics, then 
presents a
more elablorate procedure if you need to use xxd often:
http://vim.wikia.com/wiki/Improved_Hex_editing

John


--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



'mksession and map problem

2008-09-09 Fir de Conversatie Ron Aaron

My sessionoptions is:

set
sessionoptions=winsize,winpos,resize,globals,buffers,slash,localoptions,folds,tabpages,unix

I have a buffer with a mapping :

map buffer ,h :call FlipHeader()cr

This is saved to the session as:

 map buffer ,h :call FlipHeader() ^V^M

And when the session file is re-read, the map is:

   map buffer ,h :call FlipHeader()nlsetlocal keymap=

Note that the cr became nl, and  then vim read the next line
of the session file setlocal keymap= as if it were part of the
mapping.

What am I doing wrong here?
Thanks!

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: (patch) Lua interface : Borland C++ 5.5.1 test

2008-09-09 Fir de Conversatie Patrick Texier

On Fri, 5 Sep 2008 13:49:12 -0400, Luis Carvalho wrote:

 I've also patched the Windows makefiles:
 
 http://wiki.linuxfromscratch.org/blfs/attachment/wiki/vim/vim72-lua-mak-0.4.patch.gz

In this patch, for Make_bc5.mak, I have found two errors:

line 42:
 +INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_LUA 
 -DDYNAMIC_LUA_DLL=\lua$(PERL_VER).dll\
LUA_VER

line 90:
+  $(LUA_LIB_FLAG)perl.lib+
lua.lib

I have a warning, using Vim 7.2.13:

if_lua.c:
Warning W8065 if_lua.c 998: Call to function 'luaV_newstate' with no
prototype in function lua_init

I had never used lua :-)

:lua print (12 * 36)
works, but
:lua print (0 / 0)
or
:lua print ( * )
crashes Vim
-- 
Patrick Texier

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: 'mksession and map problem

2008-09-09 Fir de Conversatie Tony Mechelynck

On 09/09/08 14:29, Ron Aaron wrote:
 My sessionoptions is:

   set
 sessionoptions=winsize,winpos,resize,globals,buffers,slash,localoptions,folds,tabpages,unix

 I have a buffer with a mapping :

  mapbuffer  ,h :call FlipHeader()cr

 This is saved to the session as:

   mapbuffer  ,h :call FlipHeader() ^V^M

 And when the session file is re-read, the map is:

 mapbuffer  ,h :call FlipHeader()nlsetlocal keymap=

 Note that the cr becamenl, and  then vim read the next line
 of the session file setlocal keymap= as if it were part of the
 mapping.

 What am I doing wrong here?
 Thanks!

I don't know. Which OS are you on? Here on Linux, I have a number of 
mappings, including some ending in CR, they are saved as ^V^M and 
restored correctly.

Oh, an idea: are you using mswin.vim? It remaps Ctrl-V to some pasting 
command. Try removing from your vimrc the line which invokes mswin.vim. 
Of course this will disable the Windows-like mappings to Ctrl-C, Ctrl-X, 
Ctrl-V, Ctrl-Z, etc. The Edit=Cut, Edit=Copy, Edit=Paste, Edit=Undo 
(etc.) menus will still work, as will the classical Vim commands to 
access the clipboard as register plus, to undo by means of the u 
command, etc.

If this is the cause, it may be a bug, but where? Maybe in the fact that 
you use :map (rather than :noremap) and also mswin.vim _and_ mksession.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
168. You have your own domain name.

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



RE: (patch) Lua interface : Borland C++ 5.5.1 test

2008-09-09 Fir de Conversatie Mondal, Shishir

I have tried earlier, but could not do that: any one knows definite
steps how to unsubscribe from the list?
Regards
Shishir
 

-Original Message-
From: Patrick Texier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 09, 2008 7:31 AM
To: vim_dev@googlegroups.com
Subject: Re: (patch) Lua interface : Borland C++ 5.5.1 test


On Fri, 5 Sep 2008 13:49:12 -0400, Luis Carvalho wrote:

 I've also patched the Windows makefiles:
 
 http://wiki.linuxfromscratch.org/blfs/attachment/wiki/vim/vim72-lua-ma
 k-0.4.patch.gz

In this patch, for Make_bc5.mak, I have found two errors:

line 42:
 +INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_LUA
-DDYNAMIC_LUA_DLL=\lua$(PERL_VER).dll\
LUA_VER

line 90:
+  $(LUA_LIB_FLAG)perl.lib+
lua.lib

I have a warning, using Vim 7.2.13:

if_lua.c:
Warning W8065 if_lua.c 998: Call to function 'luaV_newstate' with no
prototype in function lua_init

I had never used lua :-)

:lua print (12 * 36)
works, but
:lua print (0 / 0)
or
:lua print ( * )
crashes Vim
--
Patrick Texier



--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: How to unsubscribe (Was: Lua interface)

2008-09-09 Fir de Conversatie Tony Mechelynck

On 10/09/08 00:58, Mondal, Shishir wrote:
 I have tried earlier, but could not do that: any one knows definite
 steps how to unsubscribe from the list?
 Regards
 Shishir

Method I: Send an email (which may be empty) from the email address with 
which you are subscribed to [EMAIL PROTECTED] then wait for a 
reply and make sure to do what it says.

Method II: Browse to http://groups.google.com/groups/mysubs

(you may have to log in to your Google account before you get to that 
page). You'll see the Google Groups to which you are subscribed. At the 
right end of the line starting vim_dev, you see a rolldown widget 
which says E-mail. Turn it to Unsubscribe then click Save group 
settings at the bottom of the page.


Note: Depending on how you subscribed, one of the above methods (I don't 
know which one) may work better for you than the other.


Best regards,
Tony.
-- 
Any father who thinks he's all important should remind himself that
this country honors fathers only one day a year while pickles get a
whole week.

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



RE: (patch) Lua interface : Borland C++ 5.5.1 test

2008-09-09 Fir de Conversatie John Beckett

Mondal, Shishir wrote:
 I have tried earlier, but could not do that: any one knows 
 definite steps how to unsubscribe from the list?

Please report any problem you have when you try the following (report = reply to
this mail):

Click the link in the footer of the mail:
 You received this message from the vim_dev maillist.
 For more information, visit http://www.vim.org/maillist.php

In the vim-dev section of that page, email the To Unsubscribe address.

John



--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Opening files with Unicode names under Windows?

2008-09-09 Fir de Conversatie Vadim Zeitlin
 Hello,

 Sorry in advance if I'm simply missing something but it looks like Vim
can't open files with Unicode file names which are not convertible to the
current locale. I'm still using 7.0 (standard Win32 version) but looking at
http://vim.svn.sourceforge.net/viewvc/vim/vim7/src/os_win32.c?view=markup
it seems to be still the same in the latest code as get_cmd_argsW()
function calls WideCharToMultiByte(GetACP()) and this fails (returns a
string full of question marks) if the string can't be represented in the
current user encoding. So, for example, opening a file Аня.vcf opens the
file ???.vcf on my English Windows system. The annoying thing is not only
Vim fails to open it but that notepad (sic) opens it just fine so this
looks like the first example of something notepad does better than Vim I
found since a dozen years of using Vim ;-)

 Assuming I am not missing some trivial option/workaround which would allow
to open these files in Vim and also that nobody is already working on
fixing this, is it realistic to someone reasonably competent with Win32 but
not familiar with Vim code base to fix this? Looking at the code it seems
to be rather difficult to replace the narrow strings representing the file
names with the wide character ones so I thought about simply replacing
CP_ACP in os_win32.c with CP_UTF8 and then converting this UTF-8 string to
wchar_t before passing it to any Windows functions. Does this look like a
reasonable approach?

 Thanks in advance for any help!
VZ


pgpCPX39FNbC9.pgp
Description: PGP signature


Re: Opening files with Unicode names under Windows?

2008-09-09 Fir de Conversatie Tony Mechelynck

On 10/09/08 01:45, Vadim Zeitlin wrote:
   Hello,

   Sorry in advance if I'm simply missing something but it looks like Vim
 can't open files with Unicode file names which are not convertible to the
 current locale. I'm still using 7.0 (standard Win32 version) but looking at
 http://vim.svn.sourceforge.net/viewvc/vim/vim7/src/os_win32.c?view=markup
 it seems to be still the same in the latest code as get_cmd_argsW()
 function calls WideCharToMultiByte(GetACP()) and this fails (returns a
 string full of question marks) if the string can't be represented in the
 current user encoding. So, for example, opening a file Аня.vcf opens the
 file ???.vcf on my English Windows system. The annoying thing is not only
 Vim fails to open it but that notepad (sic) opens it just fine so this
 looks like the first example of something notepad does better than Vim I
 found since a dozen years of using Vim ;-)

   Assuming I am not missing some trivial option/workaround which would allow
 to open these files in Vim and also that nobody is already working on
 fixing this, is it realistic to someone reasonably competent with Win32 but
 not familiar with Vim code base to fix this? Looking at the code it seems
 to be rather difficult to replace the narrow strings representing the file
 names with the wide character ones so I thought about simply replacing
 CP_ACP in os_win32.c with CP_UTF8 and then converting this UTF-8 string to
 wchar_t before passing it to any Windows functions. Does this look like a
 reasonable approach?

   Thanks in advance for any help!
 VZ

1. Which version of Windows are you using? Which compiler was used to 
compile your version of Vim (as seen at the bottom of the output of 
:version)? (Steve Hall uses Cygwin gcc and Bram uses MS Visual C, I 
think boith are OK, as is the MinGW version of gcc; but I had problems 
with Unicode in general when I was on W98 with the Borland C compiler)

Steve's builds are at 
https://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721 
; if you want to compile Vim yourself, I recommend the procedure based 
on Cygwin gcc, described at 
http://users.skynet.be/antoine.mechelynck/vim/compile.htm

2. What is your 'encoding' option set to? Vim cannot, for any purpose, 
use any character which has no representation in your current 'encoding'.

I'm going to bed now, but in the meantime you can check 
http://vim.wikia.com/wiki/Working_with_Unicode and/or 
http://vim.sourceforge.net/scripts/script.php?script_id=789 (Switching 
to Unicode in an orderly manner). If it doesn't work for you, give 
specifics, and if no one answers while I sleep, I will after I wake up.


Best regards,
Tony.
-- 
I don't believe in astrology.  But then I'm an Aquarius, and Aquarians
don't believe in astrology.
-- James R. F. Quirk

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



RE: Opening files with Unicode names under Windows?

2008-09-09 Fir de Conversatie John Beckett

Vadim Zeitlin wrote:
 So, for example, opening a file Аня.vcf opens the file 
 ???.vcf on my English Windows system.

Tony's advice about encoding might fix the situation. I have the following in my
vimrc:

set encoding=utf-8

and can open a file with the name you mentioned on Windows. The font I'm using
displays squares for the file name characters, but the window title is correct.

John


--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---