Re: Question about language specific mappings

2015-11-21 Thread Tony Mechelynck
On Sat, Nov 21, 2015 at 2:50 PM, BPJ wrote: > Den 2015-11-20 kl. 20:20, skrev Tony Mechelynck: >> These options can be toggled by hitting Ctrl-^ but since that >> keystroke is hard to find on my Belgian AZERTY keyboard I use the >> following, which works also in Normal mode: >> >> set ims=-1

Re: Question about highlighting all matches of a local variable within a C/C++ subroutine

2015-11-21 Thread Charles E Campbell
John Fishburn wrote: I know that .set hlsearch will highlight all matches of search patterns. My question is, can this highlighting be done only for occurrences of a local variable within a C/C++ subroutine? E.g. highlight all occurrences of 'i' that are local to a subroutine but not those ou

C indentation problem for functions with many parameters (one parameter per line)

2015-11-21 Thread Peng Yu
Hi, The following is the indentation results of some C code in vim. Is there a way to fix this problem? void f( int a , int a , int a , int a , int a , int a , int a , int a , int a , int a , int a , int a , int a , int a , int a , in

Question about highlighting all matches of a local variable within a C/C++ subroutine

2015-11-21 Thread John Fishburn
I know that .set hlsearch will highlight all matches of search patterns. My question is, can this highlighting be done only for occurrences of a local variable within a C/C++ subroutine? E.g. highlight all occurrences of 'i' that are local to a subroutine but not those outside. -- -- You rec

Re: Question about language specific mappings

2015-11-21 Thread BPJ
Den 2015-11-20 kl. 20:20, skrev Tony Mechelynck: > These options can be toggled by hitting Ctrl-^ but since that > keystroke is hard to find on my Belgian AZERTY keyboard I use the > following, which works also in Normal mode: > > set ims=-1 > map :let &l:imi = ! &l:imi > map! I

highlighting matching patterns in C/C++ programs

2015-11-21 Thread John Fishburn
Is it possible to simultaneously highlight all occurrences of an identifier in a C subroutine? E.g. I want to highlight all occurrences of the variable 'i' in a subroutine, but not occurrences outside the routine. -- -- You received this message from the "vim_use" maillist. Do not top-post! T