Re: syntax highlight and indent awk code embedded in bash script?

2012-04-05 Thread Christian Brabandt
Hi Gary! On Mi, 04 Apr 2012, Gary Johnson wrote: On 2012-04-04, Gary Johnson wrote: On 2012-04-04, Peng Yu wrote: :h sh-awk this is only for syntax highlighting. I am not sure, if this is possible for indentation scripts. Hi Christian, The above help page is not

Re: syntax highlight and indent awk code embedded in bash script?

2012-04-05 Thread John Little
On Thursday, April 5, 2012 9:02:43 AM UTC+12, Peng Yu wrote: This is my vim version number. I'm not sure where is the number after 7.3 is. Is it 462? The run time files were not tracked by the patch system, in that no patches were released for updates, so it's not surprising your vim has out

Issue with netrw copy and move

2012-04-05 Thread Bart Baker
Hello, I'm using gVim 7.3 with netrw v142 on Windows XP SP3. I am not able to copy or move files within netrw. After marking a target (mt) and file (mf) and attempting to move (mm), I receive the following message: **error** (netrw) commandmove is not executable! Using the same procedure but

Function Declaration Indent

2012-04-05 Thread Michael Ma
Hi - How to make VI set indent as below in class definition? class A { bool IsEnabled(); } Right now it's always like this: class A { bool IsEnabled(); } I have tried to set cinoptions=t0, but it doesn't seem to work in class definition. Thanks, Michael -- You

Re: Issue with netrw copy and move

2012-04-05 Thread Charles Campbell
Bart Baker wrote: Hello, I'm using gVim 7.3 with netrw v142 on Windows XP SP3. I am not able to copy or move files within netrw. After marking a target (mt) and file (mf) and attempting to move (mm), I receive the following message: **error** (netrw) commandmove is not executable! Using the

Re: syntax highlight and indent awk code embedded in bash script?

2012-04-05 Thread Charles Campbell
Peng Yu wrote: Hi, I'm wondering if there is any plugin that can syntax highlight and indent awk code embedded in bash script. By embedded I mean, some thing like the following. The default bash plugin doesn't handle such cases. It would be convenient if there is one. awk 'awk expressions'

Re: vimgrep

2012-04-05 Thread Ben Fritz
On Wednesday, April 4, 2012 1:27:21 PM UTC-5, hilal Adam wrote: Ben, Thanks for your prompt response. Somehow I am getting 3 copies of your premature, and complete replies. I only see one post. Weird. I'm starting to really hate the Google Groups interface. I may try subscribing to get

Re: VIM Showmarks: highlighting entire file, even after being removed

2012-04-05 Thread Ben Fritz
On Wednesday, April 4, 2012 1:24:35 PM UTC-5, dotancohen wrote: I just installed the Showmarks [1] VIM plugin. Now, when opening files the entire file is highlighted in orange! rming the ~/.vim/plugin/showmarks.vim file does not return VIM to it's previous state, the files are still

Re: indenting python docstring in vim

2012-04-05 Thread Zetah Ghamin
I suppose it's solved for now. I realized that I indeed did not have filetype indent on on the Ubuntu machine. It was on in the Arch machine, which now also works. It seems though that the default indentation style is to not do any auto indentation for triple-quoted string. So, if I

Re: VIM Showmarks: highlighting entire file, even after being removed

2012-04-05 Thread Charles Campbell
Ben Fritz wrote: On Wednesday, April 4, 2012 1:24:35 PM UTC-5, dotancohen wrote: I just installed the Showmarks [1] VIM plugin. Now, when opening files the entire file is highlighted in orange! rming the ~/.vim/plugin/showmarks.vim file does not return VIM to it's previous state, the files

highlighting spaces

2012-04-05 Thread Zetah Ghamin
Hi, I find it convenience to highlight the tab and trailing spaces. So I wrote these line in my .vimrc: hi Tab guibg=Blue ctermbg=Blue hi TrailSpace guibg=Red ctermbg=Red match Tab /\t\+/ match TrailSpace / \+$/ But only Tabs turn blue, and space looks the same. If I switch the last two

