Re: python syntax highlighting

2020-11-30 Thread Christian Brabandt
On Mo, 30 Nov 2020, Mathieu Roux wrote: > OK you're right, the problem was syntastic. > > I can disable with > > :SyntasticToggleMode > > > What can i type in .vimrc to disable syntastic automatically? Put let g:loaded_syntastic_plugin = 1 into your .vimrc Or, disable this system plugin

Re: python syntax highlighting

2020-11-30 Thread Mathieu Roux
I have so less time... so many things to do... Syntastic reproach me when i write L = [ 1,2,3 ] in python instead of L=[1,2,3] On lun., 2020-11-30 at 09:46 -0800, rwmit...@gmail.com wrote: > If you're not going to use Syntastic, why not un-install it? > > Have you considered le

Re: python syntax highlighting

2020-11-30 Thread rwmit...@gmail.com
If you're not going to use Syntastic, why not un-install it? Have you considered learning what Synstatic is trying to show you, could make you a better programmer. On Monday, November 30, 2020 at 10:55:27 AM UTC-5 mth...@gmail.com wrote: > Hello, > > OK you're right, the problem was syntastic.

Re: python syntax highlighting

2020-11-30 Thread Mathieu Roux
Hello, OK you're right, the problem was syntastic. I can disable with :SyntasticToggleMode What can i type in .vimrc to disable syntastic automatically? Thanks, Mathieu On sam., 2020-11-14 at 12:08 +0100, Christian Brabandt wrote: > On Fr, 13 Nov 2020, Mathieu Roux wrote: > > > Hello, >

Re: python syntax highlighting

2020-11-14 Thread Christian Brabandt
On Fr, 13 Nov 2020, Mathieu Roux wrote: > Hello, > > In fact, i have just installed all my stuff on a new computer. > > I did not installed consciently syntastic or vim-airline, but maybe i > use it and i don't know. > > Bellow is my :scriptnames. Well, according to your :scriptnames output,

Re: python syntax highlighting

2020-11-13 Thread Mathieu Roux
Hello, In fact, i have just installed all my stuff on a new computer. I did not installed consciently syntastic or vim-airline, but maybe i use it and i don't know. Bellow is my :scriptnames. Do you want one screenshot of my vim's window? 1: /usr/share/vim/vimrc

Re: python syntax highlighting

2020-11-09 Thread Christian Brabandt
On Mo, 09 Nov 2020, Mathieu Roux wrote: > nothing like that... > > i customized my .vimrc: > > syntax on > syntax enable > let filetype_py = "python" > au FileType python nmap œ :w:!clear ; python3.9 "%" > au FileType python imap œ :w:!clear ; python3.9 "%" > > When i execute my program with

Re: python syntax highlighting

2020-11-09 Thread Mathieu Roux
nothing like that... i customized my .vimrc: syntax on syntax enable let filetype_py = "python" au FileType python nmap œ :w:!clear ; python3.9 "%" au FileType python imap œ :w:!clear ; python3.9 "%" When i execute my program with "œ", after that, there is always one error in red in the bottom o

Re: python syntax highlighting

2020-11-09 Thread Christian Brabandt
On Mo, 09 Nov 2020, Mathieu Roux wrote: > Hello everybody, > > I have re-installed my computer recently with kubuntu. > Now, when i use vim (python program with syntax highlighting), it > appears "S>" in the margin of my text (on the left). > > I just don't know why some lines are marked "S>"

python syntax highlighting

2020-11-09 Thread Mathieu Roux
Hello everybody, I have re-installed my computer recently with kubuntu. Now, when i use vim (python program with syntax highlighting), it appears "S>" in the margin of my text (on the left). I just don't know why some lines are marked "S>" and some other lines are not marked. And then maybe i sho

Re: Slow Python syntax highlighting

2016-10-03 Thread François Ingelrest
Hi Christian, On 3 October 2016 at 10:30, Christian Brabandt wrote: > I haven't checked yet, but could that possibly be a duplicate of > https://github.com/vim/vim/issues/1098 > > Are you using python indent plugin and does it work better, if you > disable the indent plugin? Yes indenting is enab

