Re: :write with "&filetype" or other variables in ...

2013-12-05 Thread Gary Johnson
On 2013-12-05, dza wrote: > Hello guys. > > I need to assemble a :write line for a VimL/VimScript. > > I can use the expand modifiers yes %:t:r - but it doesn't give me > a filetype in the case of ".vimrc" for example, so I need the > variable to check whether it's set or not and put it at the en

Re: tags without tags file

2013-12-05 Thread Gary Johnson
On 2013-12-05, Alexey wrote: > Tony, thanks for the answer, but i have already seen most of it in > the internet and in Vim help. > > My question was: how to find out which tags file is actually used? > (I do not seem to have any in expected places.) > > Gary, thanks for the idea. Do you know by

Re: "Diff with Vim" not work properly (cont.)

2013-12-05 Thread shada
Thank you, this is useful, now work properly. 2013/12/5 Tony Mechelynck > On 05/12/13 09:05, Tony Mechelynck wrote: > >> On 05/12/13 07:12, Gary Johnson wrote: >> >>> On 2013-12-05, shada wrote: >>> hi all: I has use gvim7.4 on win7x64 several years, "Diff with Vim" is f

Re: Is word character redefined in netrw?

2013-12-05 Thread Charles Campbell
Paul wrote: On Thursday, December 5, 2013 11:25:02 AM UTC-5, ZyX wrote: On Dec 5, 2013 7:36 PM, "Paul" wrote: According to ":help pattern", a word character is defined as [0-9A-Za-z]. When I press # or *, the search pattern becomes \. The word WordUnderCursor highlights on all windows except

:write with "&filetype" or other variables in ...

2013-12-05 Thread dza
Hello guys. I need to assemble a :write line for a VimL/VimScript. I can use the expand modifiers yes %:t:r - but it doesn't give me a filetype in the case of ".vimrc" for example, so I need the variable to check whether it's set or not and put it at the end of the file. NOTE: If you're intere

Re: "Diff with Vim" not work properly

2013-12-05 Thread shada
I install gvim-7-4-110.exe, select 'Add Contextual Menu', but it not creae context menu. 2013/12/6 shada > :version > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33) > > > 2013/12/5 Ben Fritz > >> On Wednesday, December 4, 2013 11:09:25 PM UTC-6, shada wrote: >> > hi all: >>

Re: tags without tags file

2013-12-05 Thread Marcin Szamotulski
On 16:54 Thu 05 Dec , Alexey wrote: > Tony, thanks for the answer, but i have already seen most of it in the > internet and in Vim help. > > My question was: how to find out which tags file is actually used? (I do not > seem to have any in expected places.) > > Gary, thanks for the idea.

Re: "Diff with Vim" not work properly

2013-12-05 Thread shada
:version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33) 2013/12/5 Ben Fritz > On Wednesday, December 4, 2013 11:09:25 PM UTC-6, shada wrote: > > hi all: > > > >I has use gvim7.4 on win7x64 several years, "Diff with Vim" is > frequently used function. A few days ago, thi

Re: tags without tags file

2013-12-05 Thread Alexey
Tony, thanks for the answer, but i have already seen most of it in the internet and in Vim help. My question was: how to find out which tags file is actually used? (I do not seem to have any in expected places.) Gary, thanks for the idea. Do you know by any chance if i can confirm somehow th

Re: tags without tags file

2013-12-05 Thread Gary Johnson
On 2013-12-06, Tony Mechelynck wrote: > On 05/12/13 23:53, Alexey Muranov wrote: > >I am trying to understand how tags work in Vim. I do not have > >crated any tags files, but TagBar works and shows some document > >sections, but not all. I would like to understand what is going > >on. > > > >Is

Re: tags without tags file

2013-12-05 Thread Tony Mechelynck
On 05/12/13 23:53, Alexey Muranov wrote: I am trying to understand how tags work in Vim. I do not have crated any tags files, but TagBar works and shows some document sections, but not all. I would like to understand what is going on. Is there any way to find out what tags file is currently

tags without tags file

2013-12-05 Thread Alexey Muranov
I am trying to understand how tags work in Vim. I do not have crated any tags files, but TagBar works and shows some document sections, but not all. I would like to understand what is going on. Is there any way to find out what tags file is currently used in Vim? Or does TagBar work without a

Re: Vim opened via a menu item

2013-12-05 Thread Tony Mechelynck
On 05/12/13 22:16, Ajabu Tex wrote: Il 05/12/2013 21:58, Tony Mechelynck ha scritto: On 05/12/13 21:00, Ajabu Tex wrote: Hello. On linux mint 16, to open a file with vim in the terminal i wrote a nemo action that sends to the system the following command: gnome-terminal --working-directo

Re: Vim opened via a menu item

