SID or s: - General questions about functions

2011-04-12 Thread rameo
After a half year of use of VIM, I still don't understand what is, and if there is a difference between SID and s:. (even after reading the help file) Can they be exchanged? Fun!, fun!, Function! and function! is the same isn't? Endfunction, endfunction, Endfun, endfun also? I often Titlecase

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Steve
Hi Tony, Thanks for your answer. Sorry, I hadn't noticed you are still on Vim 7.2. No problem. In that case I recommend to upgrade. See http://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial http://users.skynet.be/antoine.mechelynck/vim/compunix.htm about how to get the

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Tony Mechelynck
On 12/04/11 11:00, Steve wrote: Hi Tony, Thanks for your answer. Sorry, I hadn't noticed you are still on Vim 7.2. No problem. In that case I recommend to upgrade. See http://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Christian Brabandt
On Tue, April 12, 2011 11:18 am, Tony Mechelynck wrote: :h helphelp.txt There is a copy of the help online, but alas, it is still the Vim 7.2 version of the help. :-( http://vimhelp.appspot.com/helphelp.txt.html regards, Christian -- You received this message from the vim_use maillist. Do

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Steve
Le 12-04-2011, à 12:04:07 +0200, Christian Brabandt (cbli...@256bit.org) a écrit : On Tue, April 12, 2011 11:18 am, Tony Mechelynck wrote: :h helphelp.txt There is a copy of the help online, but alas, it is still the Vim 7.2 version of the help. :-(

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Erik Christiansen
On Mon, Apr 11, 2011 at 06:41:34PM -0400, AK wrote: On 04/11/2011 05:04 PM, Adam Monsen wrote: Erik Christiansen wrote: Simply capitalising keywords in the file allows rapid access to the desired information How does that work? Will you share an example? Also, will you share your .vimrc?

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Magnus Woldrich
So when copy pasting a long part of code, it's not very convenient. But I'm sure there is a way to do that also with vim. Just didn't find it yet. If you have any ideas, please share. :set paste :h paste -- Magnus Woldrich m...@japh.se http://japh.se -- You received this message from the

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Steve
Le 12-04-2011, à 13:01:50 +0200, Magnus Woldrich (m...@japh.se) a écrit : So when copy pasting a long part of code, it's not very convenient. But I'm sure there is a way to do that also with vim. Just didn't find it yet. If you have any ideas, please share. :set paste :h paste Brilliant!

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Christian Brabandt
On Tue, April 12, 2011 1:01 pm, Magnus Woldrich wrote: So when copy pasting a long part of code, it's not very convenient. But I'm sure there is a way to do that also with vim. Just didn't find it yet. If you have any ideas, please share. :set paste :h paste See also the faq at:

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread wxuyec
it is strange. I have checked what tony suggested and posted the results. but I don't know why the post doesn't appear in this thread. Here I will repost the results again. 1) I am running konsole. 2) the term is set to be xterm. 3) In Insert mode, when you hit Ctrl-V followed by Up, the OA are

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread Tony Mechelynck
Sorry I didn't send this to the list. On 08/04/11 23:50, wxuyec wrote: thank you very much for your reply. 1) I am running konsole. 2) the term is set to xterm. 3) when I hit Ctrl-V followed byUp, I get ^[OA inserted. 4) the answer for :verbose setUp?xUp? is t_kuUp ^[O*A xUp

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread wxuyec
thank you. I tried the command: :verb cmap Esc :verb cmap Up I got the answers were no mapping found. On 4月12日, 下午3时44分, Tony Mechelynck antoine.mechely...@gmail.com wrote: Sorry I didn't send this to the list. On 08/04/11 23:50, wxuyec wrote: thank you very much for your reply. 1) I

How to fix pasting text wo cascading tabs messing it up