Re: Slow Python syntax highlighting

2016-10-03 Thread Christian Brabandt
Hi François! On Mo, 03 Okt 2016, François Ingelrest wrote: > On 2 October 2016 at 22:29, Dominique Pellé wrote: > > Can you also try to measure it automatically as I did? Just to make > > sure that what I measure is what you also observe. > > This is what I got with line 85 (the slow one): > >

Re: Slow Python syntax highlighting

2016-10-02 Thread François Ingelrest
On 2 October 2016 at 22:29, Dominique Pellé wrote: > Can you also try to measure it automatically as I did? Just to make > sure that what I measure is what you also observe. This is what I got with line 85 (the slow one): % time vim -u ./vimrc --noplugin +85 -c 'norm! o' -c 'q!' foo.py 0.17s use

Re: Slow Python syntax highlighting

2016-10-02 Thread Dominique Pellé
François Ingelrest wrote: > Hi Dominique, > > On 1 October 2016 at 09:46, Dominique Pellé wrote: >> Can you provide a file where it happens and a minimalistic >> vimrc, just enough to reproduce it? > > Here's what I came up with. > > If I type o to open a new line: > - On line 87, it's instantane

Re: Slow Python syntax highlighting

2016-10-02 Thread François Ingelrest
Hi Dominique, On 1 October 2016 at 09:46, Dominique Pellé wrote: > Can you provide a file where it happens and a minimalistic > vimrc, just enough to reproduce it? Here's what I came up with. If I type o to open a new line: - On line 87, it's instantaneous - On line 85, there's a noticeable la

Re: Slow Python syntax highlighting

2016-10-01 Thread Dominique Pellé
François Ingelrest wrote: > Hi all, > > I'm not sure when this started, but for some Python files there's a > noticeable lag due to syntax highlighting. > > For example, using O to open a new line can take up to a few hundreds > of ms at some places of the file while it's instantaneous at some >

Slow Python syntax highlighting

2016-09-30 Thread François Ingelrest
Hi all, I'm not sure when this started, but for some Python files there's a noticeable lag due to syntax highlighting. For example, using O to open a new line can take up to a few hundreds of ms at some places of the file while it's instantaneous at some other places of the same file. I say it's

Context-Sensitive Python Syntax Highlighting

2014-03-17 Thread Eric Pruitt
I'm attempting to create a syntax file for Python loaded from $VIM/after/syntax/python.vim that generates rules to highlight "else" based on context; python allows "else" to be used for "while" and "for" loops as well as in "try" blocks after "except" entries. I've gotten fairly close to achieving

Re: Pathogen breaks my python syntax highlighting for some reason.

2012-10-28 Thread Marc Jessome
My best guess is the Python-Syntax plugin you have in .vim/bundle . Have you tried disabling all of your python-specific plugins? Could be a good place to start. On Sat, Oct 27, 2012 at 12:11 PM, Marcel wrote: > Here is my .vimrc file: > > 1 call pathogen#infect() > 2 call pathogen#runtime_appe

Re: Pathogen breaks my python syntax highlighting for some reason. | VAM bisect

2012-10-27 Thread Marc Weber
Its very unlikely that "pathogen" is causing your trouble. How do you debug such? a) run vim without any plugin support like this: vim -u NONE -U NONE -N "$@" If the problem is gone its caused by any of the plugins you're using b) how to find which plugin is causing it ? Move plugins to a diffe

Pathogen breaks my python syntax highlighting for some reason.

2012-10-27 Thread Marcel
Here is my .vimrc file: 1 call pathogen#infect() 2 call pathogen#runtime_append_all_bundles() 3 syntax on 4 filetype plugin indent on 5 set rtp+=~/.vim/bundle/vundle/ 6 set nocompatible 7 filetype off 8 filetype plugin indent on 9 syntax on 10 call vundle#rc() 11 let g:EclimNailg