2013-12-05 Thread Gary Johnson
On 2013-12-05, Ajabu Tex wrote: > Hello. > > On linux mint 16, to open a file with vim in the terminal i wrote a > nemo action that sends to the system the following command: > > gnome-terminal --working-directory=%P -e "vim %F" > > where %P is the insert path of parent (current) directory a

Re: Vim opened via a menu item

2013-12-05 Thread Ajabu Tex
Il 05/12/2013 21:58, Tony Mechelynck ha scritto: On 05/12/13 21:00, Ajabu Tex wrote: Hello. On linux mint 16, to open a file with vim in the terminal i wrote a nemo action that sends to the system the following command: gnome-terminal --working-directory=%P -e "vim %F" where %P is the in

Re: Vim opened via a menu item

2013-12-05 Thread Tony Mechelynck
On 05/12/13 21:00, Ajabu Tex wrote: Hello. On linux mint 16, to open a file with vim in the terminal i wrote a nemo action that sends to the system the following command: gnome-terminal --working-directory=%P -e "vim %F" where %P is the insert path of parent (current) directory and %F is

Vim opened via a menu item

2013-12-05 Thread Ajabu Tex
Hello. On linux mint 16, to open a file with vim in the terminal i wrote a nemo action that sends to the system the following command: gnome-terminal --working-directory=%P -e "vim %F" where %P is the insert path of parent (current) directory and %F is the insert path list of selection.

Re: Is word character redefined in netrw?

2013-12-05 Thread Paul
On Thursday, December 5, 2013 11:25:02 AM UTC-5, ZyX wrote: >On Dec 5, 2013 7:36 PM, "Paul" wrote: >> According to ":help pattern", a word character is defined as >> [0-9A-Za-z]. When I press # or *, the search pattern becomes >> \. The word WordUnderCursor highlights on all >> windows except fo

Re: Is word character redefined in netrw?

2013-12-05 Thread Nikolay Pavlov
On Dec 5, 2013 7:36 PM, "Paul" wrote: > > According to ":help pattern", a word character is defined as [0-9A-Za-z]. When I press # or *, the search pattern becomes \. The word WordUnderCursor highlights on all windows except for the netrw window (where there is a file named WordUnderCursor.m).

Is word character redefined in netrw?

2013-12-05 Thread Paul
According to ":help pattern", a word character is defined as [0-9A-Za-z]. When I press # or *, the search pattern becomes \. The word WordUnderCursor highlights on all windows except for the netrw window (where there is a file named WordUnderCursor.m). However, if I remove the anchors to the

Re: question about cursorline customization and session

2013-12-05 Thread Ben Fritz
On Thursday, December 5, 2013 3:36:37 AM UTC-6, Jacek Czaja wrote: > Hi, > > > I'm searching for a solution to such a problem.  I use CursorLine eg. > highliting of line where cursor is. So I have in my .vimrc : > > > > set cursorline > > hi CursorLine ctermbg=blue ctermfg=White term=None ct

Re: "Diff with Vim" not work properly

2013-12-05 Thread Ben Fritz
On Wednesday, December 4, 2013 11:09:25 PM UTC-6, shada wrote: > hi all: > >    I has use gvim7.4 on win7x64 several years, "Diff with Vim" is frequently > used function.  A few days ago, this not work properly. Today, i reinstall > gvim7.4, the problem is still.Any idea? > > > shada What ver

question about cursorline customization and session

2013-12-05 Thread Jacek Czaja
Hi, I'm searching for a solution to such a problem. I use CursorLine eg. highliting of line where cursor is. So I have in my .vimrc : set cursorline hi CursorLine ctermbg=blue ctermfg=White term=None cterm=bold And in console Vim I have a nice blue and white highliting of text/line at cursorlin

Re: How would a vim guru type this c++ snippet?

2013-12-05 Thread hermitte
> Luc, > > I am looking at your site and am overwhelmed with fear and > excitement. > Fear because I understand very little of the pages... on the surface > it appears to be english, but it's really some kind of > english-vim-hybrid that I don't understand. Hum... I may not have taken the more

Re: "Diff with Vim" not work properly (cont.)

2013-12-05 Thread Tony Mechelynck
On 05/12/13 09:05, Tony Mechelynck wrote: On 05/12/13 07:12, Gary Johnson wrote: On 2013-12-05, shada wrote: hi all: I has use gvim7.4 on win7x64 several years, "Diff with Vim" is frequently used function. A few days ago, this not work properly. Today, i reinstall gvim7.4, the problem is

Re: "Diff with Vim" not work properly

2013-12-05 Thread Tony Mechelynck
On 05/12/13 07:12, Gary Johnson wrote: On 2013-12-05, shada wrote: hi all: I has use gvim7.4 on win7x64 several years, "Diff with Vim" is frequently used function. A few days ago, this not work properly. Today, i reinstall gvim7.4, the problem is still.Any idea? Without knowing what you