Saturday, March 3, 2018

Vim for Web development

I've heard of all types of rapid profiling and click-association
of text editors (or programming frameworks) with the web browser.

In developing websites and cloud gadgets (in javascript, python, php, sql-like, mongo, whatnot...)
using Vim, I simply used the browser's builtin developer's tools (mainly chrome's and firefox's) and Vim without any plugins (sometimes I used some, but rarely).

And it worked very well, for research and for hobby and for freelance money..

But I wonder and ask thee, what plugins do you use,
or mappings, commands, functions, etc..
How do you use Vim and other tools to develop for the web.

Vim is a text editor, ok, and in the Unix design of a programming
environment, what other tools do you use and how.

PS. I (only me?) might search on the history of this list and post here to gather some context.

PS2. (~ot) overleaf (for editing and rendering latex files) has a Vim mode for editing, which works quite well.
I do not know how that JS relate to official Vim directly, but I ask if there is any use for it in programming for the web that you would highlight.

Best,
r

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Friday, March 2, 2018

Re: Prevent the use of italic

On Fri, Mar 2, 2018 at 10:47 PM, Nikolay Aleksandrovich Pavlov
<zyx.vim@gmail.com> wrote:
> 2018-03-02 19:06 GMT+03:00 Oliver Knodel <itc.knodel@gmail.com>:
>> Am Freitag, 2. März 2018 08:37:21 UTC+1 schrieb Anton Shepelev:
>>> Hello, all
>>>
>>> I am using GVim with a font that has no italic sub-
>>> set. When I edit markdown (.md) files, however, Vim
>>> tries to render *emphasized* text as italic. How
>>> can I prevent that? Is it configured in a color
>>> file or a syntax file?
>>>
>>> --
>>> Please, do not forward replies to the list to my e-mail.
>>
>> It is set in the syntax/markdown file and links to htmlItalic:
>> markdownItalic xxx links to htmlItalic
>>
>> You can override it in ~/.vim/after/syntax/html.vim:
>> hi htmlItalic gui=NONE
>>
>> If you use vim inside terminal, substitute gui with term or cterm.
>
> There is no need to use after/ directory, and especially after/syntax
> which will be constantly reloaded. Sane syntax file authors (and
> html.vim other is one of those) define highlight groups with
> `:highlight default` which means that if highlighting group is defined
> *before* sourcing syntax file then it will not be overridden, so
> placing something like `hi link htmlItalic Normal` into the
> colorscheme (if it is maintained by the OP) or vimrc is good and will
> not create uselessly reloaded oneline files. Usage of the `:highlight
> default` in syntax files aims precisely at allowing colorschemes to
> provide defaults better suited to the user.

Anton Shepelev: this last sentence is important. Rather than linking
htmlItalic to Normal, you might prefer to define your own colorscheme,
defining htmlItalic with some specific colours rather than as italic
text.

I'm attaching my "almost-default" colorscheme, which uses Vim's
defaults for everything not explicitly mentioned. Don't use it
unchanged, but you may add and remove highlight lines until it does
what you like. There are a few lines at beginning and end (lines 1-28
and, I think, 136-end) which should not be removed (but possibly
modified if you change the colorscheme's name). Please also change
lines 2 and 3 (which hold my name and the last change date). Line 4 is
to force it to get a 'fileencoding' of Latin1 because that line would
be invalid in UTF-8. After applying your changes, drop it into
~/.vim/colors/ (on Unix-like systems) or ~/vimfiles/colors (as named
in Vim terminology on Windows), and invoke it with a :colo[rscheme]
statement (see ":help :colorscheme") in your vimrc.

This colorscheme is intentionally written to work well with the
CSApprox plugin if loaded. It predates the invention of the
+termguicolors feature, which I don't use (instead, I use the CSApprox
plugin and I don't touch 'termguicolors', which remains at its FALSE
default if defined).

It also assumes that Vimscript lines whose first nonblank is a
backslash are continuation lines, which is the 'nocompatible' (or
"Vim") default but not the 'compatible' (or "Vi") default. The User1
and User2 highlights are used in my custom text-style tabline (defined
in my vimrc, not here, and used in both "GUI" and "console" operating
modes).

Best regards,
Tony.

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Prevent the use of italic

