auto completion regular expression

2012-08-07 Thread sinbad
i use c-n c-p for auto completion. is there a way to use regular expressions while doing this, probably . for single char and * for wild card will be helpful. anyone has used like this. tia -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text

capitalize the current word in insert mode

2012-08-07 Thread sinbad
how can one capitalize the current word or the word just before the current cursor position with out leaving the insert mode ? leaving insert mode and capitalize and come back to insert mode is becoming a tedious task for me ...:) tia -- You received this message from the "vim_use" maillist. D

Re: Convert string variable to capital letter in VimL

2012-08-07 Thread Tim Chase
On 08/07/12 21:50, Pablo Giménez wrote: > I have a string variable and I want to capitalized it letters. > I also need to caoitalize only the first letter, so if I have: > let myStr="example" > Convert myStr word to: Example > > I have been searhing in the docs and google but no luck about how to

Convert string variable to capital letter in VimL

2012-08-07 Thread Pablo Giménez
Hello. I have a string variable and I want to capitalized it letters. I also need to caoitalize only the first letter, so if I have: let myStr="example" Convert myStr word to: Example I have been searhing in the docs and google but no luck about how to do this in a VimL scripts. Thanks. -- Un s

Re: Activating gVim from the command line (cont)

2012-08-07 Thread His Nerdship
On Aug 8, 3:34 am, Ben Fritz wrote: > On Tuesday, August 7, 2012 10:49:27 AM UTC-5, Christian Brabandt wrote: > > Hi Ben! > > > On Di, 07 Aug 2012, Ben Fritz wrote: > > > > From previous discussion, he claims to want the first "blobfish" on or > > > > after line 51. While this could be done with

VimChat on OS X

2012-08-07 Thread Benjamin Klein
I am running Vim 7.3 on OS X 10.8 (Mountain Lion). I just installed VimChat (https://github.com/ironcamel/vimchat) and am told “Not an editor command: VimChat” when I try to start it as described in the README. Sorry if this is the wrong place to ask, but: Is anyone else using VimChat on OS X (

Re: vim: input line history

2012-08-07 Thread Ben Fritz
On Tuesday, August 7, 2012 4:06:05 PM UTC-5, ping wrote: > experts: > > > > just curious about: > > how to display the contents that I input previously > > so I may just call them easily , just like the way I search my cmd > > history and re-use it... > > > > b.t.w c-r & c-a are not what

vim: input line history

2012-08-07 Thread ping
experts: just curious about: how to display the contents that I input previously so I may just call them easily , just like the way I search my cmd history and re-use it... b.t.w c-r & c-a are not what I need. //this is vim help: :his[tory] [{name}] [{first}][, [{last}]]

Re: Activating gVim from the command line (cont)

2012-08-07 Thread Ben Fritz
On Tuesday, August 7, 2012 10:49:27 AM UTC-5, Christian Brabandt wrote: > Hi Ben! > > > > On Di, 07 Aug 2012, Ben Fritz wrote: > > > > > From previous discussion, he claims to want the first "blobfish" on or > > > after line 51. While this could be done with the line number match, it > > >

Re: Activating gVim from the command line (cont)

2012-08-07 Thread Christian Brabandt
Hi Ben! On Di, 07 Aug 2012, Ben Fritz wrote: > From previous discussion, he claims to want the first "blobfish" on or > after line 51. While this could be done with the line number match, it > seemed clearer to use a range. > > But maybe try the line number match anyway, the pattern should be li

Re: Apply different setting to file belonging to a perticular location

2012-08-07 Thread ansuman
Many thanks Ben for your suggestions. Those are exactly what I was needing. Thanks Ansuman -- View this message in context: http://vim.1045645.n5.nabble.com/Apply-different-setting-to-file-belonging-to-a-perticular-location-tp5710105p5710111.html Sent from the Vim - General mailing list archi

Re: Activating gVim from the command line (cont)

2012-08-07 Thread Ben Fritz
On Thursday, August 2, 2012 10:16:55 PM UTC-5, His Nerdship wrote: > > > > gvim --servername HgVim --remote-silent "+51;/blobfish/;:call > > search('blobfish','c')" fish.cpp > > > > However it adds a new twist, albeit a trivial one. I have to > > decrement 1 from the line number. In the a

Re: How to set vim as the default pager for perldoc?

2012-08-07 Thread Charles Campbell
Peng Yu wrote: export PERLDOC_PAGER="sh -c \"col -b -x| vim -R -c 'set ft=man' - \"<" Thanks, Christian. Using the above export, I tried perldoc -f open. But the following line is not showing correctly. I think that probably "ft" be changed to something other than man. Are you aware of th

Re: Activating gVim from the command line (cont)

2012-08-07 Thread Ben Fritz
On Tuesday, August 7, 2012 5:35:18 AM UTC-5, Christian Brabandt wrote: > Hi His! > > > > On Mo, 06 Aug 2012, His Nerdship wrote: > > > > > On Aug 6, 6:08 am, Christian Brabandt wrote: > > > > Hi His! > > > > > > > > > > > > Try separating the command range by ',' instead of ';' > > > >

Re: Apply different setting to file belonging to a perticular location

2012-08-07 Thread Ben Fritz
On Tuesday, August 7, 2012 8:00:58 AM UTC-5, Ansuman Bebarta wrote: > Hi > > > > I work with python. > > > > I want to use 4 space indentation personally for python files created by me > > (not associated with project). I know I can achieve this by: > > set ts=4 sts=4 sw=4 expandtab. > >

Re: Good idea to remap s to $?

2012-08-07 Thread Daan
> As everyone else said, it's all personal preference. However, $ and ^ > are probably two of the least optimal built-in keystrokes, given how > often they are needed. FWIW, I have recently started trying trying > out these mappings, which I think are going to work quite well for me: > > map gl

Apply different setting to file belonging to a perticular location

2012-08-07 Thread ansuman
Hi I work with python. I want to use 4 space indentation personally for python files created by me (not associated with project). I know I can achieve this by: set ts=4 sts=4 sw=4 expandtab. Now the twist is that I am having a project folder always at D:\Projects\MyProject . The python file in

Re: How to set vim as the default pager for perldoc?

2012-08-07 Thread Peng Yu
> export PERLDOC_PAGER="sh -c \"col -b -x| vim -R -c 'set ft=man' - \" <" Thanks, Christian. Using the above export, I tried perldoc -f open. But the following line is not showing correctly. I think that probably "ft" be changed to something other than man. Are you aware of the alternative? Thes

Re: How to set vim as the default pager for perldoc?

2012-08-07 Thread Christian Brabandt
Hi Peng! On Mo, 06 Aug 2012, Peng Yu wrote: > Hi, > > I use the following to set vim as the default paper for man, which > works fine. > > export MANPAGER="col -b -x | vim -R -c 'set ft=man' -" > > But when I do the same thing perldoc, > > > export PERLDOC_PAGER="col -b -x | vim -R -c 'set f

Re: Activating gVim from the command line (cont)

2012-08-07 Thread Christian Brabandt
Hi His! On Mo, 06 Aug 2012, His Nerdship wrote: > On Aug 6, 6:08 am, Christian Brabandt wrote: > > Hi His! > > > > > > Try separating the command range by ',' instead of ';' > > > > See :h :; > > > > regards, > > Christian- Hide quoted text - > > > > - Show quoted text - > > Thanks Christian.