Re: syntax highlighting with regular expressions

2014-07-05 Thread Benjamin Klein
On Jul 5, 2014, at 5:24 PM, Mark Volkmann wrote: > I'm trying to use "syntax region" with start=regex and end=regex, but having > difficulty. > I want the region to match what follows the start regex and precedes the end > regex. > For example, say I want to match whatever follows "foo" or "bar

Re: syntax highlighting with regular expressions

2014-07-05 Thread Ben Fritz
On Saturday, July 5, 2014 5:26:15 PM UTC-5, Mark Volkmann wrote: > I'm trying to use "syntax region" with start=regex and end=regex, but having > difficulty. > I want the region to match what follows the start regex and precedes the end > regex. > For example, say I want to match whatever follows

Re: Command substitution within vim

2014-07-05 Thread Ben Fritz
On Saturday, July 5, 2014 5:14:08 PM UTC-5, cjsmall wrote: > For years I have been using the following vim mapping: > > map \\a :. w>> `dictname` > > Here, backslash-a writes the current line (which is always a single word) > out to the appropriate file which is substituted by the command "dictn

syntax highlighting with regular expressions

2014-07-05 Thread Mark Volkmann
I'm trying to use "syntax region" with start=regex and end=regex, but having difficulty. I want the region to match what follows the start regex and precedes the end regex. For example, say I want to match whatever follows "foo" or "bar" and precedes "baz" or "qux". So in these two examples, the wo

Command substitution within vim

2014-07-05 Thread cjsmall
For years I have been using the following vim mapping: map \\a :. w>> `dictname` Here, backslash-a writes the current line (which is always a single word) out to the appropriate file which is substituted by the command "dictname". Apparently, vim is doing the command substitution internally in o

Re: Run External Command with specific buffer

2014-07-05 Thread Ben Fritz
On Saturday, July 5, 2014 4:40:06 AM UTC-5, Mohammod nazmuSakiB wrote: > Lets say I split all my buffer with "sba" command > Then I navigate to a window , lets say 2nd buffer. > Now I want to run an external command with another buffer as argument > For example > :!g++ "Here I want to pass first

Re: Encoding and Fileencoding of a latin1 file

2014-07-05 Thread Ben Fritz
On Saturday, July 5, 2014 10:46:51 AM UTC-5, Ben Fritz wrote: > Regardless, in your case, I would change your 'fileencodings' > option to include the Windows-1252 encoding rather than Latin1. Or, you could > manually override the encoding selection for that file. > > Using Windows-1252 depends on

Re: Encoding and Fileencoding of a latin1 file

2014-07-05 Thread Ben Fritz
On Saturday, July 5, 2014 3:06:50 AM UTC-5, rameo wrote: > Ben, > > Try to write these french words in a file with a latin1 fileencoding: > bœuf, cœur, manœuvre, œil > (beef, heart, manoeuvre, eye) > When I wry writing this in latin1, I get: "test.txt" "test.txt" CONVERSION ERROR in line 1

Run External Command with specific buffer

2014-07-05 Thread Mohammod nazmuSakiB
Lets say I split all my buffer with "sba" command Then I navigate to a window , lets say 2nd buffer. Now I want to run an external command with another buffer as argument For example :!g++ "Here I want to pass first buffer name as argument" how to do so? -- -- You received this message from th

Re: Encoding and Fileencoding of a latin1 file

2014-07-05 Thread rameo
Ben, Try to write these french words in a file with a latin1 fileencoding: bœuf, cœur, manœuvre, œil (beef, heart, manoeuvre, eye) Close this file. Set encoding to utf-8 in your vimrc. Open the file. Encoding is utf-8 Fileencoding is latin1 (:set fileencoding?), converted is written after the