2011-04-12 Thread David Ohlemacher
I have this in my .vimrc: The first line sets a mapping so that pressing F2 in normal mode will invert the 'paste' option, and will then show the value of that option. The second line allows you to press F2 when in insert mode, to toggle 'paste' on and off. The third line enables

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread Tony Mechelynck
On 12/04/11 16:11, wxuyec wrote: thank you. I tried the command: :verb cmapEsc :verb cmapUp I got the answers were no mapping found. Then I don't know what the problem can be. Help, anyone? Best regards, Tony. -- Eat, drink, and be merry, for tomorrow you may work. -- You received this

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Ben Fritz
On Apr 12, 5:49 am, Steve dl...@bluewin.ch wrote: The only thing with which I have problem is the movement keys, hjkl. I'm so used to the arrow keys that I get cramps in my fingers when putting them on those hjkl keys (and I'm not that old :-)). I probably use hjkl more than I realize, and I

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread wxuyec
Thank you. I found that when I right click the mouse in shell and pop up the dialog to edit the profile, in the tab of input there are three options, linux, solaris and default(XFree4). and the Up key means \E[A for linux and XFree4, while the Up means \EOA. Then I run cat in shell, and hit Up,

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread wxuyec
Thank you. I found that when I right click the mouse in shell and pop up the dialog to edit the profile, in the tab of input there are three options, linux, solaris and default(XFree4). and the Up key means \E[A for linux and XFree4, while the Up means \EOA in solaris. Then I run cat in shell,

How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread diyu01
Hi, I am using vim to edit encrypted files and it works great. However, I want to be able to read the (decrypted) file content from a C++ application using cryptopp library. I am willing to embed the password into the application, but how do I access the data? For example, if the data is encrypted

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Gary Johnson
On 2011-04-12, Christian Brabandt wrote: On Tue, April 12, 2011 1:01 pm, Magnus Woldrich wrote: So when copy pasting a long part of code, it's not very convenient. But I'm sure there is a way to do that also with vim. Just didn't find it yet. If you have any ideas, please share. :set paste

Re: How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread Yu Di
Hi, I do see that the file starts with VimCrypt~01! for pkzip and VimCrypt~02! for blowfish, and the bytes after the header for pkzip encryption does not change (as pkzip encryption does not have an iv), so I think those are the encrypted bytes, but I cannot figure out what decryption algorithm to

Re: SID or s: - General questions about functions

2011-04-12 Thread ZyX
Reply to message «SID or s: - General questions about functions», sent 10:41:25 12 April 2011, Tuesday by rameo: After a half year of use of VIM, I still don't understand what is, and if there is a difference between SID and s:. (even after reading the help file) It is simple: if a function

Re: How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread Christian Brabandt
Hi Yu! On Di, 12 Apr 2011, Yu Di wrote: Hi, I do see that the file starts with VimCrypt~01! for pkzip and VimCrypt~02! for blowfish, and the bytes after the header for pkzip encryption does not change (as pkzip encryption does not have an iv), so I think those are the encrypted bytes, but I

Re: How do I access encrypted files (with known password) from an outside application?

2011-04-12 Thread Yu Di
Thanks! Let me check that. On Tue, Apr 12, 2011 at 12:07 PM, Christian Brabandt cbli...@256bit.orgwrote: Hi Yu! On Di, 12 Apr 2011, Yu Di wrote: Hi, I do see that the file starts with VimCrypt~01! for pkzip and VimCrypt~02! for blowfish, and the bytes after the header for pkzip

Re: Any non-programmer users of Vim here?

2011-04-12 Thread AK
On 04/12/2011 06:52 AM, Erik Christiansen wrote: On Mon, Apr 11, 2011 at 06:41:34PM -0400, AK wrote: On 04/11/2011 05:04 PM, Adam Monsen wrote: Erik Christiansen wrote: Simply capitalising keywords in the file allows rapid access to the desired information How does that work? Will you share

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread Benjamin R. Haskell
On Tue, 12 Apr 2011, wxuyec wrote: it is strange. I have checked what tony suggested and posted the results. but I don't know why the post doesn't appear in this thread. Here I will repost the results again. 1) I am running konsole. 2) the term is set to be xterm. 3) In Insert mode, when you

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Christian Brabandt
Hi Gary! On Di, 12 Apr 2011, Gary Johnson wrote: On 2011-04-12, Christian Brabandt wrote: On Tue, April 12, 2011 1:01 pm, Magnus Woldrich wrote: So when copy pasting a long part of code, it's not very convenient. But I'm sure there is a way to do that also with vim. Just didn't find it

