Detecting first characters in a line ?

2010-07-17 Thread Aaron Lewis
key bindings , which should be combined , it's possible right ? Many thanks ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (GNU/Linux) Comment:

Re: Detecting first characters in a line ?

2010-07-17 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/17/2010 07:51 PM, Frank Blendinger wrote: > Hi. > > Aaron Lewis (2010-07-17 19:24 +0800): >> I'm trying to implement a custom script used for commenting and >> uncommenting , we have two types , like c-

[SOVLED] Re: Detecting first characters in a line ?

2010-07-17 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/17/2010 09:20 PM, Tony Mechelynck wrote: > On 17/07/10 14:15, Aaron Lewis wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 07/17/2010 07:51 PM, Frank Blendinger wrote: >>> Hi. >>

Re: Does gvim has the function to maximize the window?

2010-07-18 Thread Aaron Lewis
t you won't need to go that far. - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with

Re: Does gvim has the function to maximize the window?

2010-07-19 Thread Aaron Lewis
E: -b add,maximized_vert,maximized_horz > endfunction > > define alias in .bashrc: > alias gvim='gvim -c "call Maximize_Window()"' > > or call gvim in: > gvim -c "call Maximize_Window()" Hints: if has("gui_running") call Max

Some ideas , possible with vim ?

2010-07-23 Thread Aaron Lewis
- -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http:/

[SOLVED] Re: Some ideas , possible with vim ?

2010-07-23 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/24/2010 01:59 PM, Tony Mechelynck wrote: > On 24/07/10 07:43, Aaron Lewis wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi, >> E.g i've got a c source file with a #include "buff

Re: [SOLVED] Re: Some ideas , possible with vim ?

2010-07-24 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So .. After googled a lot , how can we get back to original file , there must be some cool command. Many thanks ! On 07/24/2010 02:13 PM, Aaron Lewis wrote: > On 07/24/2010 01:59 PM, Tony Mechelynck wrote: >> On 24/07/10 07:43, Aaron Le

[SOLVE] Re: Some ideas , possible with vim ?

2010-07-24 Thread Aaron Lewis
the other window (e.g. > by :q or similar) comes back to it. > > See > :help edit-intro > :help CTRL-W > > > Best regards, > Tony. Ah , that's it , thanks ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 3

Quick Text Cut with yank possible ?

2010-07-25 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, It's possible to use `yank' plus 'paste' to quickly copy text , but how can we cut it ? I shouldn't do copy first ,then delete original ones , right ? Many thanks ! - -- Best Regards, Aaro

[SOLVED] Re: Quick Text Cut with yank possible ?

2010-07-25 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/26/2010 02:50 PM, Andrei Popescu wrote: > On Lu, 26 iul 10, 13:40:13, Aaron Lewis wrote: >> Hi, >> It's possible to use `yank' plus 'paste' to quickly copy text , but how >> can we cut it ? >>

Simple Html2Txt function , doesn't work for `&' symbol ?

2010-07-30 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Consider following function , i tried to do a simple html conversation, not working for the third one ? function HtmlToText() exec "%s/<//g" exec "%s/&/\&/g" endfunc Many thanks ! - --

[SOLVED] Re: Simple Html2Txt function , doesn't work for `&' symbol ?

2010-07-30 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/30/2010 04:55 PM, John Beckett wrote: > Aaron Lewis wrote: >> Consider following function , i tried to do a simple >> html conversation, not working for the third one ? >> >> function HtmlToText() >> ex

Enter a directory automatically when opening files with gvim , possible ?

2010-07-30 Thread Aaron Lewis
d returns /home/my_USERNAME , and i want it to be /Library/code Many thanks ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comme

[SOLVED] Re: Enter a directory automatically when opening files with gvim , possible ?

2010-07-31 Thread Aaron Lewis
md) Doesn't matter for now ;-) Thanks for all of your help ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment:

[SOLVE] Re: Enter a directory automatically when opening files with gvim , possible ?