2018-03-02 19:06 GMT+03:00 Oliver Knodel <itc.knodel@gmail.com>:
> Am Freitag, 2. März 2018 08:37:21 UTC+1 schrieb Anton Shepelev:
>> Hello, all
>>
>> I am using GVim with a font that has no italic sub-
>> set. When I edit markdown (.md) files, however, Vim
>> tries to render *emphasized* text as italic. How
>> can I prevent that? Is it configured in a color
>> file or a syntax file?
>>
>> --
>> Please, do not forward replies to the list to my e-mail.
>
> It is set in the syntax/markdown file and links to htmlItalic:
> markdownItalic xxx links to htmlItalic
>
> You can override it in ~/.vim/after/syntax/html.vim:
> hi htmlItalic gui=NONE
>
> If you use vim inside terminal, substitute gui with term or cterm.

There is no need to use after/ directory, and especially after/syntax
which will be constantly reloaded. Sane syntax file authors (and
html.vim other is one of those) define highlight groups with
`:highlight default` which means that if highlighting group is defined
*before* sourcing syntax file then it will not be overridden, so
placing something like `hi link htmlItalic Normal` into the
colorscheme (if it is maintained by the OP) or vimrc is good and will
not create uselessly reloaded oneline files. Usage of the `:highlight
default` in syntax files aims precisely at allowing colorschemes to
provide defaults better suited to the user.

>
> --
> --
> 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/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Prevent the use of italic

Do you prefer that gvim doesn't render emphasised text as italic? Or
would you like it to?

If the latter, then you can set gvim to use a font that contains the
italicised glyphs.

:help guifont

I use 'Consolas' on Windows and 'Anonymous Pro' on *nix.



On 27 February 2018 at 13:04, Anton Shepelev <anton.txt@gmail.com> wrote:
> Hello, all
>
> I am using GVim with a font that has no italic sub-
> set. When I edit markdown (.md) files, however, Vim
> tries to render *emphasized* text as italic. How
> can I prevent that? Is it configured in a color
> file or a syntax file?
>
> --
> Please, do not forward replies to the list to my e-mail.
>
> --
> --
> 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/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Frank

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Prevent the use of italic

Am Freitag, 2. März 2018 08:37:21 UTC+1 schrieb Anton Shepelev:
> Hello, all
>
> I am using GVim with a font that has no italic sub-
> set. When I edit markdown (.md) files, however, Vim
> tries to render *emphasized* text as italic. How
> can I prevent that? Is it configured in a color
> file or a syntax file?
>
> --
> Please, do not forward replies to the list to my e-mail.

It is set in the syntax/markdown file and links to htmlItalic:
markdownItalic xxx links to htmlItalic

You can override it in ~/.vim/after/syntax/html.vim:
hi htmlItalic gui=NONE

If you use vim inside terminal, substitute gui with term or cterm.

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vim website problems

Well, vim.org is down again. We have had direct responses from
SourceForge, thus it's not like they don't care. They try hard to make
it work, but it still doesn't.

I think it is time we seriously look into the alternative: moving to
osdn.net. I would like to have two volunteers who take the current
website and make it work on OSDN. Then we can check that it actually
works there.

The website looks old (it is old), but let's not try to redesign it at
the same time, since that will take an unknown amount of time. Thus it
would mean taking the existing PHP code, setup the database, and
whatever else is needed to configure it.

Skills required:
- Experience with PHP and MySQL stuff.
- Have time available now (and preferably later for maintenance).
- Trustworthy, be responsible with users private data.

I would prefer at least person we know well from Vim work.

Please respond to this thread if you are interested.

--
A fool must search for a greater fool to find admiration.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Prevent the use of italic

This is probably in the syntax file. In 'syntax/markdown.vim' somewhere in the 'runtimepath'.

Em 2 de mar de 2018 4:37 AM, "Anton Shepelev" <anton.txt@gmail.com> escreveu:
Hello, all

I  am using GVim with a font that has no italic sub-
set.  When I edit markdown (.md) files, however, Vim
tries  to  render  *emphasized* text as italic.  How
can I prevent that?  Is it  configured  in  a  color
file or a syntax file?

--
Please, do not forward replies to the list to my e-mail.

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.