答复: some word can't highlight in verilog

2012-07-17 Thread 王军
Sorry,I am chinese.English is not well. All ports should be highlight in Verilog's module declaration,But there some ports are not highlight in this picture. Example : RSTn Sig_rx_sys_cs -邮件原件- 发件人: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] 代表 Christian Brabandt 发送时间:

yanking from a different line

2012-07-17 Thread Gautam
Hi All, Sometimes I prefer to yank a line that I know is at a particular line number without actually moving the cursor to that line. e.g. if I was at line # 100 in the buffer, and wanted to yank line # 5; I would use: :5,5y This would yank line # 5 into the default register. Is there a

Re: 答复: some word can't highlight in verilog

2012-07-17 Thread Christian Brabandt
On Tue, July 17, 2012 09:04, 王军 wrote: Sorry,I am chinese.English is not well. All ports should be highlight in Verilog's module declaration,But there some ports are not highlight in this picture. Example : RSTn Sig_rx_sys_cs That is because the syntax script demands the ports to be upper

Re: yanking from a different line

2012-07-17 Thread Christian Brabandt
On Tue, July 17, 2012 09:12, Gautam wrote: Hi All, Sometimes I prefer to yank a line that I know is at a particular line number without actually moving the cursor to that line. e.g. if I was at line # 100 in the buffer, and wanted to yank line # 5; I would use: :5,5y This would yank

答复: 答复: some word can't highlight in verilog

2012-07-17 Thread 王军
Yes ,you are right! If the letters of port are all upper case,it is highlight. If the letters of port are not all upper case,it is not highlight. Example: RSnT Signal,and so on. Thank you very much. If I want all letters are highlight,what can I do? Modify Verilog.vim? -邮件原件- 发件人:

Re: some word can't highlight in verilog

2012-07-17 Thread Christian Brabandt
On Tue, July 17, 2012 09:57, 王军 wrote: Yes ,you are right! If the letters of port are all upper case,it is highlight. If the letters of port are not all upper case,it is not highlight. Example: RSnT Signal,and so on. Thank you very much. If I want all letters are highlight,what can I do?

Re: Strange behavior when switch back to netrw

2012-07-17 Thread Bart Baker
More debugging info: It looks like this only occurs when the listing doesn't take up the entire buffer screen. For example, I opened a dir in netrw that had many subdirs that took up the entire length of the buffer and this redrawing did not take place. If I switch to a dir (as noted in the

Re: Strange behavior when switch back to netrw

2012-07-17 Thread Bart Baker
It looks like this only occurs when the listing doesn't take up the entire buffer screen. For example, I opened a dir in netrw that had many subdirs that took up the entire length of the buffer and this redrawing did not take place. If I switch to a dir (as noted in the original post) that

Re: anyone using embedded perl interpreter?

2012-07-17 Thread David Fishburn
On 16/07/2012 4:17 PM, Taylor Hedberg wrote: Britton Kerin, Mon 2012-07-16 @ 12:02:31-0800: I get build failures trying to compile vim against perls 5.14 and 5.16, but no response on vim-dev, just wondering if anyone else uses the embedded perl interpreter or if I'm the only one... I saw your

Re: Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-17 Thread FaQ
El lunes, 16 de julio de 2012 15:24:08 UTC-3, Ben Fritz escribió: On Monday, July 16, 2012 11:02:15 AM UTC-5, FaQ wrote: gt; Hello. Iamp;#39;ve been trying to figure out this for some time now, and couldnamp;#39;t find a solution. gt; gt; I have this mapping: gt; gt; nmap