2010-07-31 Thread Aaron Lewis
Yep , will do , thanks. - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - h

Searching for single character without anything around it , possible ?

2010-07-31 Thread Aaron Lewis
ession , but no much documents about it. Consider this: int i = 0 ; i < numOfServ ; i ++ And i'd like to replace the single `i' with j , so i tried s/\bi\b/j/g , not working ? Or maybe something else , anyone could help ? Thanks in advance ! - -- Best Regar

[SOLVE] Searching for single character without anything around it , possible ?

2010-07-31 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/31/2010 04:45 PM, EdwardXu wrote: > vim regex is a little different.Try \ Exactly what i'm looking for , thanks ! > > 在 2010 年 7 31 日,4:34 下午,"Aaron Lewis" 编写: > > Hi, >I've remembered that so

Re: split command won't open files

2010-08-04 Thread Aaron Lewis
file using the sp command, nothing happens. No error, no file, no > nothing. > Maybe in the wrong directory ? (check what :pwd returns) And how you use sp command ? - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc

Re: Vim mutilating file permissions through Samba?

2010-08-13 Thread Aaron Lewis
through the mapped > network drive, and the permissions are retained. But if I do the same > editing in Vim, saving the file reverts its permissions to 644. > > I'm getting sick of typing 'chmod 775'... and I'd rather not use .*pad > - any tips? > &g

Re: Vim mutilating file permissions through Samba?

2010-08-15 Thread Aaron Lewis
ery > first 7.0 release, but the behaviour was the same. I've tried from > two different computers (both XP) - same behaviour. > > Aaron - thanks for the reply - but I don't understand quite what you > mean. From where should I be running the umask command - vim? >

Re: how to read long shell output

2010-08-22 Thread Aaron Lewis
try with it ? ! cd %:h && nm `find .. -name *.so ` | less -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -- You received this message from the "vim_use" maillist. Do not top-post! Type

Re: how to read long shell output

2010-08-22 Thread Aaron Lewis
Hi Christian, > How about :r! nm `find %:h -name *.so ...` to redirect the output into a > scratch buffer? Wow , that's really cool , i tried r! sudo cat /var/log/messages , more than 1,265,552 entries , just a few seconds. -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrin

Re: how to read long shell output

2010-08-22 Thread Aaron Lewis
On 08/22/2010 11:16 PM, Charles E Campbell Jr wrote: > yosi izaq wrote: >> Aaron Lewis: >> " >> should work with standard unix command `less` and pipe , did you try >> with it ? >> >> ! cd %:h && nm `find .. -name *.so ` | less >> &qu

Visual selection not working ?

2010-08-23 Thread Aaron Lewis
7;}' , typed in command s/\w/'&'/g ( '<,'> is automatically added ) , and all of the character was wrapped with quotes , why ? If i removed /g , the first character 'c' was quoted. Did i make any mistakes here ? Thanks ! GVIM 7

[SOLVE] Re: Visual selection not working ?

2010-08-26 Thread Aaron Lewis
ction > Works great ! Thanks Ben ;-) - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://e

Suppressing function already exist warnings ?

2010-08-27 Thread Aaron Lewis
tions that already exists. Many Thanks ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla -

[SOLVE] Re: Suppressing function already exist warnings ?

