Re: vim: how to make gq work for CKJ

2012-11-03 Thread Alick Zhao
On Fri, 02 Nov 2012 12:26:46 -0400, ping wrote: hi Ben: here are the sample text. 加州政府搞的医疗保险计划,叫做Kaiser,每月的保险费比参加商业保险便宜些。 但是参加这种保险,看病只能去Kaiser旗下的医院。就 像国内最早实施的那种医 疗保险一样,只能去“定点医院”看病,要知道在美国稍有些本事的医生,都独立开 诊所的,所以医院里大多是资格比较嫩的 刚从实习医出来没几年的小医生,而且 医院还承担教学的任务,做个手术啥的通常会有一批实习医围观。 It's a one line.

Re: Help doc observation

2012-11-03 Thread Alick Zhao
On Fri, 2 Nov 2012 23:53:07 -0400, stosss wrote: I decided to go through the the help doc again to learn some more and see what I have over looked. In: *27.4*Matching multiple times To match an optional item, use \=. Example: /folders\= Matches folder and folders.

Re: Help doc observation

2012-11-03 Thread John Little
On Saturday, November 3, 2012 4:53:31 PM UTC+13, stosss wrote: I don't find anything about using \? which does the same thing as \= :-? Type :help \? and go straight to it. Says 'Cannot be used when searching backwards with the ? command', perhaps explains why \= exists. Regards, John

Opening multiple files thru command line

2012-11-03 Thread analogsix
I have a basic .vimrc and .gvimrc files that setup my options for my programming environment. I expect these files to get automatically sourced for all files in the arguments list of the vim -o[N] files command. Also, the .vimrc and .gvimrc files source a systemverilog.vim syntax file.

Re: Help doc observation

2012-11-03 Thread stosss
On Sat, Nov 3, 2012 at 3:24 AM, John Little john.b.lit...@gmail.com wrote: On Saturday, November 3, 2012 4:53:31 PM UTC+13, stosss wrote: I don't find anything about using \? which does the same thing as \= :-? Type :help \? and go straight to it. Says 'Cannot be used when searching

Re: Opening multiple files thru command line

2012-11-03 Thread Marcin Szamotulski
On 01:07 Sat 03 Nov , analogsix wrote: I have a basic .vimrc and .gvimrc files that setup my options for my programming environment. I expect these files to get automatically sourced for all files in the arguments list of the vim -o[N] files command. Also, the .vimrc and .gvimrc files

Re: Opening multiple files thru command line

2012-11-03 Thread Jane_Doe
could you send us your configuration document? I...I...I...am just a ghost 于 2012年11月03日 16:07, analogsix 写道: I have a basic .vimrc and .gvimrc files that setup my options for my programming environment. I expect these files to get automatically sourced for all files in the

Setting guifont in .gvimrc goes wrong

2012-11-03 Thread Marcel Korpel
Hi, Perhaps it is me doing something stupid, but I am not able to set a specific font *and* font size in my .gvimrc. Here is what I did. 1) I patched Ubuntu Mono using the instructions in [1] and installed this font properly (I can select it and choose the added symbols). 2) I typed :set

Re: Setting guifont in .gvimrc goes wrong