Re: Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-17 Thread Ben Fritz
On Tuesday, July 17, 2012 9:52:33 AM UTC-5, FaQ wrote: (I don#39;t know why, some characters in your response were all converted to html entities...) Because the Google Groups interface is broken. I've reported it with their little gear icon menu item, but who knows how long it will take

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread porphyry5
On Monday, July 16, 2012 5:12:18 PM UTC-7, Gary Johnson wrote: On 2012-07-16, Graham Lawrence wrote: gt; As a keystroke sequence gt; hEaquot;lt;Escgt;Biquot;lt;Escgt;j gt; seems to enquote the current word anywhere in the line. gt; In particular, it does so if the cursor is in column 1 at the

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread Christian Brabandt
On Tue, July 17, 2012 17:36, porphyry5 wrote: On Monday, July 16, 2012 5:12:18 PM UTC-7, Gary Johnson wrote: On 2012-07-16, Graham Lawrence wrote: As a keystroke sequence hEaEscBiEscj seems to enquote the current word anywhere in the line. In particular, it does so if the cursor is in

Re: Scripting the enter key

2012-07-17 Thread Ben Fritz
On Monday, July 16, 2012 5:32:35 PM UTC-5, skeept wrote: By coincidence I was also trying to fix the problem that these two plugins conflict by both defining a imap for the enter key. The closest I got was to add the following to a file after/plugin/ imap lt;silentgt; lt;crgt;

Pasting linewise registers with i_CTRL-R_CTRL-O

2012-07-17 Thread Ben Fritz
The help for i_CTRL-R_CTRL-O does not indicate anything special about whether the register pasted is linewise or characterwise, but I see the following behavior which is confusing me (and renders i_CTRL-R_CTRL-O nearly completely useless for me): Test 1: Starting text: abc def ghi jkl Cursor

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread Graham Lawrence
On 7/17/12, Christian Brabandt cbli...@256bit.org wrote: One way around it, is to use an expression mapping, e.g. something like this: :map expr F5 QuoteWord() fu! QuoteWord() let r='' if col('.') 1 let r.='h' endif let r.='Ea'. \EscBi. ''. \Esc if

Re: yanking from a different line

2012-07-17 Thread Gautam
On Tuesday, July 17, 2012 12:58:20 PM UTC+5:30, Christian Brabandt wrote: The Ex command :yank takes an optional argument of the register, so use :5y a to yank line 5 into register a. You can even do: :5y a 10 to copy the following 10 lines (e.g. lines 5-14) into register a regards,

a script for Perl users

2012-07-17 Thread mascip
Hi all, here is my new .vimrc script for - compiling my script - IF there is an error, it opens a new tab, where it jumps to the line of the first error, and displays all the errors in a QuickFix buffer under the code (so, all my previous buffers are preserved and it doesn't move them around) -

Re: some word can't highlight in verilog

2012-07-17 Thread Mun
Hi, On Tue, Jul 17, 2012 at 01:14 AM PDT, Christian Brabandt wrote: CB On Tue, July 17, 2012 09:57, ?? wrote: CB Yes ,you are right! CB If the letters of port are all upper case,it is highlight. CB If the letters of port are not all upper case,it is not highlight. CB Example: CB RSnT CB

Re: How to remove empty lines except of one

2012-07-17 Thread Chris Jones
Here's a pared down version illustrating the problem: | :%s-\(\%^\|.*\S\+.*\n\)\zs\(^\s*\n\)\{2,\}-\r Before: - 1 | 2 | 3 |asdf 4 | 5 | - After:

Re: vim: syntax issue: colorscheme change reset my syntax highlight

2012-07-17 Thread Chris Jones
On Mon, Jul 16, 2012 at 11:25:43AM EDT, ping wrote: experts: I found every time I change my colorscheme, my syntax highlight seems got reset. * the reason I need to change my colorscheme: I use vim from inside gnu screen, work from office home, in office I run terminator/ubuntu, with

Re: How to remove empty lines except of one

2012-07-17 Thread Bee
This will collapse multiple blank lines, remove trailing white space, and leave only one blank line at the end of file. %s-\_s\+$-\r Bill -- 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: vim fonts change with time and with computer

2012-07-17 Thread AndyHancock
On 16/07/12 04:51, AndyHancock wrote: I've got font increment key mappings such as: map C-F6 :set guifont=Monospace\ 8CR map C-F7 :set guifont=Monospace\ 9CR map C-F8 :set guifont=Monospace\ 10CR map C-F9 :set guifont=Monospace\ 11CR map C-F10 :set guifont=Monospace\ 12CR

Re: Re-post [2nd time]: file type detection : complete order

2012-07-17 Thread ping
On 7/17/2012 12:53 AM, ping wrote: On 7/3/2012 10:43 AM, ping wrote: guys/experts: sorry If I'm asking an idiot question... I'm learning about auto detection of file type and apply my own syntax highlight+folding based on it. so overall we have following machnism: 1) ex: set ft= 2) modeline: