Re: expand ( doesn't work

2011-06-02 Thread sinbad
On Jun 1, 11:19 pm, Gary Johnson garyj...@spocom.com wrote: On 2011-06-01, sinbad wrote: hi, doesn't expand(cword) work if the cursor is under (. it works for ) though. any reason for this ? i am running vim 7.0 I'm running 7.3.189 and it behaves differently.  I started vim as     $

Re: expand ( doesn't work

2011-06-02 Thread Marcin Szamotulski
Hi, You can use: getline(.)[col(.)-1] Best, Marcin On 23:00 Wed 01 Jun , sinbad wrote: On Jun 1, 11:19 pm, Gary Johnson garyj...@spocom.com wrote: On 2011-06-01, sinbad wrote: hi, doesn't expand(cword) work if the cursor is under (. it works for ) though. any reason for this ?

unmatch the syntax

2011-06-02 Thread cyboman
i'm writing code that which syntax is very similar to vhdl however the code is case sensitive. i would like to be able to made some modifications to the syntax highlighting without modifying the actual vhdl.vim. i understood that i need to put my syntax file into .vim/ after/syntax/vhdl.vim.

Re: langmap utf8 encoding

2011-06-02 Thread Gour-Gadadhara Dasa
On Sun, 29 May 2011 18:40:17 +0200 Tony Mechelynck antoine.mechely...@gmail.com wrote: My understanding was that it would map z to y but have no effect on anything else, and in particular Shift-z, Ctrl-z, Alt-z, etc., wouldn't be affected. But maybe I'm wrong, so let's see if someone chimes

Re: expand ( doesn't work

2011-06-02 Thread ZyX
Reply to message «Re: expand ( doesn't work», sent 11:22:02 02 June 2011, Thursday by Marcin Szamotulski: Hi, You can use: getline(.)[col(.)-1] Best, Marcin No, not this. You should use either matchstr(getline('.')[col('.')-1:], '^.') or nr2char(char2nr(getline('.')[col('.')-1:]))

Re: Folding

2011-06-02 Thread Eric Weir
On Jun 1, 2011, at 10:53 AM, Ben Fritz wrote: On Jun 1, 8:37 am, Eric Weir eew...@bellsouth.net wrote: I understand folds can be indented. How do you mean? You can fold based on existing indent, which will fold all lines having the same indent into a single displayed line, where line

Re: Folding

2011-06-02 Thread Ben Fritz
On Jun 2, 8:47 am, Eric Weir eew...@bellsouth.net wrote: I meant both. I see that neither accomplishes what I wanted, i.e., for the folded indent to display as indented. As it is, it appears to me that the only way to know a fold is indented is to undent it. [Snip] I just wish I could

Re: unmatch the syntax

2011-06-02 Thread Ben Fritz
On Jun 2, 2:36 am, cyboman rail.shafigu...@gmail.com wrote: i'm writing code that which syntax is very similar to vhdl however the code is case sensitive. i would like to be able to made some modifications to the syntax highlighting without modifying the actual vhdl.vim. i understood that i

how to auto-indent both Tab and Space indented lines?

2011-06-02 Thread A117
In my files, some lines are indented with Tab's, while others uses spaces. If I set cindent or smartindent, new lines after one set of these lines cannot be auto-indented correctly. So I have to set autoindent and add or remove indents manually when necessary. Cannot VIM auto discern previous

Re: how to auto-indent both Tab and Space indented lines?

2011-06-02 Thread Daniel Corrêa
On 2011-06-01, A117 wrote: In my files, some lines are indented with Tab's, while others uses spaces. If I set cindent or smartindent, new lines after one set of these lines cannot be auto-indented correctly. So I have to set autoindent and add or remove indents manually when necessary.

syntax highlighting: 'good' syntax item becomes 'bad' after unrelated change in file

2011-06-02 Thread Andrew Long
I'm working on a syntax file for a language called SCL I'm experiencing a problem where a valid piece of syntax (a variable declaration) sudden;y changes state (becomes an (invalid) procedure call) following the insertion elsewhere in the file of an indexed assignment. The form of the

Re: how to auto-indent both Tab and Space indented lines?

2011-06-02 Thread Gary Johnson
On 2011-06-01, A117 wrote: In my files, some lines are indented with Tab's, while others uses spaces. If I set cindent or smartindent, new lines after one set of these lines cannot be auto-indented correctly. So I have to set autoindent and add or remove indents manually when necessary.

csindent.vim users?

2011-06-02 Thread Lori Pritchett-Sheats
Hello -- I discovered the plugin csindent.vim, a script that selects a C or C++ indent style based on the directory that a file resides in. I had two questions about this script that I couldn't find answers to and I hope someone on this list can help me out. (1) Is there a way to modify (or

Re: Folding

2011-06-02 Thread sc
On Thursday, June 02, 2011 09:36:07 Gary Johnson wrote: while i 0 let istr = istr . ' ' let i = i - 1 endwhile i bet this was written before we had the repeat() function sc -- You received this message from the vim_use maillist. Do not top-post! Type