2012-11-03 Thread Tony Mechelynck
On 03/11/12 12:49, Marcel Korpel wrote: Hi, Perhaps it is me doing something stupid, but I am not able to set a specific font *and* font size in my .gvimrc. Here is what I did. 1) I patched Ubuntu Mono using the instructions in [1] and installed this font properly (I can select it and choose

Re: Setting guifont in .gvimrc goes wrong

2012-11-03 Thread Marcel Korpel
On Sat, Nov 3, 2012 at 3:38 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: set guifont=Ubuntu\ Mono\ for \ Powerline\ 12 ---^ there should be no space here That *might* be a typo instead of a copy-paste error, but after trying again it works! Thanks.

Re: vim: how to make gq work for CKJ

2012-11-03 Thread ping
On 11/3/2012 2:03 AM, Alick Zhao wrote: On Fri, 02 Nov 2012 12:26:46 -0400, ping wrote: hi Ben: here are the sample text. 加州政府搞的医疗保险计划,叫做Kaiser,每月的保险费比参加商业保险便宜些。 但是参加这种保险,看病只能去Kaiser旗下的医院。就 像国内最早实施的那种医 疗保险一样,只能去“定点医院”看病,要知道在美国稍有些本事的医生,都独立开 诊所的,所以医院里大多是资格比较嫩的 刚从实习医出来没几年的小医生,而且

Re: Opening multiple files thru command line

2012-11-03 Thread Gary Johnson
On 2012-11-03, analogsix wrote: I have a basic .vimrc and .gvimrc files that setup my options for my programming environment. I expect these files to get automatically sourced for all files in the arguments list of the vim -o[N] files command. Also, the .vimrc and .gvimrc files source a

search and replace using a list of characters to replace

2012-11-03 Thread Chris Lott
I have a large text file in which I need to remove all punctuation, all special characters (smart quotes) and the like, and a bunch of selected words. Can this be done within Vim? c -- Chris Lott ch...@chrislott.org -- You received this message from the vim_use maillist. Do not top-post! Type

Re: Variable amount of snippet arguments in ultisnips plugin

2012-11-03 Thread skeept
On Friday, November 2, 2012 5:44:35 PM UTC-4, Marco wrote: Hi, I discovered the plugin ultisnips and like it a lot. However, I have problems setting up the snippets (BTW: I don't know python). I need a snippet that has two mandatory arguments and several optional ones (no more

Re: Spellcheck on Tex-Files

2012-11-03 Thread skeept
On Friday, November 2, 2012 9:50:51 AM UTC-4, Charles Campbell wrote: skeept wrote: Thank you very much! With the help of your plugin HILINKS and your last suggestion I was finally able to get it to work. The version I have in my config file (which I would not be able to write

Re: search and replace using a list of characters to replace

2012-11-03 Thread stosss
Greetings, Just trying to learn On Sat, Nov 3, 2012 at 3:24 PM, Tim Chase v...@tim.thechases.com wrote: On 11/03/12 14:11, Chris Lott wrote: I have a large text file in which I need to remove all punctuation, all special characters (smart quotes) and the like, and a bunch of selected words.

Re: search and replace using a list of characters to replace

2012-11-03 Thread Tony Mechelynck
On 03/11/12 20:42, stosss wrote: Greetings, Just trying to learn On Sat, Nov 3, 2012 at 3:24 PM, Tim Chase v...@tim.thechases.com wrote: On 11/03/12 14:11, Chris Lott wrote: I have a large text file in which I need to remove all punctuation, all special characters (smart quotes) and the like,

Re: Opening multiple files thru command line

2012-11-03 Thread Tony Mechelynck
On 03/11/12 18:30, Gary Johnson wrote: [...] It sounds like you may think that ~/.vimrc is the configuration file for vim while ~/.gvimrc is the configuration file for gvim. This is not true. ~/.vimrc is sourced by both vim and gvim. ~/.gvimrc is sourced only by gvim and is intended to

Re: Strange issue with Pathogen

2012-11-03 Thread Alejandro Exojo
El Viernes, 2 de noviembre de 2012, Some Developer escribió: I'll give you the steps I take to get to the stage above: cd ~ rm -rf .vim* rm .gvimrc git clone REPO_URL .vim cd .vim git submodule init git submodule update ln -s ~/.vimrc ~/.vim/vimrc_config pretty much all there is to

Re: Variable amount of snippet arguments in ultisnips plugin

2012-11-03 Thread Marco
2012-11-03 skeept: I have two suggestions for this. snippet def def def ${1:${VISUAL:foo}} {${2}} ${3:{${4}}} ${5:{${6}}} $0 endsnippet This does not work for me. The optional text is not surrounded by braces. global !p def ins1(t1, t2): return t2 if t1 else '' endglobal

Re: search and replace using a list of characters to replace

2012-11-03 Thread Tim Chase
On 11/03/12 14:42, stosss wrote: Just trying to learn Welcome aboard. We're a pretty friendly bunch here and are glad to have you. Asking because I don't know and I don't use smart quotes. What makes them so difficult to remove in a s/search/replace/g ? Aren't they just quotation marks?

Re: Variable amount of snippet arguments in ultisnips plugin

2012-11-03 Thread skeept
snippet def def def ${1:${VISUAL:foo}} {${2}} ${3:{${4}}} ${5:{${6}}} $0 endsnippet This does not work for me. The optional text is not surrounded by braces. It should work (it works for me), but you have to hit c-j twice (the first one corresponds to $3 and

A Vim set question

2012-11-03 Thread stosss
Are these different or the same? I don't see anything different in my display. set display+=lastline set display=lastline -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

Re: A Vim set question

2012-11-03 Thread Chris Lott
On Sat, Nov 3, 2012 at 9:36 PM, stosss sto...@gmail.com wrote: Are these different or the same? I don't see anything different in my display. set display+=lastline set display=lastline The first *adds* the lastline option to the list of display options The second sets the display setting to