Re: highlighting spaces

2012-04-05 Thread Ben Fritz
On Thursday, April 5, 2012 12:20:01 PM UTC-5, Zetah Ghamin wrote: Hi, I find it convenience to highlight the tab and trailing spaces. So I wrote these line in my .vimrc: hi Tab guibg=Blue ctermbg=Blue hi TrailSpace guibg=Red ctermbg=Red match Tab /\t\+/ match TrailSpace / \+$/ But

Re: highlighting spaces

2012-04-05 Thread Ben Fritz
On Thursday, April 5, 2012 1:39:43 PM UTC-5, Ben Fritz wrote: On Thursday, April 5, 2012 12:20:01 PM UTC-5, Zetah Ghamin wrote: Hi, I find it convenience to highlight the tab and trailing spaces. So I wrote these line in my .vimrc: hi Tab guibg=Blue ctermbg=Blue hi TrailSpace

Re: highlighting spaces

2012-04-05 Thread Claudio J. Nervi P.
On 04/05/2012 02:20 PM, Zetah Ghamin wrote: Hi, I find it convenience to highlight the tab and trailing spaces. So I wrote these line in my .vimrc: hi Tab guibg=Blue ctermbg=Blue hi TrailSpace guibg=Red ctermbg=Red match Tab /\t\+/ match TrailSpace / \+$/ But only Tabs turn blue, and space

match and matchend with a negative lookbehind

2012-04-05 Thread rameo
I noted a strange behavior with match and matchend when I use a regex with a negative lookbehind. p.e. text in document: -2 3-4-5-6-7-8 search string: \([0-9-]\@!-\)\?\d[0-9]* it highights -2 3 4 5 6 7 8 (as I aspected) but when I check the match and matchend in order to copy the matches,

Re: Vim manual

2012-04-05 Thread Sujith Abraham
In this respect Emacs wins. They have a much more beautifully rendered PDF manual. In comparison, vim manual in PDF look amateurish. http://www.gnu.org/software/emacs/manual/emacs.pdf -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Vim manual

2012-04-05 Thread Boyko Bantchev
On 5 April 2012 22:17, Sujith Abraham milkyway8...@gmail.com wrote: In this respect Emacs wins. They have a much more beautifully rendered PDF manual. In comparison, vim manual in PDF look amateurish. The Emacs manual is written as a book and typeset with TeX (TexInfo). Vim manual is just an

Re: match and matchend with a negative lookbehind

2012-04-05 Thread Ben Fritz
On Thursday, April 5, 2012 1:53:13 PM UTC-5, rameo wrote: I noted a strange behavior with match and matchend when I use a regex with a negative lookbehind. p.e. text in document: -2 3-4-5-6-7-8 search string: \([0-9-]\@!-\)\?\d[0-9]* it highights -2 3 4 5 6 7 8 (as I aspected)

Re: indenting python docstring in vim

2012-04-05 Thread Zvezdan Petkovic
On Apr 5, 2012, at 1:09 PM, Zetah Ghamin wrote: I suppose it's solved for now. I realized that I indeed did not have filetype indent on on the Ubuntu machine. It was on in the Arch machine, which now also works. I'm really glad to hear that. It can be frustrating to get the help remotely

Re: highlighting spaces

2012-04-05 Thread Zvezdan Petkovic
On Apr 5, 2012, at 1:20 PM, Zetah Ghamin wrote: I find it convenience to highlight the tab and trailing spaces. So I wrote these line in my .vimrc: [I know you use Python from another thread.] If you need this highlighted for Python programming, you can just set in your .vimrc: let

Re: match and matchend with a negative lookbehind

2012-04-05 Thread John Little
On Friday, April 6, 2012 10:02:48 AM UTC+12, Ben Fritz wrote: Please give the EXACT command you ran... Perhaps this script will illustrate: let s = '-2 3-4-5-6-7-8' let p = '\([0-9-]\@!-\)\?\d[0-9]*' let [start, end] = [0, 0] while 1 let start = match(s, p, end)