Re: About python syntax highlighting

2010-08-21 Thread Tony Mechelynck
On 16/08/10 17:16, Benjamin R. Haskell wrote: On Mon, 16 Aug 2010, H Xu wrote: On 2010/8/16 13:36, Dominique Pellé wrote: H Xu wrote: On 2010/8/16 7:40, Zvezdan Petkovic wrote: On Aug 14, 2010, at 7:16 AM, H Xu wrote: I recommend the python syntax file add highlighting for the word "se

Re: About python syntax highlighting

2010-08-16 Thread Michael Dunn
> I recommend the python syntax file add highlighting > for the word "self". Thank you. > For now, though, one (easy) option is to add it yourself.  It's as > simple as putting this line: > > syn keyword Keyword self > > In the file: ~/.vim/after/syntax/python.vim > or vimfiles\after\synta

Re: About python syntax highlighting

2010-08-16 Thread AK
On 08/16/2010 10:40 AM, H Xu wrote: On 2010/8/16 13:36, Dominique Pellé wrote: H Xu wrote: On 2010/8/16 7:40, Zvezdan Petkovic wrote: On Aug 14, 2010, at 7:16 AM, H Xu wrote: I recommend the python syntax file add highlighting for the word "self". Thank you. Why? There is nothing special ab

Re: About python syntax highlighting

2010-08-16 Thread Benjamin R. Haskell
On Mon, 16 Aug 2010, H Xu wrote: > On 2010/8/16 13:36, Dominique Pellé wrote: > > H Xu wrote: > > > On 2010/8/16 7:40, Zvezdan Petkovic wrote: > > > > On Aug 14, 2010, at 7:16 AM, H Xu wrote: > > > > > I recommend the python syntax file add highlighting > > > > > for the word "self". Thank you.

Re: About python syntax highlighting

2010-08-16 Thread H Xu
On 2010/8/16 13:36, Dominique Pellé wrote: H Xu wrote: On 2010/8/16 7:40, Zvezdan Petkovic wrote: On Aug 14, 2010, at 7:16 AM, H Xu wrote: I recommend the python syntax file add highlighting for the word "self". Thank you. Why? There is nothing special about the word "self". It is *not* a

Re: About python syntax highlighting

2010-08-15 Thread Dominique Pellé
H Xu wrote: >  On 2010/8/16 7:40, Zvezdan Petkovic wrote: >> >> On Aug 14, 2010, at 7:16 AM, H Xu wrote: >>> >>> I recommend the python syntax file add highlighting >>> for the word "self". Thank you. >> >> Why? >> >> There is nothing special about the word "self". >> It is *not* a Python keyword.

Re: About python syntax highlighting

2010-08-15 Thread Tony Mechelynck
On 16/08/10 03:41, H Xu wrote: On 2010/8/16 7:40, Zvezdan Petkovic wrote: On Aug 14, 2010, at 7:16 AM, H Xu wrote: I recommend the python syntax file add highlighting for the word "self". Thank you. Why? There is nothing special about the word "self". It is *not* a Python keyword. You could

Re: About python syntax highlighting

2010-08-15 Thread H Xu
On 2010/8/16 7:40, Zvezdan Petkovic wrote: On Aug 14, 2010, at 7:16 AM, H Xu wrote: I recommend the python syntax file add highlighting for the word "self". Thank you. Why? There is nothing special about the word "self". It is *not* a Python keyword. You could call that parameter "this" if y

Re: About python syntax highlighting

2010-08-15 Thread Zvezdan Petkovic
On Aug 14, 2010, at 7:16 AM, H Xu wrote: > I recommend the python syntax file add highlighting > for the word "self". Thank you. Why? There is nothing special about the word "self". It is *not* a Python keyword. You could call that parameter "this" if you wanted. Use of "self" is just a common e

About python syntax highlighting

2010-08-14 Thread H Xu
Hello, I recommend the python syntax file add highlighting for the word "self". Thank you. Regards, Hong Xu 2010/8/14 -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/ma