Re: Inserting output of Ex command into buffer

2011-04-12 Thread Spiros Bousbouras
On Apr 10, 7:47 pm, Tim Chase v...@tim.thechases.com wrote: On 04/10/2011 05:39 PM, Spiros Bousbouras wrote: On Apr 9, 6:29 pm, Tim Chase v...@tim.thechases.com wrote: On 04/09/2011 12:11 PM, Spiros Bousbouras wrote: How can you insert the output of an Ex command into the buffer at the

Re: Any non-programmer users of Vim here?

2011-04-12 Thread Eric Weir
On Apr 11, 2011, at 4:05 PM, Adam Monsen wrote: On 04/07/2011 06:13 PM, Eric Weir wrote: Hope to find some free time in the next few days just to mess around with it -- actually, to do the tutorial -- and maybe get over the initial hump of total bafflement. Based on your participation on

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread wxuyec
sorry, don't understand. do you want me to run the command of echo $terminfo[smkx] ; cat ; echo $terminfo[rmkx] ? it just print [smkx] and wait there. On 4月12日, 下午7时48分, Benjamin R. Haskell v...@benizi.com wrote: On Tue, 12 Apr 2011, wxuyec wrote: it is strange. I have checked what tony

Re: why the Up key doesn't work to go through the searching history

2011-04-12 Thread Benjamin R. Haskell
On Tue, 12 Apr 2011, wxuyec wrote: sorry, don't understand. do you want me to run the command of echo $terminfo[smkx] ; cat ; echo $terminfo[rmkx] ? I wasn't really suggesting anything to do. I was just explaining why just running `cat` wasn't enough to show you the keys Vim would see.

Definition of sentence changes from ')' to 'as'

2011-04-12 Thread JaredPar
I'm trying to understand a behavior difference I notice with gVim 7.2 with respect to the definition of sentences. Take the following line for an example cat. dog. sheep. If I place my cursor at the start and type '))' the cursor will move to the 'd' in dog and then the 's' in sheep as

catch ?

2011-04-12 Thread Rostyslaw Lewyckyj
Just for reference, in case this is in any way system dependant! I'm on a Win 7 x 64bit ultimate OS. My vim is a straight download and unmodified install from vim.org. Below are included a sample file xxx, and a sample script zzz. - I load up xxx into Gvim by right clicking on the xxx file icon

Re: Inserting output of Ex command into buffer

2011-04-12 Thread Charles E Campbell Jr
Spiros Bousbouras wrote: [snip] I would prefer a vsystem() function (vim system) or whatever you want to call it so that for example you could do ^R=vsystem(swapname) [snip] Why not try your hand at writing a function to do that? Admittedly, it would have to begin with a capital letter.

Re: Inserting output of Ex command into buffer

2011-04-12 Thread ZyX
Reply to message «Re: Inserting output of Ex command into buffer», sent 05:32:06 13 April 2011, Wednesday by Charles E Campbell Jr: Why not try your hand at writing a function to do that? Admittedly, it would have to begin with a capital letter. It is not possible: Vsystem(redir @a | echom

Re: catch ?

2011-04-12 Thread Benjamin R. Haskell
On Tue, 12 Apr 2011, Rostyslaw Lewyckyj wrote: Just for reference, in case this is in any way system dependant! I'm on a Win 7 x 64bit ultimate OS. My vim is a straight download and unmodified install from vim.org. Below are included a sample file xxx, and a sample script zzz. [Aside] Please

Re: Inserting output of Ex command into buffer

2011-04-12 Thread Gary Johnson
On 2011-04-13, ZyX wrote: Reply to message «Re: Inserting output of Ex command into buffer», sent 05:32:06 13 April 2011, Wednesday by Charles E Campbell Jr: Spiros Bousbouras wrote: [snip] I would prefer a vsystem() function (vim system) or whatever you want to call it so that for