2010-08-27 Thread Aaron Lewis
On 2010年8月27日 星期五 17:49:54,ZyX Wrote: > Ответ на сообщение «Suppressing function already exist warnings ?», > присланное в 13:03:34 27 августа 2010, Пятница, > отправитель Aaron Lewis: > > You could add bang (`!') just after ``function'' command, so the function

internal vim command to check file existence ?

2010-08-28 Thread Aaron Lewis
n browser .. so plz help. Many thanks ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enig

[SOLVE] Re: internal vim command to check file existence ?

2010-08-28 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Working fine with filereadable() and filewritable() Thanks Tom , and also Christian ;-) - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode

ctags performace , parsing thousands of files ? (was `update the ctags automatically, how to do ?`)

2010-09-02 Thread Aaron Lewis
, and .. don't know how to implement for the while .. bit complex somehow. Could anyone help me check this ? -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode signature.asc Description: This is a digita

[solve] Re: ctags performace , parsing thousands of files ? (was `update the ctags automatically, how to do ?`)

2010-09-02 Thread Aaron Lewis
conds * wc -l tags.list 36093 tags.list -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode signature.asc Description: This is a digitally signed message part.

disable file locks ?

2010-09-07 Thread Aaron Lewis
that vim won't create file locks. Many thanks. -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply be

Re: problem about selection by mouse

2010-09-07 Thread Aaron Lewis
> > Somtimes I want to select something by my mouse,but ,when I release the > > left key ,the content selected is invalid. Sometimes it is right. Please > > help me !Thanks! More description please ? -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 7

Re: disable file locks ?

2010-09-07 Thread Aaron Lewis
tion in your case would be to close Vim instead of closing > Konsole when you're through editing the file. Thanks for detailed explanation firstly. I'm ah .. kinda lazy somehow , it's fine to quit vim before konsole is closed. Anyway , i'm just looking for a nice solu

Re: paste in vim creates stupid result

2010-10-05 Thread Aaron Lewis
ndtab autocmd BufEnter * set ai sw=4 ts=4 sta et fo=croql set > softtabstop=4 " makes the spaces feel like real tabs > > > Any idea how to change the settings so that the text is correctly > inserted into vim? > > > Thanks Alex -- You received this message from the "vim_

Re: Compiling Vim with Gui in Ubuntu 10.10 64bits

2010-10-12 Thread Aaron Lewis
g errors inside config.log ( or sth. else , not sure ) ? - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E No HTML shits , thanks. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16

Some ideas for c.vim plugins or was it already implemented by someone ?

2010-10-16 Thread Aaron Lewis
implement it myself ? Many Thanks ! - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E No HTML shits , thanks. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment

Re: Some ideas for c.vim plugins or was it already implemented by someone ?

2010-10-17 Thread Aaron Lewis
here ) Thanks ! -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E No HTML shits , thanks. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

Re: persistent undo stops working on sshfs if undodir is set

2010-10-18 Thread Aaron Lewis
th ssh protos. Can't reproduce it. Tried on Gentoo Host , VMware with CentOS , sshfs mounted target filesystem , and wrote a file on *remote* directory , persistent undo works for me. You gotta provide more about your actual actions. - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Serv

[SOLVED] Re: Some ideas for c.vim plugins or was it already implemented by someone ?

2010-10-25 Thread Aaron Lewis
actually works fine for me. And also thanks to John and sc , i should try ^] instead ;-) > > On 10/16/10, Aaron Lewis wrote: > Hi, > Consider following c++ codes: > > if ( ... ) { > > } /* IF */ > > I would like to append a comment for if cl

What to do with perl-support when set ft=perl set in vimrc

2010-10-26 Thread Aaron Lewis
s E15: Invalid expression: has('perl') && g:Perl_PerlTags == 'enabled' Press ENTER or type command to continue But if i start vim , and type in "set ft=perl" manually , all goes well. Am i missing sth. here ? Many thanks ! - -- Best Regards, Aar

Re: What to do with perl-support when set ft=perl set in vimrc

2010-10-26 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/26/2010 11:17 PM, Benjamin R. Haskell wrote: > On Tue, 26 Oct 2010, Benjamin R. Haskell wrote: > >> On Tue, 26 Oct 2010, Aaron Lewis wrote: >> >>> Hi, >>> Just activated perl-support plugin , if i d

[SOLVED] Re: [PATCH] Protect read of Perl_PerlTags with exists() , was "what to do with perl-support when set ft=perl is set"

2010-10-26 Thread Aaron Lewis
Great , you've worked it out. On 10/27/2010 10:25 AM, Benjamin R. Haskell wrote: > There's an unprotected check of one of the configuration variables. It's only > triggered when you set ft=perl from .vimrc because the plugin hasn't been > loaded yet. > > You shouldn't do that. Let the ftplugin

Re: [PATCH] Protect read of g:Perl_PerlTags with exists()

2010-10-27 Thread Aaron Lewis
er : Fritz Mehner " Revision : $Id: perl.vim,v 1.65 2010/04/28 19:10:13 mehner Exp $ " " - ---- " " Only do this when not done yet for this buffer - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F

A new style of c++ code indenting

2010-10-31 Thread Aaron Lewis
? Anyone give a try on this ? Thanks ! - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG

[SOLVED] Re: A new style of c++ code indenting

2010-10-31 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2010 09:21 PM, Javier Rojas wrote: > > godlygeek's tabular: http://github.com/godlygeek/tabular This looks to be the best solution for me ;-) Thanks ! - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key S

Re: A new style of c++ code indenting

2010-10-31 Thread Aaron Lewis
Within > minutes I was using it as if I had been using it for years. I highly > recommend it! +1 same reason for me -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E -- You received th

Couldn't get GVim maximum on KDE 4 , need help on debug it

2010-11-01 Thread Aaron Lewis
GVim , i won't occupy all the available space on my screen as other app does. Thanks ! - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E Key Server: http://keyserver.veridis.com Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E -BEGIN PGP SIGNATURE- Version: GnuP

Slow vim loading , how to find it out

2010-12-17 Thread Aaron Lewis
Hi, Guess i've enabled too many plugins , vim on my Gentoo loads really slow ( approximately 3 seconds ) , is there anyways to debug , and find out the worst time consumers ? Thanks. -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com ) Finger Print: 9482

Re: Slow vim loading , how to find it out

2010-12-17 Thread Aaron Lewis
On Fri, Dec 17, 2010 at 01:41:17PM +0100, Dominique Pellé wrote: > Aaron Lewis wrote: > > > Hi, > >    Guess i've enabled too many plugins , vim on my Gentoo loads really slow > > ( approximately 3 seconds ) , > >    is there anyways to debug , and find out the

Take out current line and send to xclip how to ?

2010-12-18 Thread Aaron Lewis
e substitute of that echo clause , anyone knows ? Many thanks ! - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com ) Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) Comment: U

[SOLVED] Re: Slow vim loading , how to find it out

2010-12-18 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for all of your help on this topic ! I'm checking scripts provided by Zyx out , and :script also helps out , yeah , at least --startuptime did the job at present ;-) - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E (

[SOLVED] Re: Take out current line and send to xclip how to ?

2010-12-19 Thread Aaron Lewis
Hi Ah , i thought VIM's paste board it's separated from Xorg , finally i got it , and also for the pipe commands ;-) Thanks for all your help ! -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com ) Finger Print: 9482 448F C7C3 896C 1DFE 7DD3

VIM and gpg decryption , also pinentry

2010-12-22 Thread Aaron Lewis
:1,$!gpg -ae 2>/dev/null When i press "CRTL+D" , pinentry popuped and it works when Xorg is running , but when i was on terminal (pure tty) , it won't work , just hangs. Is there any solution that can work it out ? Thanks ! - -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29

copy string from different VIM session

2011-01-13 Thread Aaron Lewis
Hi, If i open two files inside a single VIM application , copying string is possible , but for two standalone vim session , that won't be possible. Any solutions for this ? Thanks. -- Best Regards, Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com ) F

[SOLVE] Re: copy string from different VIM session

2011-01-14 Thread Aaron Lewis
Yeah , that works On 12:32 Thu 13 Jan , A. S. Budden wrote: > On 13 January 2011 08:33, Aaron Lewis wrote: > > Hi, > >        If i open two files inside a single VIM application , copying string > > is > > possible , but for two standalone vim sessi