Re: Vim

2023-03-19 Thread Shlomi Fish
Hi,

On Sun, 19 Mar 2023 15:23:55 -0700 (PDT)
"rwmit...@gmail.com"  wrote:

> Without knowing what you did when you installed it, I don't think it an be 
> answered universally.
> 
> What OS are you using?
> What command did you run to install vim?
> 
> Assuming you're on a unix system, removing both $HOME/.vimrc and $HOME/.vim 
> will likely remove anything you did to customize vim and it is very 
> unlikely the vim app/program is actually corrupt.
> 

one should really use a "dotfiles" repo. E.g.:

* https://github.com/search?utf8=%E2%9C%93=dotfiles

* https://github.com/shlomif/shlomif-computer-settings/

> On Sunday, March 19, 2023 at 5:42:02 PM UTC-4 Norman Bench wrote:
> 
> > How do I uninstall vim?
> >
> > I want to start over
> >
> > And how do I go about doing this?
> >  
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://youtu.be/xZLwtc9x4yA - Anime in Real Life!! (Parody)

Chuck Norris once wrote a 10 million lines C++ program in Microsoft Notepad
without having to use the backspace key. And it compiled without errors or
warnings, and was 100% bug‐free.

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20230320061507.550d0d0f%40shlomifish.org.


Re: Vim 9.0 is released!

2022-06-28 Thread Shlomi Fish
Hi Bram [and all],

On Tue, 28 Jun 2022 15:55:17 +0100
Bram Moolenaar  wrote:

> Hello Vim users!
> 
> Announcing:  Vim (Vi IMproved) version 9.0
> 
> 
> This is a major release.  The main new feature is the addition of Vim9
> script.  Besides that a lot of bugs have been fixed, documentation was
> updated, test coverage was improved, etc.
> 
> Read the announcement online: https://www.vim.org/vim90.php
> 
> Once you have installed Vim 9.0 you can find details about the changes
> since Vim 9.0 with:
> :help version9
> 

thanks, congrats and - good luck:

* https://www.youtube.com/watch?v=t6Lo_aMW7zk

* https://www.youtube.com/watch?v=6zDwWzk11oM

* https://www.youtube.com/watch?v=tG-wl2qqD7Y

with ♥,

-- Shlomi

> 
> Why Vim9 Script
> ---
> 
> A new script language, what is that needed for? Vim script has been
> growing over time, while preserving backwards compatibility. That means
> bad choices from the past often can't be changed and compatibility with
> Vi restricts possible solutions. Execution is quite slow, each line is
> parsed every time it is executed.
> 
> The main goal of Vim9 script is to drastically improve performance. This
> is accomplished by compiling commands into instructions that can be
> efficiently executed. An increase in execution speed of 10 to 100 times
> can be expected.
> 
> A secondary goal is to avoid Vim-specific constructs and get closer to
> commonly used programming languages, such as JavaScript, TypeScript and
> Java.
> 
> The performance improvements can only be achieved by not being 100%
> backwards compatible. For example, making function arguments available
> by creating an "a:" dictionary involves quite a lot of overhead. In a
> Vim9 function this dictionary is not available. Other differences are
> more subtle, such as how errors are handled.
> 
> For those with a large collection of legacy scripts: Not to worry! They
> will keep working as before. There are no plans to drop support for
> legacy script. No drama like with the deprecation of Python 2.
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://youtu.be/xZLwtc9x4yA - Anime in Real Life!! (Parody)

Between truth and the search for truth, I opt for the second.
— Bernard Berenson (Unsourced via fortune-mod)

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20220629065040.20709aca%40shlomifish.org.


Re: Vim or Neovim which one for new user?

2022-05-28 Thread Shlomi Fish
Hi Sempuco,

On Sat, 28 May 2022 07:09:15 -0700 (PDT)
Sempuco  wrote:

> ?
> 

on the console, i like nvim a little better than vim, but I usually use gvim
rather than nvim-qt [because it has menus / etc]. 

-- 

Shlomi Fish   https://www.shlomifish.org/
https://shlomifishswiki.branchable.com/Encourage_criticism_and_try_to_get_offended/

If Chuck Norris had dropped his toasts, they would have fallen on the dry
side, so they would have stayed on his good side. But Chuck Norris never
drops toasts. (ZadYree and Shlomi Fish)
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20220529054348.152ee3ce%40shlomifish.org.


Re: Vim-related jobs, grants, etc

2022-05-03 Thread Shlomi Fish
Hi Renato!

On Mon, 2 May 2022 02:36:46 -0700 (PDT)
Renato Fabbri  wrote:

> This is not only for me (I would love to), but a question for the community 
> in general.
> Do we have knowledge of budget (interested companies or individuals, public 
> funding)
> for developing Vim plugins?
> 

FWIW my policy for software dev commissions is here:

https://www.shlomifish.org/philosophy/philosophy/putting-cards-on-the-table-2019-2020/indiv-nodes/amateur-modelled-commerce.xhtml

( item #3 )

I am open for writing vim plugins as long as i can use vim-python3 or similar.

> Explaining a bit...
> In the last years, I have many times thought about the possibility of 
> working with Vim:
> finding payment for developing plugins or even Vim internals, or writing 
> documentation (making videos?).
> I have a made few plugins (for colors, taking periodic notes, having bots 
> input ideas, etc),
> which I sometimes use daily, but it would also be nice to work in other 
> people's code
> to grasp smart (and even recommended) ways to do things.
> I guess this is the case for many Vim users.
> 
> On the other side, we as a company (here at Modena/Italy) may look into 
> (public, private, own) funding to develop Vim (internals, plugins, doc).
> We would also enjoy developing Vim plugins (internals? docs?) if someone 
> needs or wants them.
> 
> Any thoughts?
> 
> Thanks,
> Renato Fabbri
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
List of Text Editors and IDEs - https://shlom.in/IDEs

"Not totally broken" might be a suitable marketing strategy for Microsoft,
but I'm not convinced it's a level we want to be particularly aiming for.
— Matthew Palmer ( https://is.gd/Eil4Io )

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20220503190346.60bce599%40shlomifish.org.


Re: [Pymode]: error: Pymode requires vim compiled with +python3

2021-11-24 Thread Shlomi Fish
Hi!

On Wed, 24 Nov 2021 21:18:13 -0800 (PST)
kaushal  wrote:

> Hi,
> 
> I am running CentOS Linux release 7.9.2009 (Core) and have enabled below 
> entry in .vimrc file
> 
> $cat .vimrc
> set shiftwidth=2
> set shiftround
> set tabstop=4
> set softtabstop=4
> set noexpandtab
> set number
> set ruler
> set noautoindent
> set nosmartindent
> set noincsearch
> syntax enable
> $
> 
> when i do vim testpythonscript.py I am facing the below Pymode error
> 
> $vim testpythonscript.py
> 
> [Pymode]: error: Pymode requires vim compiled with +python3 (exclusively). 
> Most of features will be disabled. 
> 0,0-1 All 

Do you mean https://github.com/python-mode/python-mode ?

> 
> $vim --version
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:44:08)
> Included patches: 1-207, 209-629

This is an old version of vim. you can try building newer cpython3 and vim
using https://en.wikipedia.org/wiki/GNU_Compiler_Collection / etc.using
"--prefix=$HOME/apps/myprefix".

> Huge version without GUI.  Features included (+) or not (-):
> +acl +farsi   +mouse_netterm   +syntax
> +arabic  +file_in_path+mouse_sgr   +tag_binary
> +autocmd +find_in_path-mouse_sysmouse  +tag_old_static
> -balloon_eval+float   +mouse_urxvt -tag_any_white
> -browse  +folding +mouse_xterm -tcl
> ++builtin_terms  -footer  +multi_byte  +terminfo
> +byte_offset +fork()  +multi_lang  +termresponse
> +cindent +gettext -mzscheme+textobjects
> -clientserver-hangul_input+netbeans_intg   +title
> -clipboard   +iconv   +path_extra  -toolbar
> +cmdline_compl   +insert_expand   +perl+user_commands
> +cmdline_hist+jumplist+persistent_undo +vertsplit
> +cmdline_info+keymap  +postscript  +virtualedit
> +comments+langmap +printer +visual
> +conceal +libcall +profile +visualextra
> +cryptv  +linebreak   +python/dyn  +viminfo
> +cscope  +lispindent  -python3 +vreplace
> +cursorbind  +listcmds+quickfix+wildignore
> +cursorshape +localmap+reltime +wildmenu
> +dialog_con  -lua +rightleft   +windows
> +diff+menu+ruby/dyn+writebackup
> +digraphs+mksession   +scrollbind  -X11
> -dnd +modify_fname+signs   -xfontset
> -ebcdic  +mouse   +smartindent -xim
> +emacs_tags  -mouseshape  -sniff   -xsmp
> +eval+mouse_dec   +startuptime -xterm_clipboard
> +ex_extra+mouse_gpm   +statusline  -xterm_save
> +extra_search-mouse_jsbterm   -sun_workshop-xpm
>system vimrc file: "/etc/vimrc"
>  user vimrc file: "$HOME/.vimrc"
>  2nd user vimrc file: "~/.vim/vimrc"
>   user exrc file: "$HOME/.exrc"
>   fall-back for $VIM: "/etc"
>  f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
> Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -Wall 
> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 
> -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D__linux__ -D_REENTRANT -U_FORTIFY_SOURCE 
> -D_FORTIFY_SOURCE=1
> Linking: gcc   -L. -Wl,-z,relro -fstack-protector -rdynamic 
> -Wl,-export-dynamic -Wl,--enable-new-dtags 
> -Wl,-rpath,/usr/lib64/perl5/CORE  -Wl,-z,relro  -L/usr/local/lib 
> -Wl,--as-needed -o vim-lm -lnsl  -lselinux  -lncurses -lacl -lattr 
> -lgpm -ldl   -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE  
> -fstack-protector  -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm 
> -lcrypt -lutil -lpthread -lc
> 
> The python3  feature is not available as per the above output. 
> 
> Please guide. Thanks in advance.
> 
> Best Regards,
> 
> Kaushal
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://github.com/shlomif/validate-your-html - Validate Your HTML

Real programmers use a nice editor and a nice programming language and get it
done in less than O(N!).
— vanguard on Freenode’s ##programming

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20211125082634.7f7cdfe7%40shlomifish.org.


Re: Enable Python feature in vim editor

2021-11-23 Thread Shlomi Fish
Hi Steve!

On Tue, 23 Nov 2021 02:24:11 -0800 (PST)
Steve Martin  wrote:

> I'd give one warning. The scripts pointed to by Shlomi were written back in 
> 2006. The newest versions of Vim have a new indent/python.vim script 
> created just a couple of years ago by the Vim authors. If you are using the 
> latest version of Vim (8.0+) then you should make sure you have all of the 
> scripts that come with Vim installed and it should give you very good 
> handling of Python files out of the box.
> 

The built-in scripts do a worse job, esp. with handling '='/'==', from my
experience.

> On Tuesday, November 23, 2021 at 1:33:26 AM UTC-7 Shlomi Fish wrote:
> 
> > On Mon, 22 Nov 2021 09:06:00 -0800 (PST)
> > kaushal  wrote:
> >  
> > > Hi,
> > > 
> > > I am using vim editor to write python scripts. Is there a way to enable 
> > > syntax, help and indentation of python script?
> > > 
> > > Thanks in advance. I look forward to hearing from you. 
> > > 
> > > Best Regards,
> > > 
> > > Kaushal
> > >   
> >
> > Hi Kaushal!
> >
> > See: https://henry.precheur.org/vim/python.html 
> >
> > -- 
> >
> > Shlomi Fish https://www.shlomifish.org/
> > List of Graphics Apps - https://shlom.in/graphics
> >
> > Alan: Hello, Miss Mandrake. I’m Alan. [she shakes his hand.]
> > John: John. [shakes his hand.]
> > Alan: We’re mighty vampires.
> > Selina: [Amusingly] Selina Mandrake, mighty pirate.
> >
> > Please reply to list if it's a mailing list post - https://shlom.in/reply 
> > .
> >  
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
Star Trek: “We, the Living Dead” - https://shlom.in/st-wtld

Flock aims to be the browser for the social web, but I found it to be the
completely anti-social browser.

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20211123134102.1fb06568%40shlomifish.org.


Re: Enable Python feature in vim editor

2021-11-23 Thread Shlomi Fish
On Mon, 22 Nov 2021 09:06:00 -0800 (PST)
kaushal  wrote:

> Hi,
> 
> I am using vim editor to write python scripts. Is there a way to enable 
> syntax, help and indentation of python script?
> 
> Thanks in advance. I look forward to hearing from you. 
> 
> Best Regards,
> 
> Kaushal
> 

Hi Kaushal!

See: https://henry.precheur.org/vim/python.html 

-- 

Shlomi Fish   https://www.shlomifish.org/
List of Graphics Apps - https://shlom.in/graphics

Alan: Hello, Miss Mandrake. I’m Alan. [she shakes his hand.]
John: John. [shakes his hand.]
Alan: We’re mighty vampires.
Selina: [Amusingly] Selina Mandrake, mighty pirate.

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20211123103315.06a95a0a%40shlomifish.org.


Re: Vim turns 30 today!

2021-11-03 Thread Shlomi Fish
Hi all!

On Wed, 3 Nov 2021 14:38:04 -0400
Steve Litt  wrote:

> 'Philip Rhoades' via vim_use said on Wed, 03 Nov 2021 18:48:37 +1100
> 
> >Yegappan,
> >
> >
> >On 2021-11-03 15:21, Yegappan Lakshmanan wrote:  
> >> https://www.reddit.com/r/vim/comments/ql30pm/vim_turns_30_today/
> >> 
> >> Happy 30th Birthday!!! Thanks Bram.
> >
> >
> >Wow!  What a great program! - I don't think I will ever know all there 
> >is to know about Vim but I keep learning!  
> 
> The absolute truth. I started with regular vi, and Vim was like a
> breath of fresh air. I use it for everything. My blood pressure journal
> is maintained with Vim. I use VimOutliner for all my organizational
> needs. Vim is absolutely indispensable in my workflow.
> 

Mazal Tov! 

BTW, Steve - we are still expecting your followup for the backup files thread
here on vim-use.

> >
> >+1 Thanks to Bram!  
> 
> +8030. That's the number of days I've enjoyably used Vim.
> 
> 
> >Out of interest, I started on Linux with the ~0.9 kernel - I think it 
> >was Soft Landing Linux (?) - was Vim on that distro? (I think SLS came 
> >on about a dozen 3.5" floppies . . ).  
> 
> I was late to the party with Red Hat 5.1, but better late than never :-)
> 
> SteveT
> 
> Steve Litt 
> Spring 2021 featured book: Troubleshooting Techniques of the Successful
> Technologist http://www.troubleshooters.com/techniques
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
My Aphorisms - https://www.shlomifish.org/humour.html

Buddha has the Chuck Norris nature.
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20211104065244.20796777%40shlomifish.org.


Re: Vim backup files

2021-10-17 Thread Shlomi Fish
Hi Steve!

On Sun, 17 Oct 2021 18:18:46 -0400
Steve Litt  wrote:

> Hi all,
> 
> I've used Vim since the 20th century, and of course things keep getting
> better, which means change. As I remember, back in the day, the Vim
> backup files that began with a dot and ended with .swp were text files
> containing what was in the window, and were automatically updated every
> X number of seconds. This appears to no longer be the case.
> .test.pl.swp appeared to be a binary file, so I couldn't just diff it
> with the original.
> 
> In the past, after a crash, when I ran Vim on the file again, it gave
> me a dialog box in which to choose to recover, ignore, quit, whatever.
> This didn't happen in today's crash.
> 
> I tried using :rec in the main file, it said there was no recovery
> file, and maybe changed the recovery file to .test.pl.swp.swp. I tried
> a few other things, but I was always just one step behind and
> eventually lost the swap files completely. Only one of them was
> important, and I have a paper copy, so I should be OK.
> 
> After a crash, I'd like a way to know whether a swap file exists, and
> whether it indicates any differences from what's in my buffer. Is there
> a program that can do this for me, now that the dialog box doesn't
> happen anymore?
> 

I tried it now:

```
[shlomif@telaviv1 ~]$ -t dotfiles 
shlomif[dotfiles]:$trunk$ git i
⇒ On branch master
⇒ Your branch is up to date with 'origin/master'.
⇒ Remotes:
origin  g...@github.com:shlomif/shlomif-computer-settings.git (fetch)
origin  g...@github.com:shlomif/shlomif-computer-settings.git (push)
shlomif[dotfiles]:$trunk$ ls
LICENSE  README.asciidoc  README.asciidoc~  shlomif-settings
shlomif[dotfiles]:$trunk$ gvim README.asciidoc
shlomif[dotfiles]:$trunk$ pkill gvim
Vim: Caught deadly signal TERM
Vim: preserving files...
shlomif[dotfiles]:$trunk$ Vim: Finished.

shlomif[dotfiles]:$trunk$ git i
⇒ On branch master
⇒ Your branch is up to date with 'origin/master'.
⇒ Remotes:
origin  g...@github.com:shlomif/shlomif-computer-settings.git (fetch)
origin  g...@github.com:shlomif/shlomif-computer-settings.git (push)
shlomif[dotfiles]:$trunk$ la
total 68K
drwxr-xr-x  8 shlomif shlomif 4.0K Oct 18 08:15 .git
-rw-r--r--  1 shlomif shlomif 4.8K Apr 21 08:23 .gitignore
-rw-r--r--  1 shlomif shlomif 4.7K Jul 27  2020 .gitignore~
-rw-r--r--  1 shlomif shlomif 2.3K Oct  6  2018 .hgignore
-rw-r--r--  1 shlomif shlomif9 Oct  6  2018 LICENSE
-rw-r--r--  1 shlomif shlomif   17 Oct  6  2018 .perltidyrc
-rw-r--r--  1 shlomif shlomif  866 Jul 21 19:28 README.asciidoc
-rw-r--r--  1 shlomif shlomif  866 Jul 21 19:27 README.asciidoc~
-rw-r--r--  1 shlomif shlomif  12K Oct 18 08:14 .README.asciidoc.swp
drwxr-xr-x 41 shlomif shlomif 4.0K Oct  2  2020 shlomif-settings
drwxr-xr-x  4 shlomif shlomif 4.0K Sep  8  2020 .tidyall.d
-rw-r--r--  1 shlomif shlomif  523 Sep 29  2020 .tidyallrc
-rw-r--r--  1 shlomif shlomif 2.2K Jul 17  2020 .travis.yml
shlomif[dotfiles]:$trunk$  

```

After I edited README.asciidoc again, I got this dialog:
https://www.shlomifish.org/Files/files/images/gvim-recover-Screenshot_2021-10-18_08-16-50.png
. Pressing "Recover" restored my unsaved changes.

So "works for me" with my vim config (
https://github.com/shlomif/shlomif-computer-settings/tree/master/shlomif-settings/vim-conf
).



> Thanks,
> 
> SteveT
> 
> Steve Litt 
> Spring 2021 featured book: Troubleshooting Techniques of the Successful
> Technologist http://www.troubleshooters.com/techniques
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://youtu.be/GoEn1YfYTBM - Tiffany Alvord - “Fall Together”

If Chuck Norris is disappointed by you not following his advice, he’ll survive.
On the other hand, you will not.
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20211018082916.66e2d76d%40shlomifish.org.


Re: best library for data forms entry in vim

2020-11-19 Thread Shlomi Fish
Hi Gabriele,

On Wed, 18 Nov 2020 09:36:30 +0100
Gabriele  wrote:

> On 18/11/2020 9.14, Shlomi Fish wrote:
> > I can recommend *against* using m4, which although part of the POSIX
> > standard, is limited and vile in both syntax and behaviour. I have a page
> > on my site with a roundup of similar text-processing tools and links
> > including preprocessors, and template systems:
> >
> > https://www.shlomifish.org/open-source/resources/text-processing-tools/  
> 
> Well as we're at it I can strongly recommend against GPP, which I see 
> listed first on that page.
> 
> I haven't had experience with the linked logological.org version though, 
> it's not entirely impossible that they improved it a lot.
> 

Thanks for the information. I should also note that the distinction between
template systems and preprocessors is often blurred, similarly to the
distinction between text editors and IDEs. I used to list m4 first in that
section, but someone thought I somehow recommend or endorse it due to that.

> Of course this has still nothing to do with what the thread author wanted
> 

Right, I've only replied due to
https://explainxkcd.com/wiki/index.php/386:_Duty_Calls .


-- 

Shlomi Fish   https://www.shlomifish.org/
https://youtu.be/GoEn1YfYTBM - Tiffany Alvord - “Fall Together”

Every successful open source project will eventually spawn a sub‐project.
— https://www.shlomifish.org/humour/fortunes/osp_rules.html

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201119112958.0671447b%40telaviv1.shlomifish.org.


Re: best library for data forms entry in vim

2020-11-18 Thread Shlomi Fish
Hi all!

On Wed, 18 Nov 2020 09:14:13 +1100
asymptosis  wrote:

> >I need to quickly enter data for thousands of structured documents - ie:
> >where I know the bulk of the document but there are placeholders for
> >specific variables. Think something like this:
> > ...  
> 
> Without specifying why you are constrained to only using Vim, it's hard to
> avoid pointing out that there are better ways to do this.
> 
> Either m4 or mustach should be your friends unless you can explain why Vim is
> literally the only program that could possibly be used.
> 

I can recommend *against* using m4, which although part of the POSIX standard,
is limited and vile in both syntax and behaviour. I have a page on my site with
a roundup of similar text-processing tools and links including preprocessors,
and template systems:

https://www.shlomifish.org/open-source/resources/text-processing-tools/

(Licence is https://creativecommons.org/licenses/by/3.0/ - share and enjoy. The
sources are here:
https://github.com/shlomif/shlomi-fish-homepage/blob/master/src/open-source/resources/text-processing-tools/index.xhtml.tt2
)

> Recommended reading:
> 
> https://www.catb.org/~esr/writings/unix-koans/shell-tools.html
> 

Heh, nice. Regarding awk and ESR, I wrote this blog post:
https://shlomifish.livejournal.com/1991.html reflecting on ESR's case against
awk on TAOUP.

Regards,

Shlomi Fish


-- 

Shlomi Fish   https://www.shlomifish.org/

Chuck Norris has 99 problems including a bitch.
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201118101427.54a6abc1%40telaviv1.shlomifish.org.


Re: Happy birthday!

2020-11-02 Thread Shlomi Fish
Hi Bram!

On Mon, 02 Nov 2020 19:19:38 +0100
Bram Moolenaar  wrote:

> Hello Vim users,
> 
> 29 years ago the very first version of Vim was built and distributed.
> And Vim is more popular than ever before!  So, what's going on these days?
> 

Mazal Tov ( https://en.wikipedia.org/wiki/Mazel_tov ) and thanks for all your
work, effort and contributions. I love (❣️) vim / gvim / nvim / nvim-qt!

-- 

Shlomi Fish   https://www.shlomifish.org/
Optimising Code for Speed - https://shlom.in/optimise

/usr/bin/perl consults Chuck Norris with how to parse Perl.
— Nadav Vinik ; https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201103092202.146a3ebf%40telaviv1.shlomifish.org.


Re: How to grep #tag?

2020-10-10 Thread Shlomi Fish
Hi, Life!

On Sat, 10 Oct 2020 21:09:26 - (UTC)
Lifepillar  wrote:

> How can I grep text with a special symbol, such as #?
> 
> I would like to search a bunch of files containing various #tags, but if
> I try from the command line:
> 
> :grep #sometag
> 
> that does not work. Escaping the hash causes grep to exit with an error:
> 
> :grep \#sometag
> 

Either:

:grep \\#p

Or:

:grep '\#p'

Seem to work here in gvim (Linux; shell is either bash or zsh).

> Any idea?
> 
> Thanks,
> Life.
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
The Case for File Swapping - https://shlom.in/file-swap

SGlau: shut up, Mr. Frog! I’m here on a mission from the Grammar God. Herr
Norris and I are loyal servants of Grammar Nazism, which aims to unite Grammar
Europe under the reign of the Third Grammar Reich. Hail Grammar!
— https://is.gd/htmOCv

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20201011081112.27473f84%40telaviv1.shlomifish.org.


Re: X error and vim dies

2020-05-05 Thread Shlomi Fish
On Tue, 5 May 2020 10:20:18 +0200
Manfred Lotz  wrote:

> Hi Shlomi,
> 
> On Tue, 5 May 2020 08:41:40 +0300
> Shlomi Fish  wrote:
> 
> > Hi Manfred!
> > 
> > On Tue, 5 May 2020 07:27:43 +0200
> > Manfred Lotz  wrote:
> >   
> > > This is Fedora 32, Xfce4 4.14.3 and gvim is 
> > > 
> > > VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 17 2020 00:00:00)
> > > Included patches: 1-587
> > > 
> > > 
> > > I start gvim from terminal (in order to see the error messages) and
> > > do shade. Then I get:
> > > 
> > > BadMatch (invalid parameter attributes)
> > > Vim: Got X error
> > > Vim: Finished.
> > > 
> > > 
> > > I use CopyQ clipboard manager but it happens as well if CopyQ is
> > > stopped.
> > > 
> > > guioptions are: egimrLtT!
> > > 
> > > 
> > 
> > I can try to reproduce it on my own fedora 32 x86-64 system. A few
> > things to try:
> > 
> > 1. What is your hardware? (`hwinfo --short` )
> > 
> > 2. Does it happen in a new user?
> >   
> 
> Yes, the same behavior.
> 

Thanks! I can also reproduce this issue in xfce on my fedora 32 x86-64 system in
a new user, and it doesn't happen in my normal user in kde plasma5.

my hardware is

```
cpu:
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3710 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3706 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3725 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3770 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3766 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3761 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3742 MHz
   Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 3704 MHz
keyboard:
  /dev/input/event3Logitech Keyboard K120
mouse:
  /dev/input/mice  Logitech M105 Optical Mouse
monitor:
   AOC 22E1W
graphics card:
   Intel Iris Plus Graphics 655
sound:
   Intel Cannon Point-LP High Definition Audio Controller
storage:
   Intel Cannon Point-LP SATA Controller [AHCI Mode]
   Non-Volatile memory controller
network:
  wlp0s20f3Intel Cannon Point-LP CNVi [Wireless-AC]
  eno1 Intel Ethernet Connection (6) I219-V
network interface:
  lo   Loopback network interface
  wlp0s20f3Ethernet network interface
  eno1 Ethernet network interface
disk:
  /dev/nvme0n1 Disk
  /dev/sda TOSHIBA HDWL110
partition:
  /dev/nvme0n1p1   Partition
  /dev/sda1Partition
  /dev/sda2Partition
  /dev/sda3Partition
usb controller:
   Intel Cannon Point-LP USB 3.1 xHCI Controller
bios:
   BIOS
bridge:
   Intel Cannon Point-LP PCI Express Root Port #1
   Intel Cannon Point-LP LPC Controller
   Intel Cannon Point-LP PCI Express Root Port #15
   Intel 8th Gen Core Processor Host Bridge/DRAM Registers
   Intel Cannon Point-LP PCI Express Root Port #9
   Intel Cannon Point-LP PCI Express Root Port #5
hub:
   Linux Foundation 2.0 root hub
   Linux Foundation 3.0 root hub
memory:
   Main Memory
bluetooth:
   Intel Bluetooth Device
unknown:
   FPU
   DMA controller
   PIC
   Keyboard controller
   Intel Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core
Processor Gaussian Mixture Model
   Intel Cannon Point-LP MEI Controller #1
   Realtek RTS522A PCI Express Card Reader
   Intel Cannon Point-LP SPI Controller
   Intel Cannon Point-LP Thermal Controller
   Intel Cannon Point-LP Shared SRAM
   Intel Cannon Point-LP SMBus Controller
  /dev/input/event5Logitech Keyboard K120

```

> 
> > 3. Does it happen in icewm and/or jwm?
> >   
> 
> Don't have them installed but I tested in Gnome, and it doesn't happen
> in Gnome!
> 
> 
> > 4. Does it happen with `gvim -u NONE -U NONE`?
> >   
> 
> Yes, it happens as well when starting a naked gvim in Xfce4.
> 
> 
> So it looks like an issue in Xfce4. Perhaps gtk3 related?

I think gnome3 uses gtk3 too.

> 
> 
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
Parody of "The Fountainhead" - https://shlom.in/towtf


Re: X error and vim dies

2020-05-04 Thread Shlomi Fish
Hi Manfred!

On Tue, 5 May 2020 07:27:43 +0200
Manfred Lotz  wrote:

> This is Fedora 32, Xfce4 4.14.3 and gvim is 
> 
> VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 17 2020 00:00:00)
> Included patches: 1-587
> 
> 
> I start gvim from terminal (in order to see the error messages) and do
> shade. Then I get:
> 
> BadMatch (invalid parameter attributes)
> Vim: Got X error
> Vim: Finished.
> 
> 
> I use CopyQ clipboard manager but it happens as well if CopyQ is
> stopped.
> 
> guioptions are: egimrLtT!
> 
> 

I can try to reproduce it on my own fedora 32 x86-64 system. A few things to
try:

1. What is your hardware? (`hwinfo --short` )

2. Does it happen in a new user?

3. Does it happen in icewm and/or jwm?

4. Does it happen with `gvim -u NONE -U NONE`?

-- 

Shlomi Fish   https://www.shlomifish.org/
My Favourite FOSS - https://www.shlomifish.org/open-source/favourite/

   Botje: “you can’t kill Botje” isn’t Newton’s first law.
   It’s not even the 5th.
—  https://www.shlomifish.org/humour/fortunes/sharp-perl.html

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200505084140.18103d85%40telaviv1.shlomifish.org.


Re: Failed to compile vim with lua support.

2020-04-21 Thread Shlomi Fish
On Sat, 18 Apr 2020 21:37:10 +0800
Hongyi Zhao  wrote:

> Shlomi Fish  于2020年4月18日周六 下午8:53写道:
> >
> > Hi,
> >
> > On Sat, 18 Apr 2020 20:42:38 +0800
> > Hongyi Zhao  wrote:
> >  
> > > Shlomi Fish  于2020年4月18日周六 下午8:18写道:  
> > > >
> > > > Hi,
> > > >
> > > > On Sat, 18 Apr 2020 19:51:09 +0800
> > > > Hongyi Zhao  wrote:
> > > >  
> > > > > No, still failed, see following:
> > > > >
> > > > > $ git clone https://github.com/shlomif/vim.git vim.git  
> > > >
> > > > You are using the wrong git branch:
> > > >
> > > > https://github.com/shlomif/vim/tree/lua-moonjit-support
> > > >
> > > > execute "git checkout lua-moonjit-support"  
> > >
> > > Failed, see following:
> > >
> > > $ git clean -xdf
> > > $ git checkout lua-moonjit-support
> > > $ git branch
> > > * lua-moonjit-support
> > >   master
> > > [...]
> > > $ make -j1
> > > [...]
> > > /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> > > /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2011:
> > > undefined reference to `lua_setglobal'
> > > /usr/bin/ld:
> > > /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2013:
> > > undefined reference to `lua_getglobal' /usr/bin/ld:  
> >
> > First of all, I suggest removing moonjit out of /usr/local and installing
> > it to its own path (say "/opt/moonjit" or "/usr/local/apps/moonjit"). After
> > that [and after fixing the "./configure" invocation], try playing with
> > these:  
> 
> The only relative moonjit/luajit in "./configure" invocation is as following:
> 
> --with-luajit
> 
> Which has not location relative argument, so this is no need to fix
> anything for my case of the "./configure" options.
> 
> 
> 
> >
> > https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
> >
> > As well as
> > https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux
> >  
> 
> It does the trick.  Thanks a lot. But I stilll cannot figure out why
> must I install it into separate dirctory otherwise it will failed to
> work.
> 

There can be a lot of software packages installed under /usr/local/* and some
of them may interfere with the building of vim.

> The method I used is as following:
> 
>   I prepare a module file and then use lmod to loade it, the file has
> the following contents which is used to set the environment variables:
> 
> 
> #%Module
> setenv CPATH {/home/werner/moonjit/include/moonjit-2.3}
> setenv C_INCLUDE_PATH {/home/werner/moonjit/include/moonjit-2.3}
> prepend-path LD_LIBRARY_PATH {/home/werner/moonjit/lib}
> setenv LIBRARY_PATH {/home/werner/moonjit/lib}
> prepend-path PATH {/home/werner/moonjit/bin}
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://is.gd/htwEXQ - Integrating GNU Guile into GNU coreutils

Many a man owes his success to his first wife and his second wife to his
success.
— Jim Backus (unsourced)

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200421164421.1ed6fbae%40telaviv1.shlomifish.org.


Re: Failed to compile vim with lua support.

2020-04-20 Thread Shlomi Fish
On Sat, 18 Apr 2020 16:52:52 +0300
Shlomi Fish  wrote:

> CCing the list, see:
> 
> https://www.shlomifish.org/philosophy/computers/netiquette/email/reply-to-list.html
> 
> On Sat, 18 Apr 2020 21:39:03 +0800
> Hongyi Zhao  wrote:
> 
> > Another question: Can this branch be merged into the master?
> >   
> 
> As far as I'm concerned, my changes there are licensed as this:
> 
> https://github.com/shlomif/shlomif-computer-settings/blob/2ad7e2335d5c031e930b742760bc215603d658a1/shlomif-settings/git/commit-messages/cc0-copyright-disclaimer.txt
> 
> However, the change is hacky and will likely break with a different version of
> moonjit. It should be redone using https://en.wikipedia.org/wiki/Find_(Unix)
> or similar.
> 
> Also note that I cannot push to git master so I'll have to open a pull
> request.
> 

See https://github.com/vim/vim/pull/5947 for the cleaned up changeset.


-- 

Shlomi Fish   https://www.shlomifish.org/
Freecell Solver - https://fc-solve.shlomifish.org/

When Chuck Norris disses your product, it’s not good publicity, even though
you can bet he’ll get the name right.
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200418171140.1d32b161%40telaviv1.shlomifish.org.


Re: Failed to compile vim with lua support.

2020-04-18 Thread Shlomi Fish
CCing the list, see:

https://www.shlomifish.org/philosophy/computers/netiquette/email/reply-to-list.html

On Sat, 18 Apr 2020 21:39:03 +0800
Hongyi Zhao  wrote:

> Another question: Can this branch be merged into the master?
> 

As far as I'm concerned, my changes there are licensed as this:

https://github.com/shlomif/shlomif-computer-settings/blob/2ad7e2335d5c031e930b742760bc215603d658a1/shlomif-settings/git/commit-messages/cc0-copyright-disclaimer.txt

However, the change is hacky and will likely break with a different version of
moonjit. It should be redone using https://en.wikipedia.org/wiki/Find_(Unix) or
similar.

Also note that I cannot push to git master so I'll have to open a pull request.



> Best,
> Regards
> 
> Hongyi Zhao  于2020年4月18日周六 下午9:37写道:
> >
> > Shlomi Fish  于2020年4月18日周六 下午8:53写道:  
> > >
> > > Hi,
> > >
> > > On Sat, 18 Apr 2020 20:42:38 +0800
> > > Hongyi Zhao  wrote:
> > >  
> > > > Shlomi Fish  于2020年4月18日周六 下午8:18写道:
> > > >  
> > > > >
> > > > > Hi,
> > > > >
> > > > > On Sat, 18 Apr 2020 19:51:09 +0800
> > > > > Hongyi Zhao  wrote:
> > > > >  
> > > > > > No, still failed, see following:
> > > > > >
> > > > > > $ git clone https://github.com/shlomif/vim.git vim.git  
> > > > >
> > > > > You are using the wrong git branch:
> > > > >
> > > > > https://github.com/shlomif/vim/tree/lua-moonjit-support
> > > > >
> > > > > execute "git checkout lua-moonjit-support"  
> > > >
> > > > Failed, see following:
> > > >
> > > > $ git clean -xdf
> > > > $ git checkout lua-moonjit-support
> > > > $ git branch
> > > > * lua-moonjit-support
> > > >   master
> > > > [...]
> > > > $ make -j1
> > > > [...]
> > > > /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> > > > /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2011:
> > > > undefined reference to `lua_setglobal'
> > > > /usr/bin/ld:
> > > > /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2013:
> > > > undefined reference to `lua_getglobal' /usr/bin/ld:  
> > >
> > > First of all, I suggest removing moonjit out of /usr/local and installing
> > > it to its own path (say "/opt/moonjit" or "/usr/local/apps/moonjit").
> > > After that [and after fixing the "./configure" invocation], try playing
> > > with these:  
> >
> > The only relative moonjit/luajit in "./configure" invocation is as
> > following:
> >
> > --with-luajit
> >
> > Which has not location relative argument, so this is no need to fix
> > anything for my case of the "./configure" options.
> >
> >
> >  
> > >
> > > https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
> > >
> > > As well as
> > > https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux
> > >  
> >
> > It does the trick.  Thanks a lot. But I stilll cannot figure out why
> > must I install it into separate dirctory otherwise it will failed to
> > work.
> >
> > The method I used is as following:
> >
> >   I prepare a module file and then use lmod to loade it, the file has
> > the following contents which is used to set the environment variables:
> >
> >
> > #%Module
> > setenv CPATH {/home/werner/moonjit/include/moonjit-2.3}
> > setenv C_INCLUDE_PATH {/home/werner/moonjit/include/moonjit-2.3}
> > prepend-path LD_LIBRARY_PATH {/home/werner/moonjit/lib}
> > setenv LIBRARY_PATH {/home/werner/moonjit/lib}
> > prepend-path PATH {/home/werner/moonjit/bin}
> >
> >
> > See the final result:
> >  $ ldd src/vim | grep jit
> > libluajit-5.1.so.2 => /home/werner/moonjit/lib/libluajit-5.1.so.2
> > (0x7f56f449)
> >
> > $ vim --version
> > VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 18 2020 21:26:42)
> > Included patches: 1-592
> > Compiled by werner@ubuntu-01
> > Huge version with GTK3 GUI.  Features included (+) or not (-):
> > +acl   -farsi +mouse_sgr +tag_binary
> > +arabic+file_in_path  -mouse_sysmouse-tag_old_static
> > +autocmd   +find_in_path  +mouse_urxvt   -tag_any_

Re: Failed to compile vim with lua support.

2020-04-18 Thread Shlomi Fish
Hi,

On Sat, 18 Apr 2020 20:42:38 +0800
Hongyi Zhao  wrote:

> Shlomi Fish  于2020年4月18日周六 下午8:18写道:
> >
> > Hi,
> >
> > On Sat, 18 Apr 2020 19:51:09 +0800
> > Hongyi Zhao  wrote:
> >  
> > > No, still failed, see following:
> > >
> > > $ git clone https://github.com/shlomif/vim.git vim.git  
> >
> > You are using the wrong git branch:
> >
> > https://github.com/shlomif/vim/tree/lua-moonjit-support
> >
> > execute "git checkout lua-moonjit-support"  
> 
> Failed, see following:
> 
> $ git clean -xdf
> $ git checkout lua-moonjit-support
> $ git branch
> * lua-moonjit-support
>   master
> [...]
> $ make -j1
> [...]
> /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2011:
> undefined reference to `lua_setglobal'
> /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2013:
> undefined reference to `lua_getglobal' /usr/bin/ld:

First of all, I suggest removing moonjit out of /usr/local and installing it to
its own path (say "/opt/moonjit" or "/usr/local/apps/moonjit"). After that [and
after fixing the "./configure" invocation], try playing with these:

https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html

As well as
https://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux

Good luck!

> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2054:
> undefined reference to `lua_setglobal' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_addlstring':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:651:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:647:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:649:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_setrange':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2071:
> undefined reference to `lua_getglobal' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_print':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1595:
> undefined reference to `lua_getglobal' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1600:
> undefined reference to `lua_callk' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1604:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_debug':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1618:
> undefined reference to `lua_getglobal' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1620:
> undefined reference to `lua_rotate' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1633:
> undefined reference to `lua_pcallk' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1627:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `luaV_newstate':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2064:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `luaV_luaeval':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1952:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `ex_lua':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2131:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `ex_luado':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2165:
> undefined reference to `lua_callk' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2176:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `ex_luafile':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2208:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `set_ref_in_lua':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2247:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `lua_buffer_free':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2223:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `lua_window_free':
> /home/werner/Public/editor/vim/lua-moongit

Re: Failed to compile vim with lua support.

2020-04-18 Thread Shlomi Fish
Hi,

On Sat, 18 Apr 2020 19:51:09 +0800
Hongyi Zhao  wrote:

> No, still failed, see following:
> 
> $ git clone https://github.com/shlomif/vim.git vim.git

You are using the wrong git branch:

https://github.com/shlomif/vim/tree/lua-moonjit-support

execute "git checkout lua-moonjit-support"

> $ cd vim.git
> $ ./configure \
> --enable-fail-if-missing \
> --enable-autoservername \
> --enable-cscope \
> --enable-fontset \
> --enable-multibyte \
> --enable-luainterp \
> --enable-perlinterp \
> --enable-pythoninterp=yes \
> --enable-python3interp=yes \
> --enable-rubyinterp \
> --enable-tclinterp \
> --with-tclsh=/usr/bin/tclsh \
> --enable-gui=gtk3 \
> --enable-terminal \
> --enable-xim \
> --with-x \
> --with-luajit \
> --with-lua-prefix=/usr/local \
> --with-features=huge
> 
> $ make -j1
> [...]
> /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2011:
> undefined reference to `lua_setglobal'
> /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2013:
> undefined reference to `lua_getglobal' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2054:
> undefined reference to `lua_setglobal' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_addlstring':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:651:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:647:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:649:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_setrange':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2071:
> undefined reference to `lua_getglobal' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_print':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1595:
> undefined reference to `lua_getglobal' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1600:
> undefined reference to `lua_callk' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1604:
> undefined reference to `luaL_prepbuffsize' /usr/bin/ld: objects/if_lua.o: in
> function `luaV_debug':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1618:
> undefined reference to `lua_getglobal' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1620:
> undefined reference to `lua_rotate' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1633:
> undefined reference to `lua_pcallk' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1627:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `luaV_newstate':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2064:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `luaV_luaeval':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:1952:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `ex_lua':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2131:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `ex_luado':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2165:
> undefined reference to `lua_callk' /usr/bin/ld:
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2176:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `ex_luafile':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2208:
> undefined reference to `lua_pcallk' /usr/bin/ld: objects/if_lua.o: in
> function `set_ref_in_lua':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2247:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `lua_buffer_free':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2223:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `lua_window_free':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2224:
> undefined reference to `lua_callk' /usr/bin/ld: objects/if_lua.o: in function
> `do_luaeval':
> /home/werner/Public/editor/vim/lua-moongit-support/vim.git/src/if_lua.c:2234:
> undefined reference t

Re: Failed to compile vim with lua support.

2020-04-18 Thread Shlomi Fish
Hi!

On Sat, 18 Apr 2020 18:56:56 +0800
Hongyi Zhao  wrote:

> Shlomi Fish  于2020年4月18日周六 下午6:28写道:
> >
> > Hi!
> >
> > CCing the list.
> >
> > On Sat, 18 Apr 2020 18:02:18 +0800
> > Hongyi Zhao  wrote:
> >  
> > > Aonther thing to note: I installed moonjit to substitute the luajit
> > > which is not-maintained now.
> > >
> > > See following:
> > > $ luajit -v
> > > moonjit 2.2.0 -- Copyright (C) 2019-2020 moonjit developers.
> > > https://github.com/moonjit/moonjit
> > >  
> >
> > With this:
> >
> > ```
> >
> > ./configure \
> > --enable-fail-if-missing \
> > --enable-autoservername \
> > --enable-cscope \
> > --enable-fontset \
> > --enable-multibyte \
> > --enable-luainterp \
> > --enable-perlinterp \
> > --enable-pythoninterp=yes \
> > --enable-python3interp=yes \
> > --enable-rubyinterp \
> > --enable-tclinterp \
> > --with-tclsh=/usr/bin/tclsh \
> > --enable-gui=gtk3 \
> > --enable-terminal \
> > --enable-xim \
> > --with-x \
> > --with-luajit \
> > --with-lua-prefix=/usr \  
> 
> No, I use the self compiled lua/moonjit which installed under /usr/local:
> 
> werner@ubuntu-01:~$ which lua
> /usr/local/bin/lua
> werner@ubuntu-01:~$ which luajit
> /usr/local/bin/luajit
> 

After using this to build moonjit git:

```
#! /bin/sh
#
# moonjit.sh
# Copyright (C) 2020 Shlomi Fish 
#
# Distributed under terms of the MIT license.
#


make PREFIX="$HOME/apps/to-del-moonjit" all install
```

and this to build vim:

```
luajit_pref="$HOME/apps/to-del-moonjit"
PATH="$luajit_pref/bin:$PATH"
./configure \
--enable-fail-if-missing \
--enable-autoservername \
--enable-cscope \
--enable-fontset \
--enable-multibyte \
--enable-luainterp \
--enable-perlinterp \
--enable-pythoninterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp \
--enable-tclinterp \
--with-tclsh=/usr/bin/tclsh \
--enable-gui=gtk3 \
--enable-terminal \
--enable-xim \
--with-x \
--with-luajit \
--with-lua-prefix="$luajit_pref" \
--with-features=huge

```

I got:

```
checking for Haiku... no
checking for QNX... no
checking for Darwin (Mac OS X)... no
checking AvailabilityMacros.h usability... no
checking AvailabilityMacros.h presence... no
checking for AvailabilityMacros.h... no
checking --with-local-dir argument... Defaulting to /usr/local
checking --with-vim-name argument... Defaulting to vim
checking --with-ex-name argument... Defaulting to ex
checking --with-view-name argument... Defaulting to view
checking --with-global-runtime argument... no
checking --with-modified-by argument... no
checking if character set is EBCDIC... no
checking --disable-smack argument... no
checking linux/xattr.h usability... yes
checking linux/xattr.h presence... yes
checking for linux/xattr.h... yes
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
checking --disable-selinux argument... no
checking for is_selinux_enabled in -lselinux... yes
checking selinux/selinux.h usability... yes
checking selinux/selinux.h presence... yes
checking for selinux/selinux.h... yes
checking --with-features argument... huge
checking --with-compiledby argument... no
checking --disable-xsmp argument... no
checking --disable-xsmp-interact argument... no
checking --enable-luainterp argument... yes
checking --with-lua-prefix argument... /home/shlomif/apps/to-del-moonjit
checking --with-luajit... yes
checking for luajit... /home/shlomif/apps/to-del-moonjit/bin/luajit
checking LuaJIT version... moonjit 2.2.0 -- Copyright (C) 2019-2020 moonjit
developers. https://github.com/moonjit/moonjit checking Lua version of
LuaJIT... 5.1 checking if lua.h can be found in
/home/shlomif/apps/to-del-moonjit/include/luajit-moonjit 2.2.0 -- Copyright (C)
2019-2020 moonjit developers. https://github.com/moonjit/moonjit... checking if
lua.h can be found in /home/shlomif/apps/to-del-moonjit/include... no checking
if lua.h can be found in /home/shlomif/apps/to-del-moonjit/include/lua5.1... no
configure: error: could not configure lua [shlomif@telaviv1 vim-git]$
```

So my guess is that vim and moonjit are not compatible with each other.

YOu can try my fix at https://github.com/shlomif/vim/tree/lua-moonjit-support
(note the branch) which seems to work.

> > --with-features=huge
> >
> > ```
> >
> > vim builds fine on mageia v8 x64. But I changed the lua-prefix to /usr and
> > using mageia's luajit.
> >  
> > > Hongyi Zhao  于2020年4月18日周六 下午5:59写道:  
> > > >
> > > > Shlomi Fish  于2020年4月18日周六 下午3:20写道:
> &g

Re: Failed to compile vim with lua support.

2020-04-18 Thread Shlomi Fish
Hi!

CCing the list.

On Sat, 18 Apr 2020 18:02:18 +0800
Hongyi Zhao  wrote:

> Aonther thing to note: I installed moonjit to substitute the luajit
> which is not-maintained now.
> 
> See following:
> $ luajit -v
> moonjit 2.2.0 -- Copyright (C) 2019-2020 moonjit developers.
> https://github.com/moonjit/moonjit
> 

With this:

```

./configure \
--enable-fail-if-missing \
--enable-autoservername \
--enable-cscope \
--enable-fontset \
--enable-multibyte \
--enable-luainterp \
--enable-perlinterp \
--enable-pythoninterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp \
--enable-tclinterp \
--with-tclsh=/usr/bin/tclsh \
--enable-gui=gtk3 \
--enable-terminal \
--enable-xim \
--with-x \
--with-luajit \
--with-lua-prefix=/usr \
--with-features=huge

```

vim builds fine on mageia v8 x64. But I changed the lua-prefix to /usr and
using mageia's luajit.

> Hongyi Zhao  于2020年4月18日周六 下午5:59写道:
> >
> > Shlomi Fish  于2020年4月18日周六 下午3:20写道:  
> > >
> > > Hi Hongyi Zhao!
> > >
> > > On Sat, 18 Apr 2020 08:09:57 +0800
> > > Hongyi Zhao  wrote:
> > >  
> > > > Hi,
> > > >
> > > > Latest git version of vim, see the following:
> > > >
> > > > $ make -j24
> > > > /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> > > > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2011: undefined
> > > > reference to `lua_setglobal'  
> > >
> > > Can you try with `make -j1`?  
> >
> > But I previously can make vim with -j > 1.
> >
> > Failed, see following:
> >
> > $ make -j1
> > [...]
> > /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2011: undefined
> > reference to `lua_setglobal'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2013:
> > undefined reference to `lua_getglobal'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2054:
> > undefined reference to `lua_setglobal'
> > /usr/bin/ld: objects/if_lua.o: in function `luaV_addlstring':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:651: undefined
> > reference to `luaL_prepbuffsize'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:647:
> > undefined reference to `luaL_prepbuffsize'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:649:
> > undefined reference to `luaL_prepbuffsize'
> > /usr/bin/ld: objects/if_lua.o: in function `luaV_setrange':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2071: undefined
> > reference to `lua_getglobal'
> > /usr/bin/ld: objects/if_lua.o: in function `luaV_print':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1595: undefined
> > reference to `lua_getglobal'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1600:
> > undefined reference to `lua_callk'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1604:
> > undefined reference to `luaL_prepbuffsize'
> > /usr/bin/ld: objects/if_lua.o: in function `luaV_debug':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1618: undefined
> > reference to `lua_getglobal'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1620:
> > undefined reference to `lua_rotate'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1633:
> > undefined reference to `lua_pcallk'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1627:
> > undefined reference to `lua_callk'
> > /usr/bin/ld: objects/if_lua.o: in function `luaV_newstate':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2064: undefined
> > reference to `lua_callk'
> > /usr/bin/ld: objects/if_lua.o: in function `luaV_luaeval':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:1952: undefined
> > reference to `lua_pcallk'
> > /usr/bin/ld: objects/if_lua.o: in function `ex_lua':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2131: undefined
> > reference to `lua_pcallk'
> > /usr/bin/ld: objects/if_lua.o: in function `ex_luado':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2165: undefined
> > reference to `lua_callk'
> > /usr/bin/ld: /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2176:
> > undefined reference to `lua_pcallk'
> > /usr/bin/ld: objects/if_lua.o: in function `ex_luafile':
> > /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2208: undefined
> > reference to `lua_pcallk'
> > /usr/bin/ld: objects/if_lua.o: in

Re: Failed to compile vim with lua support.

2020-04-18 Thread Shlomi Fish
Hi Hongyi Zhao!

On Sat, 18 Apr 2020 08:09:57 +0800
Hongyi Zhao  wrote:

> Hi,
> 
> Latest git version of vim, see the following:
> 
> $ make -j24
> /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2011: undefined
> reference to `lua_setglobal'

Can you try with `make -j1`?

Note that vim-from-git builds fine here on mageia linux v8 x64, after running
this script:

https://github.com/shlomif/shlomif-computer-settings/blob/d70ed1eac69f2ae85e1493e2f693b8e2b32d228a/shlomif-settings/build-scripts/build/vim.sh

```
#!/usr/bin/env bash
set -x
./configure "$@" --prefix=$HOME/apps/vim \
--enable-fail-if-missing \
--with-features=huge \
--enable-luainterp \
--enable-perlinterp \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-tclinterp \
--enable-gui=gtk3 \

```

```
[shlomif@telaviv1 vim-git]$ git show | head -3
commit 2695de63e370235c4d3d73e3fe07cc1006de3460
Author: Bram Moolenaar 
Date:   Fri Apr 17 21:13:01 2020 +0200
[shlomif@telaviv1 vim-git]$ ldd src/vim | grep lua
liblua.so.5.2 => /lib64/liblua.so.5.2 (0x7fe3c73a3000)
[shlomif@telaviv1 vim-git]$ 
```

Can you provide more details about your operating system and how you ran
`./configure`?



-- 

Shlomi Fish   https://www.shlomifish.org/
https://is.gd/MQHVF3 - The Atom Text Editor edits a 2,000,001B file

I promised, I forgot, I did not keep my promise — just shoot me, and get on
with it!
— https://www.shlomifish.org/humour.html

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200418102014.2b069f37%40telaviv1.shlomifish.org.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Shlomi Fish
Hi Andy,

On Mon, 16 Mar 2020 16:09:55 +
"Kennedy, Marcus A."  wrote:

> Hello,
> 
> This issue has been going on for about 6-8 years and on multiple systems.  I
> cannot use the mouse when it is in the last 20% of the screen (no click,
> scroll, select, etc). I'm using Slackware 14.2 with the stock versions of
> KDE, Konsole, and vim.
> 
> I attempted mouse operations on the right side of the screen with pico and it
> works.
> 

In konsole on kde plasma5 on fedora 31 x86-64 , clicking the mouse does nothing
in any part of the screen with all of 'nano', 'pico' and 'vim'. It works fine
in the gtk+ based gvim, which isn't a console/terminal app.

> Anyone have any ideas as to why this is happening?
> 
> Thanks,
> Andy
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://github.com/shlomif/what-you-should-know-about-automated-testing

Flock aims to be the browser for the social web, but I found it to be the
completely anti-social browser.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316183221.48fad032%40telaviv1.shlomifish.org.


Re: match string in part of List buffer starting at index

2020-01-17 Thread Shlomi Fish
On Fri, 17 Jan 2020 04:42:30 -0800 (PST)
Ni Va  wrote:

> That sort of thing
> match(s:buffer[startidx : ]
>

Try using
https://learnvimscriptthehardway.stevelosh.com/chapters/27.html#joining or a
loop or whatever.
 
> Le vendredi 17 janvier 2020 09:40:36 UTC+1, Shlomi Fish a écrit :
> >
> > On Thu, 16 Jan 2020 23:48:00 -0800 (PST) 
> > Ni Va > wrote: 
> >  
> > > Hi, 
> > > 
> > > Would like to match a string onto a part of List starting to Nth index ? 
> > > 
> > > Thank you 
> > >   
> >
> > Hi, 
> >
> > what do you mean? 
> >
> > -- 
> >
> > Shlomi Fish   https://www.shlomifish.org/ 
> > Let’s talk about restores instead of backups - http://is.gd/WatQqu 
> >
> > Attention: There will be a rain dance Friday night, weather permitting. 
> > — Source unknown, via Nadav Har’El. 
> >
> > Please reply to list if it's a mailing list post - http://shlom.in/reply 
> > . 
> >  
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
Interview with Ben Collins-Sussman - https://shlom.in/sussman

Chuck Norris killed the fat lady before she could sing.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200117165201.24c9fbe3%40telaviv1.shlomifish.org.


Re: match string in part of List buffer starting at index

2020-01-17 Thread Shlomi Fish
On Thu, 16 Jan 2020 23:48:00 -0800 (PST)
Ni Va  wrote:

> Hi,
> 
> Would like to match a string onto a part of List starting to Nth index ?
> 
> Thank you
> 

Hi,

what do you mean?

-- 

Shlomi Fish   https://www.shlomifish.org/
Let’s talk about restores instead of backups - http://is.gd/WatQqu

Attention: There will be a rain dance Friday night, weather permitting.
— Source unknown, via Nadav Har’El.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200117104022.52932702%40telaviv1.shlomifish.org.


Re: Display of characters is inconsistent

2019-06-13 Thread Shlomi Fish
On Wed, 12 Jun 2019 21:29:56 -0400
Eric Weir  wrote:

> > On Jun 12, 2019, at 7:55 PM, 'Grant Taylor' via vim_use
> >  wrote:
> > 
> > On 6/12/19 2:03 PM, Eric Weir wrote:  
> >> I’m coming back to vim after an extended absence. Display of text is
> >> splotchy, not sharp as I remember. The problem seems to be certain
> >> characters, primarily “i” and “j” as near as I can tell are not as bright
> >> as others. A screen shot is attached. Clues as to why this is happening
> >> would be appreciated.  
> > 
> > Is this Gvim?  Or is this by chance a terminal emulator issue?  
> 
> Sorry. Should’ve mentioned. MacVim
> 

Can you try to see if it happens with different fonts? E.g:
https://duckduckgo.com/?q=programmer+fonts=v140-1=web .

> --
> Eric Weir
> Decatur, GA  USA
> 
> "Giving is an essence of existence….”
> 
> - David Whyte
> 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
“So, who the hell is Qoheleth?” - http://shlom.in/qoheleth

I’m not young enough to know everything.
— https://en.wikiquote.org/wiki/J._M._Barrie

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190613114651.668bf2e2%40telaviv1.shlomifish.org.
For more options, visit https://groups.google.com/d/optout.


Re: How to get C-x C-f to properly handle $HOME but not expand it into the text?

2019-05-20 Thread Shlomi Fish
On Mon, 20 May 2019 19:52:01 +0200
"'Andy Wokula' via vim_use"  wrote:

> Am 17.05.2019 um 20:11 schrieb Shlomi Fish:
> > On Fri, 17 May 2019 19:36:26 +0200
> > "'Andy Wokula' via vim_use"  wrote:
> >  
> >> Am 17.05.2019 um 14:15 schrieb Shlomi Fish:  
> >>> Hi all!
> >>>
> >>> With gvim -U NONE -u NONE .jwmrc (which the XML file here
> >>> https://github.com/shlomif/shlomif-computer-settings/blob/master/shlomif-settings/jwm/jwm.jwmrc
> >>> ) pressing Ctrl-x and ctrl-f in insert mode in line 130 causes $HOME to
> >>> expand into /home/shlomif in the text, which I wish to avoid, but want the
> >>> paths to complete relative to the home dir. How can it be done?
> >>>
> >>> I've searched google, DDG and the vim docs to no avail.  
> >>
> >> I think I've something for you (this is quite old already ...):
> >>   https://gist.github.com/Houl/20881b64aa05d5ecda60914598b3e754
> >>
> >> This script temporarily expands an env var like $HOME and later converts it
> >> back.
> >>
> >> Usage:
> >>
> >> * store script in the runtimepath under
> >> autoload\nwo\mappings\cxf_mod.vim
> >> (only tested under Windows!)
> >>
> >> * add a mapping for i_CTRL-X_CTRL-F in your vimrc:
> >> imapnwo#mappings#cxf_mod#Plug()
> >>  
> >
> > Thanks, Andy! Can you please make it a github/etc.-plugin-repo similar to
> > https://github.com/shlomif/vim-extract-variable so it can be used using
> > vam/vundle/pathogen/etc.?  
> 
> https://github.com/Houl/cxf_mod-vim
> 

Thanks Andy! It works reasonably well. Starred.

-- Shlomi

> HTH,
> Andy
> 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Graphics Apps - http://shlom.in/graphics

Emacs is a nice operating system, but what it lacks, in order to compete with
Linux, is a good text editor.
— based on http://en.wikiquote.org/wiki/Emacs

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190521034711.28d85dd6%40telaviv1.shlomifish.org.
For more options, visit https://groups.google.com/d/optout.


Re: How to get C-x C-f to properly handle $HOME but not expand it into the text?

2019-05-17 Thread Shlomi Fish
On Fri, 17 May 2019 19:36:26 +0200
"'Andy Wokula' via vim_use"  wrote:

> Am 17.05.2019 um 14:15 schrieb Shlomi Fish:
> > Hi all!
> >
> > With gvim -U NONE -u NONE .jwmrc (which the XML file here
> > https://github.com/shlomif/shlomif-computer-settings/blob/master/shlomif-settings/jwm/jwm.jwmrc
> > ) pressing Ctrl-x and ctrl-f in insert mode in line 130 causes $HOME to
> > expand into /home/shlomif in the text, which I wish to avoid, but want the
> > paths to complete relative to the home dir. How can it be done?
> >
> > I've searched google, DDG and the vim docs to no avail.  
> 
> I think I've something for you (this is quite old already ...):
>  https://gist.github.com/Houl/20881b64aa05d5ecda60914598b3e754
> 
> This script temporarily expands an env var like $HOME and later converts it
> back.
> 
> Usage:
> 
> * store script in the runtimepath under
>autoload\nwo\mappings\cxf_mod.vim
>(only tested under Windows!)
> 
> * add a mapping for i_CTRL-X_CTRL-F in your vimrc:
>imapnwo#mappings#cxf_mod#Plug()
> 

Thanks, Andy! Can you please make it a github/etc.-plugin-repo similar to
https://github.com/shlomif/vim-extract-variable so it can be used using
vam/vundle/pathogen/etc.?



-- 
-
Shlomi Fish   http://www.shlomifish.org/
What does “Zionism” mean? - http://shlom.in/def-zionism

Jack: Hi Sophie!
Sophie: Don’t “Hi, Sophie!” me.
Jack: Don’t “Don’t ‘Hi, Sophie!’ me” me!

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190517211125.5f1be7b0%40telaviv1.shlomifish.org.
For more options, visit https://groups.google.com/d/optout.


How to get C-x C-f to properly handle $HOME but not expand it into the text?

2019-05-17 Thread Shlomi Fish
Hi all!

With gvim -U NONE -u NONE .jwmrc (which the XML file here
https://github.com/shlomif/shlomif-computer-settings/blob/master/shlomif-settings/jwm/jwm.jwmrc
) pressing Ctrl-x and ctrl-f in insert mode in line 130 causes $HOME to expand
into /home/shlomif in the text, which I wish to avoid, but want the paths to
complete relative to the home dir. How can it be done?

I've searched google, DDG and the vim docs to no avail.

-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/facts/Emma-Watson/

average_drifter prefers something more lightweight than Windows Notepad. Like
Eclipse.
— Freenode’s #perl-cats

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190517151511.4f3efead%40telaviv1.shlomifish.org.
For more options, visit https://groups.google.com/d/optout.


Re: Personal syntax highligth for ToDo and else.

2019-04-23 Thread Shlomi Fish
On Tue, 23 Apr 2019 00:12:21 +0200
white-wolf  wrote:

> hi,
> i use txt to organize my ToDo, my AdresseBook en else.
> i would like to colorize my txt by a personnal syntax hightlight.
> 

Hi,

perhaps see https://github.com/aaronbieber/vim-quicktask and also
https://www.shlomifish.org/meta/FAQ/#todo_lists_and_organised .

Regards,

Shlomi

> how can do ?
> 
> Best Regard,
> Wolf.
> 



-- 
---------
Shlomi Fish   http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

When Chuck Norris receives an E-mail signed “Sent from my iPhone”, he makes
sure that iPhone won’t be able to send any more E-mails — to Norris or
otherwise.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Evaluating the cost to type something in vim

2019-01-24 Thread Shlomi Fish
Hi Peng,

On Tue, 22 Jan 2019 14:20:50 -0600
Peng Yu  wrote:

> Hi,
> 
> I'd like to evaluate the cost of typing in vim. It should not just
> simply counting the number of characters or words.
> 
> For example, the metric should capture things like the following and more.
> 
> - If there are two lines that are the same, people would type the
> first line and copy-paste to generate the 2nd line. So the number of
> keystrokes would be less than the total number of characters.
> - If two strings are similar, people would make a copy and edit the copy.
> - Repeatedly type something would be considered of less cost than type
> non-repetitive characters of the same length.
> - ctrl-P/N to save keystrokes for the words already typed before.
> etc.
> 
> Is there a tool to evaluate the least cost to type something in vim as
> accurately as possible? Thanks.
> 

well, vi (and ergo vim) keystrokes are
https://en.wikipedia.org/wiki/Turing_completeness (also see
https://stackoverflow.com/questions/7284/what-is-turing-complete ). As a
result, finding the minimal user input that yields a buffer with the input
falls under https://en.wikipedia.org/wiki/Code_golf or perhaps
https://en.wikipedia.org/wiki/Kolmogorov_complexity . Also see
http://www.vimgolf.com/ for vim golf.

Regards,

Shlomi

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
Parody of "The Fountainhead" - http://shlom.in/towtf

   We have a saying: “We survived Pharaoh - we’ll survive this.”
   I suppose it’s all cake after Pharaoh.
— Freenode’s #reddit channel

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to auto delete removed file's undo/backup ?

2018-12-01 Thread Shlomi Fish
On Sat, 1 Dec 2018 21:41:15 +0800
Linus Boyle  wrote:

> Thank you, Shlomi. This helps me a lot.
> 

You are welcome.


-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://youtu.be/KxGRhd_iWuE - Never Give Up!!

 Also, .* is the most unspecific regex you can use. It’s like saying:
oh well match something of anything or nothing, and, please, a lot of it ;)

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to auto delete removed file's undo/backup ?

2018-12-01 Thread Shlomi Fish
Hi Linus,

On Sat, 1 Dec 2018 18:56:47 +0800
Linus Boyle  wrote:

> Hi Shlomi,
> 
> thx for your humour, lol. I use GNU/linux, and maybe bash script can handle
> this quite well.
> 
> I'm just wondering if I can achieve my goal easily, before I get my hand
> dirty to write the script.
> 

see
https://unix.stackexchange.com/questions/92346/why-does-find-mtime-1-only-return-files-older-than-2-days
and -print0 and https://en.wikipedia.org/wiki/Xargs -0.


> Shlomi Fish  于2018年12月1日周六 下午5:58写道:
> 
> > Hi Linus!
> >
> > On Fri, 30 Nov 2018 23:41:24 -0800 (PST)
> > Linus Boyle  wrote:
> >  
> > > Hello all,
> > >
> > > I have setting in my .vimrc to put all the undo/backup in a specific  
> > folder.  
> > > And now it has taken up too much space(around a hundred megabytes, say).  
> > Many  
> > > files are no longer needed because the original file has been removed.  
> > I'm  
> > > not good at scripting and all I come up with is to parse the filename and
> > > test its existence. So I'm wondering if there're easy ways to clean them  
> > up.  
> > > any suggestion is welcome
> > >  
> >
> > what is your OS and preferred scripting language / environment? See
> > https://www.quotes.net/quote/34583 .  
> > > Best Regards,
> > > Linus Boyle
> > >  
> >
> >
> >
> > --
> > -
> > Shlomi Fish   http://www.shlomifish.org/
> > What does “Zionism” mean? - http://shlom.in/def-zionism
> >
> > In the beginning the Universe was created. This has made a lot of people
> > very
> > angry and been widely regarded as a bad move.
> > — https://en.wikiquote.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy
> >
> > Please reply to list if it's a mailing list post - http://shlom.in/reply .
> >
> > --
> > --
> > 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+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >  
> 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
What does “Zionism” mean? - http://shlom.in/def-zionism

Hacker sees bug. Hacker does not want bug. Hacker fixes bug.
— http://www.shlomifish.org/humour.html

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to auto delete removed file's undo/backup ?

2018-12-01 Thread Shlomi Fish
Hi Linus!

On Fri, 30 Nov 2018 23:41:24 -0800 (PST)
Linus Boyle  wrote:

> Hello all,
> 
> I have setting in my .vimrc to put all the undo/backup in a specific folder.
> And now it has taken up too much space(around a hundred megabytes, say). Many
> files are no longer needed because the original file has been removed. I'm
> not good at scripting and all I come up with is to parse the filename and
> test its existence. So I'm wondering if there're easy ways to clean them up.
> any suggestion is welcome
> 

what is your OS and preferred scripting language / environment? See
https://www.quotes.net/quote/34583 .
> Best Regards,
> Linus Boyle
> 



-- 
-----
Shlomi Fish   http://www.shlomifish.org/
What does “Zionism” mean? - http://shlom.in/def-zionism

In the beginning the Universe was created. This has made a lot of people very
angry and been widely regarded as a bad move.
— https://en.wikiquote.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: debugging vim via gdb, best practices

2018-06-30 Thread Shlomi Fish
On Fri, 29 Jun 2018 19:58:48 -0700 (PDT)
Greg Mattson  wrote:

> all, 
> 
> I was wondering, what is the best method to use for debugging vim itself?
> 
> I'd like to be able to load up an interactive vim session in one window, and
> attach to the vim process in another, be able to set breakpoints, etc in such
> a way that I minimize the interference to the underlying process.
> 
> is attaching to the vim pid workable? 

yes, see
https://stackoverflow.com/questions/14370972/how-to-attach-a-process-in-gdb

> or is there a better more dedicated
> solution, one sort of like python's RemotePdb which allows you to telnet into
> the process itself?
> 

https://sourceware.org/gdb/onlinedocs/gdb/Server.html

> thanks much for any info here.. this is as much for my education as it is to
> track down any particular bug..
> 



-- 
-----
Shlomi Fish   http://www.shlomifish.org/
List of Text Editors and IDEs - http://shlom.in/IDEs

As every cat owner knows, nobody owns a cat.
— Source unknown, via Nadav Har’El.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: images and retina display

2018-06-20 Thread Shlomi Fish
Hi Richard,

On Tue, 19 Jun 2018 18:28:51 -0700 (PDT)
Richard Mitchell  wrote:

> What does the new retina display mean for images and scaling?
> 
> "issue 6682: Add an experimental feature (on in beta) to show inline images
> at ret…"
> 

this is vim-use and there is no issue 6682 - see
https://github.com/vim/vim/issues?q=is%3Aopen+is%3Aissue .

> Images now display "smaller" (higher res) and changes my calculations on how
> to center an image.  Before I was diving the image size by the font cell size
> to compute the column and row to place the image.  It seemed pretty good
> before, but now the images are higher and to the left; i.e.; as if cell size
> times window size is smaller than the number of pixels in an iterm2 window.
> 
> Thanks!
> 



-- 
---------
Shlomi Fish   http://www.shlomifish.org/
https://is.gd/MQHVF3 - The Atom Text Editor edits a 2,000,001B file

I often wonder why I hang out with so many people who are so pedantic. And
then I remember — because they are so pedantic.
— an Israeli Perl Monger

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it a matter of Unix ABC, B-A-BA', basics, school stuff, RTFM ?

2018-06-18 Thread Shlomi Fish
Hi,

On Sun, 17 Jun 2018 16:19:30 -0700 (PDT)
Renato Fabbri  wrote:

> Vim is the right tool to write (and sometimes to read as well).
> 

I don't understand. Also see
http://www.shlomifish.org/open-source/resources/editors-and-IDEs/ for a list of
some alternatives.

> ??
> 



-- 
-----
Shlomi Fish   http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap

*Reg*: All right, but apart from the sanitation, medicine, education, wine,
public order, irrigation, roads, the fresh water system, and public health,
what have the Romans ever done for us?
— Life of Brian (1979) ( http://www.imdb.com/title/tt0079470/quotes )

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: digraphs outside of Vim

2018-06-01 Thread Shlomi Fish
On Fri, 1 Jun 2018 18:18:32 +0100
"A. S. Budden"  wrote:

> On 30 May 2018 at 17:52, Shlomi Fish  wrote:
> > On Mon, 28 May 2018 20:00:09 +0100
> > "A. S. Budden"  wrote:
> >  
> >> All,
> >>
> >> As my job has changed over the years, I find myself spending less time
> >> using Vim and (alas) more time using Outlook.  However, one of my
> >> favourite features of Vim for typing (with Pandoc or whatever) is
> >> simplicity of entering symbols using Ctrl-K and a two-letter
> >> representation of the symbol.
> >>
> >> I liked the feature so much that a few years ago I made a little
> >> python program (also available compiled as a Windows executable) to
> >> make those digraphs available in any application.  It is only really
> >> for Windows, although the core GUI and digraph code can run anywhere
> >> python/PySide runs.
> >>
> >> Anyway, in case this is of interest to other Vim users, I thought I'd
> >> announce it here.
> >>
> >> The source code and instructions are available at
> >> https://bitbucket.org/abudden/digraph
> >>
> >> The Windows executable is here:
> >> https://bitbucket.org/abudden/digraph/downloads/
> >>
> >> There is a handy table of the digraphs I use most often here:
> >> https://bitbucket.org/abudden/digraph/raw/tip/digraph_table_landscape.pdf
> >>
> >> Al
> >>  
> >
> > Thanks, Al! But what is the LICENSE? See
> > https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#i-want-to-release-my-code---which-open-source-licence-should-i-use
> >   
> 
> Hi Shlomi,
> 
> Ah! Good point - I'd been using it for so long that I'd forgotten
> about such things.
> 
> I've added a LICENCE.txt to the repository (MIT licence).
> 

Many thanks! I've been using this script to find repositories without README or
LICENSE files -
https://github.com/shlomif/shlomif-computer-settings/blob/master/shlomif-settings/home-bin-executables/bin/find-git-repositories-without-README
- it is  under the expat licence.


> Al



-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://youtu.be/KxGRhd_iWuE - Never Give Up!!

Only three things are infinite: the universe, human stupidity, and the amount
of patience that Windows Update requires.
— http://www.shlomifish.org/humour/bits/facts/Windows-Update/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: digraphs outside of Vim

2018-05-30 Thread Shlomi Fish
On Mon, 28 May 2018 20:00:09 +0100
"A. S. Budden"  wrote:

> All,
> 
> As my job has changed over the years, I find myself spending less time
> using Vim and (alas) more time using Outlook.  However, one of my
> favourite features of Vim for typing (with Pandoc or whatever) is
> simplicity of entering symbols using Ctrl-K and a two-letter
> representation of the symbol.
> 
> I liked the feature so much that a few years ago I made a little
> python program (also available compiled as a Windows executable) to
> make those digraphs available in any application.  It is only really
> for Windows, although the core GUI and digraph code can run anywhere
> python/PySide runs.
> 
> Anyway, in case this is of interest to other Vim users, I thought I'd
> announce it here.
> 
> The source code and instructions are available at
> https://bitbucket.org/abudden/digraph
> 
> The Windows executable is here:
> https://bitbucket.org/abudden/digraph/downloads/
> 
> There is a handy table of the digraphs I use most often here:
> https://bitbucket.org/abudden/digraph/raw/tip/digraph_table_landscape.pdf
> 
> Al
> 

Thanks, Al! But what is the LICENSE? See
https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ.mdwn#i-want-to-release-my-code---which-open-source-licence-should-i-use



-- 
-
Shlomi Fish   http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/

Jessica on the phone: Sel, you’re getting strange lately, but you are becoming
more amusing in the process.
— http://www.shlomifish.org/humour/Selina-Mandrake/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: VIM Advanced text string search HELP

2018-05-25 Thread Shlomi Fish
Hi Matt,

On Fri, 25 May 2018 01:16:54 -0700 (PDT)
Matt Truslove <m81tl...@gmail.com> wrote:

> Good morning,
> I have a very important XML file which contains a lot of important metadata.
> Recently my old computer has become useless so i managed to backup all my
> data and export all my files.
> 
> as part of the backup i exported the metadata via an XML feature. But not
> realising that the new location would be different for all the files once
> moved.
>

see http://perl-begin.org/uses/text-parsing/ and
http://perl-begin.org/uses/xml/ and equivalents for other languages. See
https://blog.codinghorror.com/parsing-html-the-cthulhu-way/ .


> the XML file has a tag for Location and i need this to change whilst
> retaining the file name.
> 
> i was told VIM is perfect for this. so fired fired up my old linux box to
> give it a go but no avail.
> 
> please see the below example
> 
> Locationfile:///Volumes/OLDDRIVE/OTHERFOLDER/a/b/c/d/e/20Berksonax.uue
> 
> i want to find and replace the text between the "file:///" and the last but
> one "/" (as the last slash will affect the XML .) but retain the
> file name, extension and end tag 
> 
> to end up with
> 
> 
> Locationfile:///NewVolume/NEW_SSD/NEWFOLDER2018/0Berksonax.uue
> 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://youtu.be/xZLwtc9x4yA - Anime in Real Life!! (Parody)

What's the point of claiming your code is illegal?
I might anger a few, but I just wanna sue
— http://www.shlomifish.org/humour/bits/Can-I-SCO-Now/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: copy word

2018-05-22 Thread Shlomi Fish
On Tue, 22 May 2018 10:22:45 +0200
"sampe...@tiscali.it" <sampe...@tiscali.it> wrote:

> There is way to copy word to buffer and paste it to another place ?
> 
> 

yes, see
https://stackoverflow.com/questions/7797068/copying-a-word-and-pasting-over-a-word



-- 
-----
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/Summerschool-at-the-NSA/

The more I think about it, the more I think I should think about it some more.
— Clarissa Explains it All

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: My vim is not working properly

2018-05-18 Thread Shlomi Fish
On Thu, 17 May 2018 04:46:58 -0700 (PDT)
srlhyo <srl...@gmail.com> wrote:

> Hi all, 
> 
> I am really sorry to be so vague and uninterested but I am getting anxious
> about not being able to use vim as wished. I have got windows and downloaded
> Vim 8.0 but I am unable to run some plugins, such as "browserlink". For
> instance, if I run :py print(1) it gives the following error: E887: Sorry,
> this command is disabled, the Python's site module could not be loaded. 
> 
> I have even downloaded Python 3.6.5 but I still get the same error. My
> question is: is there any way of installing vim free of these problems? I
> really want to be able to use vim but it's been hard to do it so. 
> 
> Many thanks  
> 

Hi,

have you tried the advice in
https://stackoverflow.com/questions/4718122/how-to-enable-python-support-in-gvim-on-windows
 ?

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

Thank God I found the good in goodbye!
— “Best Thing I Never Had”, Beyoncé

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim 8.1 is released!

2018-05-17 Thread Shlomi Fish
Hi Bram,

On Thu, 17 May 2018 20:18:26 +0200
Bram Moolenaar <b...@moolenaar.net> wrote:

> Hello Vim users!
> 
> Announcing:  Vim (Vi IMproved) version 8.1
> 
> 
> This is a minor release with many small improvements and lots of bug
> fixes.  The main new feature is the terminal window.  I have put up a
> few screenshots on the Vim website:
> https://www.vim.org/vim-8.1-released.php
> 
> Once you have installed Vim 8.1 you can find details about the changes
> since Vim 8.1 with:
> :help version8.1
> Or view it online:
> https://raw.githubusercontent.com/vim/vim/master/runtime/doc/version8.txt
> 

many thanks! The third digit of vim 8.0.x has become quite unmanagable.

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

Chuck Norris once solved 100 million deals of Freecell in a minute. By hand.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Here's an App I built for browsing Vim/Neovim docs offline

2018-05-10 Thread Shlomi Fish
On Wed, 9 May 2018 21:47:55 -0700 (PDT)
Adam Regasz-Rethy <rethy.s...@gmail.com> wrote:

> Google Play Link:
> https://play.google.com/store/apps/details?id=com.bonnetrouge.vimhelp
> 
> Currently it's only available on Android (free and no ads). You can browse
> and fuzzy search through the docs while taking advantage of a builtin
> jumplist (supports forwards and backwards jumping).
> 
> Here is the source code for the curious: https://github.com/RRethy/VimHelp
> 

many thanks for that!

> Post any issues/feature requests there, I'm also open to PR's if anyone knows
> Android dev and wants to contribute.
> 
> If you are an ios dev who would want to make an ios version of the app, let
> me know and I give you the formatted docs
> (https://github.com/RRethy/VimHelp-DocsRepo) that I used.
> 



-- 
-----
Shlomi Fish   http://www.shlomifish.org/
https://youtu.be/n6KAGqjdmsk - “Hurt Me Tomorrow”

All truth is God’s truth.
—
http://www.shlomifish.org/humour/fortunes/show.cgi?id=larry-wall-all-truth-is-gods-truh

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is ANSI C support still needed?

2018-04-15 Thread Shlomi Fish
Hi Bram and all,

On Sun, 15 Apr 2018 12:43:23 +0200
Bram Moolenaar <b...@moolenaar.net> wrote:

> Hello Vimmers,
> 
> For a long time Vim code was made to be compiled with ANSI C (also known
> as C89 and ISO C90).  This means it can also be compiled on very old
> systems.  And since it wasn't too much work to support it, that was the
> choice.
> 
> Now that we are adding checks for C89 compliance, it turns out that we
> already are using some C99 features, such as the "long long" type.
> Also, many libraries produce warnings when enforcing C89.  That means
> using C89 is starting to become a hassle.  So, the question comes up: is
> it still worth it?
> 
> If you CANNOT build Vim with a C99 compiler, please speak up!
> If I don't hear about such cases, I think we are better off using C99 as
> the standard.
> 
> Note that if we go with C99, we still need to decide what features we
> will actually use, since C99 compliance was lacking for quite a while
> (esp. in MS-Visual C).  That's not going to make this easier.
> 

+1 for C99 from me, but I am using recent Linux systems mostly.

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

He who reinvents the wheel will likely design a square wheel and spend a year
trying to figure out why it doesn’t work properly.
— Nadav Har’El, http://www.shlomifish.org/humour.html

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim Ack and h key

2018-02-12 Thread Shlomi Fish
Hi Frantz,

On Sun, 11 Feb 2018 12:02:22 -0800 (PST)
Frantz Baustier <frantz.baust...@gmail.com> wrote:

> Hello,
> 
> I have an issue with vim ack.
> When I press h key in the quickfix list, it opens a new frame instead of
> going to the left character.
> 

I noticed ? opens a help display instead of searching backwards as well. You
can disable these keybindings by putting this in .vimrc:

let g:ack_apply_qmappings = 0

see :help :Ack for more info.

> Thank you.
> 
> Best Regards.
> 



-- 
-----
Shlomi Fish   http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap

Chuck Norris created an O(1/N) algorithm.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Will vim copy all file content to memory when i open a file?

2018-02-12 Thread Shlomi Fish
On Sun, 11 Feb 2018 18:09:02 +0800
Zhigang Song <s...@zgang.me> wrote:

> Will vim copy all file content to memory when I open a file?
> 

opening this file in vim:

-rw-r--r-- 1 shlomif shlomif 608170649 Feb 12 12:19 Total-Imp3.txt
shlomif[3fc]:~/Download/unpack/games/freecell/freecell-pro-3fc-deals--split$ wc 
Total-Imp3.txt 
 55946300  55946300 608170649 Total-Imp3.txt
shlomif[3fc]:~/Download/unpack/games/freecell/freecell-pro-3fc-deals--split$ 


takes 10% of my 8 GB of RAM, so I guess vim loads the file into RAM.

Regards,

Shlomi

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
https://is.gd/MQHVF3 - The Atom Text Editor edits a 2,000,001B file

There is no IGLU Cabal. The problem of founding an IGLU Cabal has been proven,
in a surprise move, to be equivalent to the question of the existence of God,
fully‐tolerant religions and NP‐complete oracles.   — Omer Zak

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Transfer vim to other distro

2018-01-21 Thread Shlomi Fish
Hi Tasmo,

On Sat, 20 Jan 2018 10:21:21 -0800 (PST)
Jo Tasmo <tschot...@gmail.com> wrote:

> Hello all,
> until now I thought to transfer the hole vim-setup (plugins + Wiki) in Linux,
> is easy done, by just copy the .vimrc, .vim and wiki-folder to the home of
> the other mashine and distro. The first time I did–in Linuxmint– it worked
> fine. But now, doing so with dietpi (arm-raspberryPi-distro) the wiki does't
> work proper. So I tryed the same thing to for testing-reason, with a
> Knoppix-Distro, it also did not do the job. Also in both cases the
> colorchange of the cursor in different modes happens only after the first
> aktion in the new mode. For example after having changed to insert-mode it
> needs first a keystroke, until it the wished color appears. In normal-mode it
> is of course more annoying.
> 

you should keep your vim config inside a VCS repo, see e,g:

*
https://github.com/search?q=dotfiles=Everything==_value=1

* https://github.com/shlomif/shlomif-computer-settings/



> let _SI = "\]12;yellow\x7"  " insert-mode
> let _SR = "\]12;blue\x7"" overwrite-mode
> let _EI = "\]12;red\x7" " normal-mode
> 
> What could be the reason?
> How to solve?
> 
> Thanks
> 
> Behappy
> 
> tasmo
> 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
NSA Factoids - http://www.shlomifish.org/humour/bits/facts/NSA/

The Blues Brothers are on a mission from God.
God is on a mission from Chuck Norris.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using VIM as a IDLE for Python 3.

2017-12-03 Thread Shlomi Fish
Hi Wilson!

On Sat, 2 Dec 2017 22:56:08 -0800 (PST)
Wilson Baron <wilson.ba...@gmail.com> wrote:

> Hello There, 
> 
> I am a Vim newbie, and I was wondering if anyone can suggest an already
> existing post for using VIM as an IDLE for Python 3, or a good tutorial to
> follow up.
> 

IDLE is a particular
https://en.wikipedia.org/wiki/Integrated_development_environment (or IDE for
short). If you want to use vim as a python dev env, then I can suggest
https://github.com/nvie/vim-flake8 and some other stuff from my vim
configuration - see
https://github.com/shlomif/shlomif-computer-settings/tree/master/shlomif-settings/vim-conf
 .

Regards,

Shlomi

> I am using Debian 9 as my OS. Any advise is highly appreciated
> 
> Cheers
> Wilson
> 



-- 
---------
Shlomi Fish   http://www.shlomifish.org/
My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/

Don't worry over what other people are thinking about you.  They're too
busy worrying over what you are thinking about them.
— Unknown Source

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim for Amiga 500/2000

2017-09-07 Thread Shlomi Fish
Hi,

On Wed, 6 Sep 2017 13:15:06 -0700 (PDT)
Pär Moberg <ghostdew...@gmail.com> wrote:

> Hello, I am looking for the "best" version of vim to run on a Amiga 500/2000
> with 8megs of fast ram and KickStart 1.3. I just gotten back in to classic
> Amigas and i want my favorite editor. //Pär
> 

See https://vim.sourceforge.io/download.php#amiga . I'm not sure it will work
with only 8 MB of RAM and old versions of vim may have many bugs including
security ones.


Hello, I am looking for the best version of Vim to run on my portable ENIAC
emulator with a memory that consists of 256 units of 7 bits each.


;-)

Also see
http://www.shlomifish.org/humour/fortunes/tinic.html#hamakor-discs-mozilla-1.1-1

Regards,

Shlomi Fish
-- 
-----
Shlomi Fish   http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

SGlau: I suppose serving here at the NSA is also one of your 99 problems?
Daniel: Hey, this place is at least ninety of my problems.
— http://www.shlomifish.org/humour/Summerschool-at-the-NSA/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sorry to use the `e' word but does vim have similar to cperl

2017-08-26 Thread Shlomi Fish
On Fri, 25 Aug 2017 20:30:14 -0400
Harry Putnam <rea...@newsguy.com> wrote:

> Any one here familiar with emacs cperl mode, that can tell me how to
> get something similar when using vim?
> 
> If not familiar, `cperl-mode' trys to offer a host of short cuts that insert
> quite a bit of standard code for you... a simple example is; if you
> type `if' `cperl-mode' inserts:
> 
>   if (_) {
>   }
> 
> With the underscore indicating where the cursor is left.
> 
> I vaguely remember using something with vim, years ago, that did
> something similar, but no longer remember how to load that sort of
> thing.
> 
> With my current vim setup (just the basic install on debian using
> `aptitude install vim'), plus a .vimrc carted around from OS to OS for
> years. 
> 
> If opening a perl script, I get syntax highlighting but when coding I
> get no help... no tricky inserts or the like. 
> 

I think UltiSnips can do what you want: https://github.com/sirver/UltiSnips .
There are similar alternative to it as well.

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/facts/Emma-Watson/

Experience is what causes a person to make new mistakes instead of old ones.
— Source unknown, via Nadav Har’El.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Anybody using the Farsi feature?

2017-04-10 Thread Shlomi Fish
Hi Behdad!

Can you provide assistance with checking vim's support of UTF-8-based Persian?
See below.

Everybody: Behdad is a Persian speaker and FOSS enthusiast and he's been
contributing to FOSS i18n support for many years, see http://behdad.org/ . So I
recalled him when I saw this thread.

Regards,

Shlomi

On Sun, 9 Apr 2017 17:03:06 +0200
Tony Mechelynck <antoine.mechely...@gmail.com> wrote:

> On Sun, Apr 9, 2017 at 2:47 PM, Bram Moolenaar <b...@moolenaar.net> wrote:
> >
> > Vim includes Farsi support.  This implementation is quite old and uses
> > an encoding standard that is not widely used: ISIR-3342.  In fact,
> > searching for that standard has the first 9 matches in Vim code.
> > It does not work with Unicode.  
> 
> Farsi code is quite old indeed, possibly older than Vim support for Unicode.
> 
> The Arabic subsystem is newer, makes use of Unicode, and ought to work
> for Farsi in Unicode, even the additional letters added to the Arabic
> alphabet to support the Persian language. "Farsi Yeh" (an Arabic
> letter yeh which loses its two dots below when it is wriiten in
> zig-zag shape, i.e. final or isolated) may or may not be one of them,
> it is used in Classical Arabic in the Mashrek (the Eastern part of the
> Arabic-language domain).
> >
> > Is anobody actually using this code?  If not, I think we can remove it.
> > It would be best if it can be replaced by a Unicode implementation.  But
> > it requires someone understanding the language to do this.  
> 
> Someone understanding Farsi (not me) should check if setting 'arabic',
> and setting a 'guifont' with the proper glyphs for Farsi, are enough
> to write Farsi in Unicode in gvim 8.0. I'm attaching a "phonetic
> Arabic" keymap which ought to be usable (after some getting used to)
> for writing Farsi on a European keyboard, possibly with a few obvious
> additions (obvious to someone knowing Persian). Of course anyone with
> a Persian keyboard won't need mine.
> 
> If the letters added to the Arabic alphabet to support the Farsi
> language don't shape correctly in gvim, then IMHO it should be
> possible to add the necessary shaping rules to our Arabic subsystem.
> These letters are "Arabic letters" in the wide sense of the word after
> all, just like Scandinavian øæå, German äöüß, French àâçéêèëîïùŷÿœ,
> Icelandic ðþ, etc. are "Latin letters" in the wide sense of the word.
> >
> >
> Best regards,
> Tony.
> 



-- 
-
Shlomi Fish

I promised, I forgot, I did not keep my promise — just shoot me, and get on
with it!

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sed substitution did not go as planned...

2017-02-05 Thread Shlomi Fish
Hi Tim, and all,

On Sun, 5 Feb 2017 13:09:29 -0600
Tim Chase <v...@tim.thechases.com> wrote:

> On 2017-02-04 05:14, Marcus Martinez wrote:
> > ...and modified the first ten lines using Sed substitution...
> > :1,10 s/^/--/
> > 
> > After running this command the beginning of lines 1 through 10 do
> > have the "--" correctly placed. However, the first character of
> > each line in the file is now highlighted (as shown in the attached
> > image). The pattern now recurs for any text file I open with vim. 
> > 
> > Why does this happen? How can I "undo" this new pattern so that vim
> > does not highlight the first character of each line?  
> 
> Why?  You have 'hls' set, so it highlights the last thing you
> searched for.  In this case, /^/ which is the beginning of the line.
> 
> How can you undo it?  A couple different ways:
> 
> - if you like the search highlighting but just want to hide it for
>   these search results, use ":noh" to turn it off until the next time
>   you do a search
> 
> - alternatively, you can search for junk that isn't in your file:
> 
>   /lkasjdfdlkjgadslkgjads
> 

One can also nullify the search-pattern register:

:let @/=''

That way, vim will not highlight anything.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Portability Libraries - http://shlom.in/port-libs

Chuck Norris once solved 100 million deals of Freecell in a minute. By hand.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim 8.0 released!

2016-09-13 Thread Shlomi Fish
Hi all!

On Mon, 12 Sep 2016 14:53:40 +0200
Bram Moolenaar <b...@moolenaar.net> wrote:

> Hello Vim users!
> 
> 
> Announcing:  Vim (Vi IMproved) version 8.0
> 
> 
> This the first major Vim release in ten years.  There are interesting
> new features, many small improvements and lots of bug fixes.
> 

Thanks for the new release and congratulations!

Regards,

Shlomi Fish

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/

Chuck Norris does not keep any numbers on his mobile phone’s address book.
Instead, he memorised the entire phone directory.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to combine the command df" and df[

2016-06-04 Thread Shlomi Fish
Hi imlegendlzz,

On Fri, 3 Jun 2016 21:52:38 -0700 (PDT)
李哲 <imlegend...@gmail.com> wrote:

> I usually use the command `dt"` and `dt[` to delete the content from the
> current position to the mark [ or ".
> 
> Is there a way that use the commannd `dtt`(for example) to combine the two
> `dt[` and `dt"` command?
> 
> for example , `$` mark the current position of the curor.
> 1. "$"[cd] ; command dtt delete 
> 2. ""[c$d] ; command dtt delete d
> 3. [c"$"d] ; command dtt delete , find the " or ] which
> is closer to the current curor
> 
> I think it need a custum function to make it.
> And the problem for me now is now to locate the closer " or ], and then
> delete to the mark.
> 

Perhaps try visual selection («:help v») or the «:help /» command doing
something like /[\w\[] or a combination of both.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish

God is Chuck Norris, for extremely large values of God.

Please reply to list if it's a mailing list post

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Don't know how to work Stroustrup's code example named PHONE_BOOK

2016-05-18 Thread Shlomi Fish
Hi there,

please reply to all recipients.

On Wed, 18 May 2016 01:51:38 -0700 (PDT)
"aubertin.sylvain" <aubertin.sylv...@sfr.fr> wrote:

> Hi
> This file runs ok
> one 1}
> {two 2}
> {three 3}
> {four 4}
> {five 5}
> {six 6}
> {six 6}
> {two 2}
> {three 3}
> {four 4}
> {five 5}
> {six 6}
> four 4
> three 3
> But now I dont know how shall I enter names and numbers. May be another file
> is missing. May I (beginner) have some help. Thanks a lot
> 

it is not clear what you want to do exactly, which problem you are running into
and what it has to do with vim. Please explain it better. Not everyone of us
have Stroustrup's books.

Regards,

Shlomi 

-- 
-
Shlomi Fish

“My name is Inigo Montoya. You forced my father to write XSLT. Prepare to die!
And be thankful I don’t force you to write XSLT.”

Please reply to list if it's a mailing list post

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Investigating Vim's shell-execution/shell-filtering commands (:!) quoting/escaping of special characters.

2016-03-24 Thread Shlomi Fish
Hi all!

Since my E-mail did not arrive again (something is wrong with Google Groups), 
please just see this:

* 
https://github.com/shlomif/vim-begin/tree/master/understanding-exclamation-mark-shell-exec--escaping-rules

Enjoy!

Regards,

-- Shlomi Fish

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: My E-mail to the Mailing List Did Not Arrive

2016-03-24 Thread Shlomi Fish
Hi Christian,

On Tue, 22 Mar 2016 20:10:54 +0100
Christian Brabandt <cbli...@256bit.org> wrote:

> Hi Shlomi!
> 
> On Mo, 21 Mär 2016, Shlomi Fish wrote:
> 
> > Hi all,
> > 
> > my E-mail to the "vim_use" mailing list with the subject " [ANN]
> > Investigating Vim's escaping/quoting rules for the :! ...
> > command." sent two days ago did not arrive to the mailing list , and I
> > didn't get a bounce, a rejection E-mail, or a moderation E-mail
> > either.
> > 
> > Please investigate why it did not arrive yet.  
> 
> As one of the ml moderators I can say, I haven't seen a message from you 
> in the queue. I know you have posted before, so I don't know why this 
> would happen and the fact that this message came through, shows it.
> 

I see.

> Are you sure, your mail was sent with the correct sender email?

Yes, I'm sure.

OK, I've now tried these two things:

1. Forwarding the sent email to the mailing list. It didn't arrive.

2. Subscribing to vim_use from my GMail account and posting a message using
the Google Groups with a single link to a directory inside a GitHub repository
(which I'm pretty sure is not spam). This message was eaten by the interface
(though I was told it got sent but I cannot find it anywhere.).

Did Google Groups jump the shark? If so, good luck on trying to get Google to
remedy that - from my experience their customer service ranges from abysmal to
non-existent. Perhaps the vim forums should be moved elsewhere.

Regards,

Shlomi Fish
> 
> So I am sorry, if I can't be of any further help.
> 
> Best,
> Christian



-- 

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


My E-mail to the Mailing List Did Not Arrive

2016-03-21 Thread Shlomi Fish
Hi all,

my E-mail to the "vim_use" mailing list with the subject " [ANN] Investigating
Vim's escaping/quoting rules for the :! ... command." sent two days ago did
not arrive to the mailing list , and I didn't get a bounce, a rejection E-mail,
or a moderation E-mail either.

Please investigate why it did not arrive yet.

Regards,

    -- Shlomi Fish

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim red text is blurry.

2015-10-11 Thread Shlomi Fish
Hi Mini,

Please reply to all recipients.

On Sat, 10 Oct 2015 23:11:15 -0700 (PDT)
Mini UN <kenonthegoldco...@gmail.com> wrote:

> Hello, I need to fix the vim red colour which makes the text blurry.
> Any suggestions please?
> 
> Hmmm, strangely, I can't attach the image to this post.
> I select Attach a file, however nothing happens?
> 

What is your E-mail client (MUA)? Anyway, as an option, you can use an image
sharing site such as http://imgur.com/ and send us a link.

Regards,

Shlomi Fish

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
Understand what Open Source is - http://shlom.in/oss-fs

My opinions may seem crazy but they all make sense. Insane sense, but sense
nonetheless.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Script to Show All Commands/Searchable

2015-09-22 Thread Shlomi Fish
Hi Gary,

On Tue, 22 Sep 2015 08:30:06 -0700
Gary Furash <furashg...@gmail.com> wrote:

> In tools like UltraEdit or Atom or Sublime, there's a way to search a menu
> of commands (i.e., all commands the program could do or could do via
> plugins can be searched and chosen from if you don't remember the
> command.). Is there something similar for VIM?
>

«:command» can list command-line commands and «:map» can list mappings. I
recall finding a script or a plugin that allows to put the outputs of commands
like that in a buffer, but I'll need to dig for it.

Gmar Hatimah Tovah and happy MP3 Liberation Day!

Regards,

Shlomi Fish

-- 
-----
Shlomi Fish   http://www.shlomifish.org/
List of Text Processing Tools - http://shlom.in/text-proc

After Chuck Norris said “I don’t believe in fairies.”, fairies have become
extinct.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I cannot realise a :map why ??

2015-07-21 Thread Shlomi Fish
Hi Aubertin,

On Tue, 21 Jul 2015 01:02:15 -0700 (PDT)
aubertin.sylvain aubertin.sylv...@sfr.fr wrote:

 For instance I should like to make F9 stand for   papa
 Following VIM Manual (by Moolenaar) I type :
 :map F9 ipapaEsc (5 characters for Esc and 4 characters for F5 )
 But it doesn't work. Instead of « papa «  , it returns F9
 Something is wrong, but where ??  Thanks for your reply.
 

Your mapping (“:map F9 ipapaEsc”) works fine for me after I put it at the
end of my ~/.vimrc file. So we need more details:

* What is your OS / distro / version .

* Which version of vim / gvim / macvim / etc. are you using?

* Other possible details.

Regards,

Shlomi Fish


-- 
-
Shlomi Fish   http://www.shlomifish.org/
Humanity - Parody of Modern Life - http://shlom.in/humanity

There are at least 137 Larry Walls in the U.S., but only one that matters.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim hangs and consums 24% of CPU

2015-07-02 Thread Shlomi Fish
Dear wolfv,

On Wed, 1 Jul 2015 18:14:47 -0700 (PDT)
wolfv wolfvo...@gmail.com wrote:

 This is a weird bug.
 
 When the attached test_vim.txt file is opened in Vim, and scrolled down to
 line 372, Vim hangs and consumes 24% of CPU. This only happens with the
 attached vimrc and test_vim.txt.  All other files I tried work nice with the
 attached vimrc.
 

I tried running Vim with that .vimrc and that file here (= Mageia Linux x86-64
6), but ran into a problem:

«««
[kdetest@telaviv1 ~]$ gvim test_vim.txt 
Error detected while processing /home/kdetest/.vimrc:
line6:
E117: Unknown function: vundle#begin
line   11:
E492: Not an editor command: Plugin 'gmarik/Vundle.vim'
line   13:
E492: Not an editor command: Bundle 'gabrielelana/vim-markdown'
line   14:
E492: Not an editor command: Plugin 'xolox/vim-misc'
line   15:
E492: Not an editor command: Plugin 'xolox/vim-shell'
line   18:
E117: Unknown function: vundle#end
No protocol specified

E233: cannot open display
E852: The child process failed to start the GUINo protocol specified

Press ENTER or type command to continue
[kdetest@telaviv1 ~]$ 
»»»

Can you provide a tarball (see
https://en.wikipedia.org/wiki/Tar_%28computing%29 ) with all the necessary files
needed to reproduce it?

 I am running Vim version 7.4.6.40 on Linux Fedora 22 on hardware Haswell
 Intel NUC Kit D54250WYK.
 

Ah , I see - I almost missed this information.

 Thank you.
 


Regards,

Shlomi Fish


-- 
-
Shlomi Fish   http://www.shlomifish.org/
Selina Mandrake - The Slayer (Buffy parody) - http://shlom.in/selina

Emma Watson may not look too menacing with a wand in her hand. Until she uses
it with great accuracy to poke both your eyes out.
— http://www.shlomifish.org/humour/bits/facts/Emma-Watson/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Motif equivalent of GTK font

2015-03-22 Thread Shlomi Fish
Hi Paul,

On Tue, 17 Mar 2015 11:07:20 -0700 (PDT)
zimmerdesignservi...@gmail.com wrote:

 I've been using a GTK version of gvim and have grown rather fond of the font
 Monospace 10.
 
 I want to switch to Motif because it seems to work better with cut/paste
 between vnc sessions.  Can Motif use this font?  How do I specify it?
 

maybe try :set guifont:

http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI

Regards,

Shlomi Fish
-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/Can-I-SCO-Now/ - “Can I SCO Now?”

A fanatic: one who redoubles his efforts after he has forgotten his aim.
— http://en.wikiquote.org/wiki/George_Santayana
(via http://esr.ibiblio.org/?p=4371 ).

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: vim 7.4 motif interface is very slow

2015-03-02 Thread Shlomi Fish
Hello Akria,

On Tue, 3 Mar 2015 00:20:43 +0800
Akria Sheng akriash...@gmail.com wrote:

 Hi all,
 I am a newbie to compile the vim.
 
 For vim7.2, I have complied vim with GTK 1.2 successfully.
 But after vim7.3, it don't support GTK 1.2, I stop to update the vim.
 
 For now, I try to build vim with other GUI.
 
 My environment is win7 with HammingBird Exceed to connect client.
 
 The client is AMD64 CentOS release 5.8 (Final).
 

1. CentOS 5.8 is old - there's already CentOS 5.11 - you should upgrade.

2. You really should not mess with either Motif or GTK-1.2 - just use the
Gtk+-2.x/Gtk+-3.x-based GUIs.

3. You can install the vim-X11 package using yum to get a working gvim
without the hassle of compilation. Please do so. 

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/bits/Can-I-SCO-Now/ - “Can I SCO Now?”

The NSA headquarters are the unhappiest place on Earth.
— http://www.shlomifish.org/humour/bits/facts/NSA/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: vim freeze from inside gnu

2014-10-25 Thread Shlomi Fish
Hi ping song,

On Fri, 24 Oct 2014 18:59:16 -0400
ping song songpingem...@gmail.com wrote:

 this is reproduced at this time.
 whenever I execute register command and hit enter, it freeze...
 
 in the begining it only happen in one of my gnu window, but now it
 happen in 3 of them... anyone experiences that?

1. What is gnu? From what I know it is the
https://en.wikipedia.org/wiki/GNU_Project which releases many software
packages. Which one are you using?

2. What is your OS/distro/etc. and versions thereof?

3. What is your version of vim, how are you using it?

Your message is really lacking on details.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

God is Chuck Norris, for extremely large values of God.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: vim freeze from inside gnu

2014-10-25 Thread Shlomi Fish
Hi ping song.

In addition, see:

* http://www.catb.org/~esr/faqs/smart-questions.html

* http://www.shlomifish.org/philosophy/computers/how-to-get-help-online/

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

Daniel: Hello ladies, may I join you?
Buffy: Well, we’re having a girls’ talk, but… sure!
— http://www.shlomifish.org/humour/Buffy/A-Few-Good-Slayers/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: automatically editing many .tec files

2014-04-19 Thread Shlomi Fish
Hi Asaf,

On Sat, 19 Apr 2014 02:45:13 -0700 (PDT)
אסף חיים פרייס preiss.a...@gmail.com wrote:

 Hi there,
 I've many .tec files that been created after mistakly deleting photos on my
 android. I'm trying to edit them, by deleting the 6 first chrs. and the last
 one. Then, I'm changing the file from .tec to .jpg.
 I have 3000 files!!!
 Is there any way to make it automatically, like a script or cmd commands?

Yes, there is. You can use the following Bash+Perl command:

find . -name '*.tec' | (while read fn ; do
perl -n -0777 -e 'print substr($_,6,-1)' $fn  ${fn%%.tec}.jpg ;
done)

Untested!

(This snippet of code can be freely reused under the MIT/X11 License / Public
Domain (CC0) )

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap

Cast your bread upon the waters, for after many days you will find it again.
— Ecclesiastes 1:11

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: vim: missing register * and #

2014-04-17 Thread Shlomi Fish
Hi ping song,

On Wed, 16 Apr 2014 22:47:01 -0400
ping song songpingem...@gmail.com wrote:

 after installing vim in ubuntu14.04 in a new HD,
 I found I'm missing * and # register now...
 
 did some research but still no idea how to get it back.
 
 I did have vim-gnome installed, and version shows I have the clipboard
 ability...
 what am I missing here?

it's possible the Ubuntu console vim packages don't have that functionality.
You can try building Vim from source and see if it fixes the problem. The
script I use to build from source can be found here:

*
https://bitbucket.org/shlomif/shlomif-computer-settings/src/74b11e9803051b8f4f86a300df63f849c669d8f4/shlomif-settings/build-scripts/build/vim.sh?at=default

( Short URL : http://is.gd/m4epzY )

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

Laziness will bring the downfall of mankind, but I can’t be arsed to do
anything about it.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Compile vim with perl

2014-04-11 Thread Shlomi Fish
Hi Erop,

On Fri, 11 Apr 2014 10:59:48 +0300
Егор negr...@mail.ru wrote:

 Need to use perl in vimscript. My system vim on :echo has('per') prints 
 0. I hav no expirience in compiling vim so can anyone help me to buil 
 vim with perl?

I'm using the following script to build perl:


#!/bin/bash
set -x
./configure $@ --prefix=$HOME/apps/vim \
--enable-fail-if-missing \
--with-features=huge \
--enable-perlinterp --enable-pythoninterp --enable-rubyinterp \
--enable-tclinterp \


Vim uses a standard ./configure/autoconf setup. Also see the links here:

https://duckduckgo.com/?q=how%20to%20build%20vim

Note that you should provide more information about your system and setup where
you want to build Vim.

Finally see
http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html
regarding how to start a new thread.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Parody of The Fountainhead - http://shlom.in/towtf

Chuck Norris is the reason why OpenBSD is called OpenBSD. They wanted to
call it LockedDownBSD but couldn't find a way to keep Chuck Norris out!
(By Andrew Brehm) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Compile vim with perl

2014-04-11 Thread Shlomi Fish
Hi Erop,

On Fri, 11 Apr 2014 11:41:48 +0300
Егор negr...@mail.ru wrote:

 First problem - during configure got such message
 checking if compile and link flags for Perl are sane... no PERL DISABLED
 using this
 ./configure --with-features=huge --enable-rubyinterp 
 --enable-pythoninterp --enable-luainterp --enable-perlinterp=yes 
 --enable-cscope --prefix=$HOME/apps/vim  conf.log
 

Try looking for the problem in configure.log.

 If need some additional info? say what comand outputs it
 

Please give me the output of uname -a and cat /etc/lsb-release.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/

95% of Programmers consider 95% of the code they did not write, in the bottom
5%.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Do most Vim users use snippets?

2014-01-12 Thread Shlomi Fish
Hi Ivan,

On Sat, 11 Jan 2014 20:29:17 -0800 (PST)
Ivan ivan.bren...@gmail.com wrote:

 I've written a few iabbreviations into my vimrc that act like snippets, but
 they're pretty primitive compared to some of the available plugins (like
 snipMate). I'm thinking about trying out snipMate, or something similar, and
 I'm curious whether people find them a huge help, or something that can get
 in the way. I've been trying to keep my setup somewhat minimal, but some kind
 of snippet system would probably be a big help.
 
 Just fishing for opinions! :)
 

Regarding the question at the /topic - Do most Vim users use snippets?, I
cannot answer this question because we have not done a definitive
https://en.wikipedia.org/wiki/Referendum about that among Vim users, doubt
it's possible, and I'm not sure the subscribers of this mailing list are
representative of them.

In any case, I'm using UltiSnips and find it of utility quite often. For
example, when writing Perl 5, I can write _slurp and then tab to give me:

«
sub _slurp
{
my $filename = shift;

open my $in, '', $filename
or die Cannot open '$filename' for slurping - $!;

local $/;
my $contents = $in;

close($in);

return $contents;
}
»

Or I can write xsor+[Tab] and then type the name once and get something like:

«
sub _hello
{
my $self = shift;

if (@_)
{
$self-{_hello} = shift;
}

return $self-{_hello};
}
»

I still have not completely integrated UltiSnips into my workflow - for
example, I still fully type the if conditionals and while loops. But it's
still coming at utility.

Another place where I like UltiSnips is for HTML files. I can write lipa to
give me:

li
p
a href=...  /a
/p
/li

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/

A wiseman can learn from a fool much more than a fool can ever learn from a
wiseman.   — http://en.wikiquote.org/wiki/Cato_the_Elder

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Macros in Vim

2013-12-25 Thread Shlomi Fish
Hi Dwigt,

On Wed, 25 Dec 2013 11:24:52 -0800 (PST)
DwigtArmyOfChampions dwightarmyofchampi...@hotmail.com wrote:

 So many tutorials tell me how to record a macro and how to run it. But
 nowhere does it say what I'm supposed to do with them. I don't understand
 what kinds of commands usually get recorded in macros? What are some examples
 of really good, efficient, time-saving macros?
 

well, this may be the If you have to ask what Jazz is, you'll never know
syndrome, but I'll try anyway. Some of the macros I use are:

1. 
map F8 :cnCR
map F7 :cpCR

This is for moving to next or previous results in the quickfix window, where I
find the Vim built-in commands tedious, and am much more comfortable pressing a
single key

2. http://quicktask.aaronbieber.com/ makes a convenient use of macros.

3. I have:

map C-WC-Right C-WRight
map C-WC-Left C-WLeft

to fix a constant annoyance.

4. I also have «map F6 ESC:Ack -ai C-RC-W t2 libCR
»

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Selina Mandrake - The Slayer (Buffy parody) - http://shlom.in/selina

An apple a day will keep Chuck Norris away. But not for long.
— http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: yet another vim documentation, in French

2013-11-29 Thread Shlomi Fish
Hi Alain,

On Fri, 29 Nov 2013 09:39:09 -0800 (PST)
alain braun notesvi...@gmail.com wrote:

 Hi everybody,
 Bonjour à tous,
 
 *English text*
 
 Yet another documentation on vim, in French, made by a standard vim user, but
 still vim lover. This is kind of an informal rather big document trying to
 give a vim large overview to vim users, except true beginners.
 
 This documentation is first aimed at my former colleagues at Météo-France
 (French Weather Service), but may also be used more broadly.
 
 A presentation and the documentation itself may be found on my personal site
 http://a.braun31.free.fr  (in French).
 

Thanks for preparing it and making it available! I will probably link to it
from http://vim.begin-site.org/ and would like to enquire - what is its licence?
Would you like to put it under one of the Creative Commons licences or a similar
licence? See https://creativecommons.org/choose/ . You may also wish to
announce your work on http://www.reddit.com/r/vim .

Finally, I should note that in English documentation is an uncountable noun
(see http://en.wiktionary.org/wiki/documentation ). You can use document if
you refer to a single document.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

If his programming is anything like his philosophising, he would find ten
imaginary bugs in the “Hello World” program.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Search for the visually select text

2013-11-15 Thread Shlomi Fish
Hi Paolo,

On Fri, 15 Nov 2013 10:42:07 +0100
Paolo Bolzoni paolo.bolzoni.br...@gmail.com wrote:

 Dear list,
 seldom I need to search specific part of text that are not simply the current
 word (where * is handy). And I instinctively select the part visually, only to
 notice I do not know how to search for it in the whole text.
 
 Example, assuming the caret is on the beginning of the sequence I want to
 seek, I tend to do:
 vwwe
 and I am stuck. Is there a way to search for what I have selected?
 

You can then yank it using «y» and use it in the search bar (after pressing /)
using Ctrl+R+ or whatever register you've placed it there.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/

Sophie: Let’s suppose you have a table with 2^n cups…
Jack: Wait a second! Is ‘n’ a natural number?

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Vim Minecraft

2013-11-02 Thread Shlomi Fish
On Sat, 2 Nov 2013 09:44:16 -0700 (PDT)
Rodrigo Campos Guzman rodrigo...@gmail.com wrote:

 My nephew made me a Vim logo in Minecraft.
 

Heh, very nice.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

talexb “Hey, I have a flat tire. Can you help me change it with a can opener
and a pound of sesame seeds?”
— talexb on parsing HTML or XML with regular expressions.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: changing Vim`s logo

2013-10-29 Thread Shlomi Fish
Hi Mohsen,

On Mon, 28 Oct 2013 10:02:07 +0330
Mohsen rashidi@gmail.com wrote:

 Hello everyone.
 It`s been  a while since i think about changing Vim`s logo. Don`t you 
 think that the time has been arrived?
 I mean DEs, application`s Gui and their icons  are getting newer and 
 more beautiful every day but Vim has it`s old ans rusty icon yet. Please 
 take a look at picture that attached:
 Do you see that white and ugly border?
 If you agree with me and if you somehow in charge of vim, please ask 
 Bram to change Vim`s logo to a more pretty one.
 Something that is in merit of vim.

You can write to the Vim developers' list yourself and suggest a better logo
or that one should be found. Anyway, I should note that I recall that when
Windows XP came out, Microsoft changed the icons of the applications to ones
that were more artsy, and as a result harder to tell apart and to recognise
immediately. I hated that. So it's important to never sacrifice function for
form.

You may find tis of utility:

http://en.wikipedia.org/wiki/File:Vimlogo.svg

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Buffy Factoids - http://www.shlomifish.org/humour/bits/facts/Buffy/

SMG: It was 1997-1998ish, Buffy started airing. So one day a group of
yeshivah pupils arrived to the studios saying they have some numereological
insights from the Jewish bible, about what will happen in Sunnydale next.
— http://www.shlomifish.org/humour/Summerschool-at-the-NSA/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Vim 7.4 released!

2013-08-12 Thread Shlomi Fish
Hi Paul,

On Mon, 12 Aug 2013 09:33:14 +0100
Paul google1...@rainslide.net wrote:

 On Saturday, 10 August, 2013 at 14:44:43 BST, Bram Moolenaar wrote:
 --
 Q: How many legs does a giraffe have?
 A: Eight: two in front, two behind, two on the left and two on the right
 
 ?!
 

That's just a joke that Bram put on his signature block - see:

http://en.wikipedia.org/wiki/Signature_block

He has a rotating signature (and I do too).

Regards,

Shlomi Fish


-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Text Editors and IDEs - http://shlom.in/IDEs

In Soviet Russia, XSLT codes you. Badly!
— http://www.shlomifish.org/humour/bits/facts/XSLT/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: search with offset

2013-06-01 Thread Shlomi Fish
Hi Marcin,

On Sat, 1 Jun 2013 11:40:19 +
Marcin Szamotulski msza...@gmail.com wrote:

 Dear Vim Use,
 
 Do you know how to repeat vim search preserving the offset.  For example
 /hello/;?Mark?
 the n and N commands seems to forget about the offset, well actually
 they forget about the patter and remember only the offset.  I would like
 to repeat the whole search with offset though.  The question is if you
 know a plugin that does it, if not I can implement it myself.  I have
 found that vim remembers the whole search pattern+offset in the search
 history (:h :histget()).
 

You can:

1. Set up a mark using ma or whatever.

2. Record a register repeat of:

qs`a/minCRq

Then pressing @s will keep searching from this mark onward.

Regards,

Shlomi Fish 

-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Portability Libraries - http://shlom.in/port-libs

SMG: It was 1997-1998ish, Buffy started airing. So one day a group of
yeshivah pupils arrived to the studios saying they have some numereological
insights from the Jewish bible, about what will happen in Sunnydale next.
— http://www.shlomifish.org/humour/Summerschool-at-the-NSA/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Changing opening html tag can also changes closing?

2013-05-19 Thread Shlomi Fish
On Thu, 16 May 2013 08:38:22 -0700 (PDT)
Yann Thomas-Gérard ins...@gmail.com wrote:

 Hello,
 
 I want to change opening and closing html tags effectively. Take this html
 code in normal mode, the cursor is represented by a pipe:
 
 |ul class=foo
   li class=activeitem 1/li
   liitem 2/li
   liitem 3/li
 /ul
 
 cwol would produce:
 
 ol| class=foo
   li class=activeitem 1/li
   liitem 2/li
   liitem 3/li
 /ol
 
 The surround plugin could achieve this with cstolEnter but it wasn't
 meant to keep the existing attributes.
 
 Thank you for any help you can provide in this situation.
 
 Yann
 

Hi Yann!

Please look at these plugins:

* http://www.vim.org/scripts/script.php?script_id=1397

* https://github.com/mattn/zencoding-vim

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Why I Love Perl - http://shlom.in/joy-of-perl

Lone Starr: “Just what we need — a Druish princess.”
Barf: “Funny! She doesn’t look Druish.”
— Spaceballs, http://www.imdb.com/title/tt0094012/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: empty bufname('%') for quick fix, location list and preview window.

2013-05-14 Thread Shlomi Fish
Hi Zhao,

first of all:

Please don't start a new topic by replying to an existing message, because
this will put it under an existing thread in threaded, tree-like mailers.
Instead, write a new message to boston...@mail.pm.org .

The problem is that are the In-Reply-To headers:

https://duckduckgo.com/?q=%22in-reply-to%22%20header

On Sun, 12 May 2013 16:49:23 -0400
Zhao Cai zhao...@gmx.com wrote:

 Hello, :)
 
 `bufname('%')` for quickfix, location list and preview window are empty in my
 environment( MacVim ). Is it a bug? or by design? Do you have the same issue?
 or just me?

:echo bufname('%')

Seems to return the right thing for a regular file here on /usr/bin/gvim on
Mageia Linux 3. Are you trying it on special buffers?

Regards,

Shlomi Fish


-- 
-
Shlomi Fish   http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/

He says “One and one and one is three”.
Got to be good‐looking ’cause he’s so hard to see.
— The Beatles, “Come Together”

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can I control the order of files, then concat into a file

2013-04-09 Thread Shlomi Fish
Hi Russ,

please don't start a new thread by replying to an existing message. Instead,
write a new message to vim_use@googlegroups.com . I could tell that was the
case here by my mailer's threading capabilities.

Regards,

Shlomi Fish

On Tue, 09 Apr 2013 18:46:50 -0500
Russell Urquhart russurquha...@verizon.net wrote:

 Hi all,
 
 This comes on the heels of Taylor helping me to remember how to bring all the
 files in a given directory into a single file in Vim.
[SNIPPED]

-- 
-
Shlomi Fish   http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/

Dax: yep, space. Nothing but nothing all around.
— Star Trek, “We, the Living Dead” by Shlomi Fish

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: does vi has a funtion like grep -v?

2013-01-25 Thread Shlomi Fish
Hi skyworld,

On Fri, 25 Jan 2013 01:21:37 -0800 (PST)
skyworld chenyong20...@gmail.com wrote:

 Hi,
 
 does vi has a fuction like grep -v? I always found I need to seach
 within the file with those lines which exclue specific strings.
 Thanks.
 

First of all, you can use :v/re/p (Replace p with whatever). Otherwise look at
negated regular expressions in http://shlomif-tech.livejournal.com/40557.html .

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/

The bad thing about hardware is that it sometimes works and it sometimes
doesn’t. The good thing about software is that it’s consistent: it always
does not work, and it always does not work in exactly the same way.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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





Re: vim: how to disable vim backup file when launching vim command?

2013-01-21 Thread Shlomi Fish
Hi,

On Mon, 21 Jan 2013 07:46:03 +
Phil Dobbin phildob...@gmail.com wrote:

 On 01/21/2013 07:24 AM, ping wrote:
 
  vim backup file is great in 99% scenarios, but it's annoying to create
  an un-wanted file in some system directories, especially in dirs that
  contains configurations for apps.
  how, can I disable the backup file creation, right when I launch vim to
  read a file?
  
  I know another workaround is to just launch vim without any file, turn
  off backup file creation, and then open the files...
 
 I'm not aware of an option to turn backups off on a per file basis but I
 always set in my vimrc the directory to which the backups are saved:
 
 'set backup
 
 set backupdir=~/.backup'
 

You can always use :autocmd :

http://vimdoc.sourceforge.net/htmldoc/autocmd.html

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/

If God exists and is the ego‐maniacal, sadistic and helpless creature that is
described in the Old Testament, then we’re in deep trouble.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: tabnew . not showing current directory path

2013-01-15 Thread Shlomi Fish
Hi naaj_ila,

On Tue, 15 Jan 2013 01:18:49 -0800 (PST)
naaj_ila alijohnsh...@gmail.com wrote:

  I opened afile with vim in terminal
 vim file1.sv   ESC:tabnew .   
 tabnew will open a file with current directory path and will show the list
 of files. 
 
 But if i opened file in gvim its not working
 gvim file1.sv ESC:tabnew . 
 tabnew will open a file with current directory path and NOT  showing 
 anything in taht file 
 
 
 Samething happens for sp .  also 
 
 Can anybody help me guys 
 

that sounds like a local Vim misconfiguration problem. Can you try running gvim
with -U NONE -u NONE? This works fine here. After that, you can try
bisecting .vimrc:

http://en.wikipedia.org/wiki/Code_Bisection

Regards,

Shlomi Fish


-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Text Editors and IDEs - http://shlom.in/IDEs

And the top story for today: wives live longer than husbands because they are
not married to women.
— Colin Mochrie in Whose Line is it, Anyway?

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: Highlight just headings?

2013-01-13 Thread Shlomi Fish
Hi wolfv,

On Sat, 12 Jan 2013 10:44:03 -0800 (PST)
wolfv wolfvo...@gmail.com wrote:

 I use VIM to edit .txt files for personal notes and to-do lists.  I really
 like my setup but sometimes it is hard to pick out the headings.
 
 The only Markdown convention I use is headings.  I turned off Markdown syntax
 because most of the highlighting gets in the way e.g. the “_” underscore in
 URLs, file_names, and paths start italics where I don't want it.  Escape
 characters would slow down typing and reading.
 
 I use Markdown headings for folding.  I do not want the remaining Markdown
 syntax.
 
 Is there a Vim script that has the following three syntax or a plugin where
 the other syntax can be turned off?: 1. indented wrapping e.g. Block Quotes
 from reStructuredText (RST) 2. heading highlighting from Markdown e.g. ##title
  3. folding on the Markdown headings
 

(sorry for messing up the text).

I think the quickest way given these requirements is to write something like
that yourself or pay/convince/bribe/force/threaten/etc. someone else to do it.
I am willing to do it given the right price, but I should warn you that I'm not
a very big expert when it comes to writing Vim syntax files. If you're
interested in hiring me, then contact me offlist:

http://www.shlomifish.org/me/contact-me/

Other people may be able to help you too, but most of them will also probably
expect a payment of some sort. Or like I said, you can learn it from vim's
usr_* and write it yourself.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Why I Love Perl - http://shlom.in/joy-of-perl

Larry Wall *does* know all of Perl. However, he pretends to be wrong
or misinformed, so people will underestimate him.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: displaying unicode control sequences

2012-12-31 Thread Shlomi Fish
Hi Moshe,

On Mon, 31 Dec 2012 12:47:09 +0200
Moshe Kamensky moshe.kamen...@googlemail.com wrote:

 Hi,
 
 I am editing a document that contains the bidi control sequences LRE 
 (unicode 202a) and PDF (unicode 202c). These characters are displayed 
 with their unicode value in angle brackets, like this: 202a. As a 
 result, the line breaking (among other things) is wrong. This happens 
 both in the gui (gtk2) and in the terminal, despite the fact that the 
 font I am using appears to have glyphs for these characters. So my 
 question is, is it possible to cause vim to display the actual glyphs, 
 instead of the unicode value?
 

Vim does not support bidirectional editing of bidirectional (mixed
Hebrew/Latin, Arabic/Latin , etc.) text - it can either display the text
left to right or right to left, with some fragments displayed reversed.

Also see: http://ae-www.technion.ac.il/pkgs/t-z/vim/

Regards,

Shlomi Fish

 Thank you,
 Moshe
 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
List of Text Editors and IDEs - http://shlom.in/IDEs

Judaism: God is all the shit, all the non‐shit and all the intermediate
demi‐shits in between.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

2012-12-29 Thread Shlomi Fish
Hi Ben,

On Fri, 28 Dec 2012 16:22:36 -0800 (PST)
Ben Fritz fritzophre...@gmail.com wrote:

 On Thursday, December 27, 2012 1:41:11 AM UTC-6, Shlomi Fish wrote:
  
  In any case, while the wiki is a useful resource,
  as some people told me on IRC:
  
  
  
  
  the vim wiki is a mess, the help is too hard to navigate for
  newcomers
  
  
 
 It's a wiki. I think fixing the wiki would be easier than starting over from
 scratch. For beginners, there is even a getting started section with some
 decent starter tips. It's easy enough for any community-edited page to become
 a mess, all it takes is a lot of drive by editing and not enough
 long-term maintainers.

Right, and that's why I sometimes prefer a centrally managed static or mostly
static HTML site, which I have control of, and which I can edit locally using
Vim (or $EDITOR_OF_CHOICE), a nice terminal emulator (I'm using konsole) and
shell (Bash in my case), and a nice version control system. Add to that that
the MediaWiki syntax is horrible, and that the Wikimedia people have a separate
mailing list for ranting about the horrible code and design of its parser.

There are other problems with Wikis such as rampant spam, but Wikia appears to
handle them pretty well so far (touch wood).

In any case, adding a common navigation menu is easier in Jekyll than it would
be in a Wikia MediaWiki instance that I don't control, but I guess I can
contribute to http://vim.wikia.com/ as well.

Also see:
http://www.shlomifish.org/humour/fortunes/show.cgi?id=perl-petdance-thousand-flowers
 .


 
  
  Another problem with the wiki is that being hosted on Wikia, there are some
  intrusive ads by default.
  
 
 I can't argue with that. But most of the time the ads are normal easily
 ignored banner ads. And you can create an account and log in to hide most of
 those.

True, but many (most?) people who stumble upon the Wiki will run into the ads
(assuming they are not using AdBlock Plus or whatever), and it leaves a bad
taste in the mouth.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/

An apple a day keeps the doctor away.
Two apples a day will keep two doctors away.
— one of Shlomi Fish’s relatives

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

2012-12-26 Thread Shlomi Fish
Hi all,

I would like to announce that today I started working on
http://vim.begin-site.org/ - the Vim Beginners’ Site, which is a static site
generated by the Jekyll offline CMS (which I learned today, after finding a
post of someone who converted his site from XML+XSLT to it, as I considered
using XSLT first). Currently many links are broken and the content is
incomplete, but:

1. The site's source code is open-source / open-content (MIT/X11 | CC-by ).

2. One can easily contribute to it:

* http://vim.begin-site.org/contribute/

* http://vim.begin-site.org/source/ - points to the BitBucket repo.

3. I'm noting ideas for resources here:

*
https://bitbucket.org/shlomif/vim-begin/src/131c08549754e47c0ccf3cbdf202e6b6c0300172/vim-begin/jekyll-prototype/TODO.txt?at=default

(short URL - http://is.gd/WtjpJE ).

4. I'm planning to continue working on it myself.

---

The inspiration for the site is http://perl-begin.org/ , which I also created
and still maintain. I registered the begin-site.org and begin-site.com domains
to serve as placeholders for more sites like that, and will be happy to refer
their sub-domains to similar sites (e.g: c.begin-site.org , cpp.begin-site.org ,
clojure.begin-site.org , python.begin-site.org , emacs.begin-site.org ,
cooking.begin-site.org , etc.).

Some people on IRC told me there was a genuine need for a site like that about
Vim, and since I like Vim so much I decided to go for it.

Enjoy, and I hope to see you contributing.

Regards,

Shlomi Fish

P.S: while they are still not there, I am planning on putting some 100%
non-intrusive non-animated images
http://en.wikipedia.org/wiki/Project_Wonderful ads on the site, similar to
what I have on http://www.shlomifish.org/ . I hope you will not be too offended
by them, but you can use an ad blocker, or alternatively set up a mirror of the
site under a different domain, without the ads. So I think it is fair, given
that I pay for the domain and the hosting.

-- 
-
Shlomi Fish   http://www.shlomifish.org/
My Public Domain Photos - http://www.flickr.com/photos/shlomif/

All language designers are arrogant. Goes with the territory… :-)
— http://en.wikiquote.org/wiki/Larry_Wall

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

2012-12-26 Thread Shlomi Fish
Hi Mr. Weber,

On Thu, 27 Dec 2012 00:42:32 +0100
Marc Weber marco-owe...@gmx.de wrote:

 great:
 we all can contribute
 
 you should mention why you have chosen to start a new site rather than
 using the existing wiki - and why you want to limit the contributable
 page to beginners.

Which contributable page? In any case, while the wiki is a useful resource,
as some people told me on IRC:


the vim wiki is a mess, the help is too hard to navigate for
newcomers


Another problem with the wiki is that being hosted on Wikia, there are some
intrusive ads by default.

 
 I've had the idea to start something similar, store all the contents in
 a git repo all users can access and contribute to, which is that similar
 to text that you can also read/grep/edit with vim.

I store all the contents in a repository too - only in my case it is Mercurial
and not git (Mercurial is a distributed version control system very similar to
git). Perhaps I need to add a “Fork me on Bitbucket” strip like the shopworn
“Fork my on GitHub one, but for now see:

http://vim.begin-site.org/source/

 
 Moreover the idea I had also included managing plugins by VCS repository
 url - so that the www.vim.org implementation could be replaced one day.

Interesting.

 
 If you're interested in those goals to I'll point you to our document to
 which we've written our ideas (me and garbas that time).

Sure, give us a link. It may provide some inspiration.

 I don't think Vim needs yet another page - it needs one which can be
 contributed to by users easily.

Well, see:

http://www.shlomifish.org/humour/fortunes/show.cgi?id=perl-petdance-thousand-flowers

Anyway, it shouldn't be hard for clueful users to contribute content directly to
the Vim-Begin, though at the moment it will require some more mental effort than
using a web browser interface. It is certainly easier than tweaking the source
of http://perl-begin.org/contribute/ which has quite a few dependencies.
 
 
 However its only my personal opinion.
 

Your opinion still counts and it will provide some useful input.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
The Human Hacking Field Guide - http://shlom.in/hhfg

Real men don’t listen to sentences that start with “Real men don’t”.
— http://whatsup.org.il/article/6023

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: Show the list of the files inside the folder of the current file

2012-11-13 Thread Shlomi Fish
Hi Javier,

On Tue, 13 Nov 2012 06:48:12 -0800 (PST)
Javier Garcia tirengar...@gmail.com wrote:

 Hi,
 
 imagine I'm editing file, and I want to show the list of the files inside the
 folder who belongs the file I'm editing, to edit one of them.
 
 How can I do that? Is there any way using FuzzyFinder?
 

You can use the :E command.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Interview with Ben Collins-Sussman - http://shlom.in/sussman

Linux — Because Software Problems Should not Cost Money.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: basic vim usage

2012-11-08 Thread Shlomi Fish
Hi Vicky,

On Thu, 8 Nov 2012 18:07:42 +0530
vicky b vickyb2...@gmail.com wrote:

 no  i dont want to use GUI , i want to use vim not gvim  how can copy and
 paste with ease in vim
 

if you're interested in copying and pasting within Vim itself, you can use the
register yanking/deleting/pasting commands, like y, d, c, p and P. If you're
interested in copying to the system buffer, you can prefix these commands with
+ (double-quotes-plus) or * (double-quotes-asterisk). For more information,
read :help change.txt in Vim (without the quotes).

Regards,

Shlomi Fish

 
 On Thu, Nov 8, 2012 at 6:05 PM, Karthick Gururaj karthick.guru...@gmail.com
  wrote:
 
 
  On Thu, Nov 8, 2012 at 4:53 PM, vicky b vickyb2...@gmail.com wrote:
 
  I have started to learn vim in this modern enviroment where gui takes
  prefers , one thing that still me back to other editors is the ease with
  which we can  copy and paste , can anybody help me out with safe effect in
  vim or any thing of that sort
 
  If you are using gvim, you have the option of clicking on Edit - Copy
  and Edit - Paste. You need to select some text first obviously, before
  copy. Selection can be done with mouse. Using CTRL-C and CTRL-V might also
  work for copy/paste - whether it does work or not depends on a few factors.
 
  It that the answer you were looking for?
 
  Also, if GUI is what you want to work with, vim may not be worth looking
  at. Just my opinion.
 
  --
  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
 
 
 
 



-- 
-
Shlomi Fish   http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

The English Wikipedia: now you don't see it — now you do.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Fw: Vim and XML -- best setup ?

2011-06-18 Thread Shlomi Fish


Begin forwarded message:

Date: Sat, 18 Jun 2011 09:15:20 +0300
From: Shlomi Fish shlo...@shlomifish.org (by way of Shlomi Fish
shlo...@shlomifish.org) To: vim_use@googlegroups.com
Cc: meino.cra...@gmx.de
Subject: Re: Vim and XML -- best setup ?


Hi mcc,

On Sat, 18 Jun 2011 07:40:03 +0200 meino.cra...@gmx.de wrote:

 
 Hi,
 
 in the *very* near future I will to hack a lot XML/XSLT/XSL/XMP...

I don't know what XMP is:

http://en.wikipedia.org/wiki/Extensible_Metadata_Platform

Oh well.

 stuff at work and I will do it with vim. 
 Unfortunately I am not allowed to install any binary
 executable (with the exeption of the vim  package, which is
 already there) on the machine. 

Wow! I am keep being amazed at how workplaces suck with their policies.
How big is your company?

 I am allowed to install text
 files (read: vim scripts and setups) in my $HOME.
 
 Due to the lack of time I cannot go deep into search and explore-
 mode to find THE working setup for the best way to edit 
 xml-like stuff with vim.
 
 So I would be very happy if I could get some hints here to
 speed things up a little...
 
 Are there any things to prefer for such a task and worth to 
 check?

Well, I like this XML plugin:
http://www.vim.org/scripts/script.php?script_id=1397 . It has many
useful functions to add tags, change tags, etc.

Vim also has useful syntax highlighting modes for XML, XSLT, etc.
which you should look into.

You may also wish to install one of the snippets plugins such as
snipMate or UltiSnips.

Regards, 

Shlomi Fish

 
 Thank you very much in advance for any hint  ;)

It should be hint /. ;-)

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/

PerlJam I'm trying to achieve world peace and this regex is the last
thing standing in my way! ;)

Please reply to list if it's a mailing list post - http://shlom.in/reply


-- 
-
Shlomi Fish   http://www.shlomifish.org/
http://www.shlomifish.org/humour/ways_to_do_it.html

Stray XSLT code causes more deaths than road accidents.

Please reply to list if it's a mailing list post - http://shlom.in/reply

-- 
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


Re: [HELP]perl-support problem on gvim 7.3

2011-06-01 Thread Shlomi Fish
Hi,

On Wednesday 01 Jun 2011 04:51:01 zhang listar wrote:
 The os is windows xp sp3, with gvim 7.3.
 
 I am new to Perl, and want to use vim to edit perl, so I download
 perl-support and install it.
 
 But when I start gvim to edit a file say, test.pl. it gives the error as
 follows:
 
 can't locate Per/tags.pm  in @INC at (eval 9) line 1.
 

You have a copying error here - next time use your shell's session copy-and-
paste feature.

You probably mean you need to install this module - 
http://search.cpan.org/dist/Perl-Tags/ - so install it from CPAN.

 can't call method process on an undefined value at (eval 10) line 5

Can't help you with this one yet.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Understand what Open Source is - http://shlom.in/oss-fs

I simply hate, detest, loathe, despise, and abhor redundancy.
-- http://uncyclopedia.org/wiki/Redundancy

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: Screenplay-Text Syntax File Misbehaving

2011-04-21 Thread Shlomi Fish
Hi Andy,

On Wednesday 20 Apr 2011 11:26:06 Andy Wokula wrote:
 Am 19.04.2011 10:59, schrieb Shlomi Fish:
  Hi all,
  
  I prepared a partial syntax file for Screenplay-Text here:
  
  http://svn.berlios.de/svnroot/repos/web-cpan/XML-Grammar-Fiction/trunk/vi
  m
  
  It's attached to this message.
  
  You can learn more about Screenplay-Text here - http://xrl.us/bjswbo .
  Here are the homepages of the implementation:
  
  http://www.shlomifish.org/open-source/projects/XML-Grammar/Fiction/
  
  http://web-cpan.berlios.de/modules/XML-Grammar-Screenplay/
  
  The problem is that when I edit a screenplay, often the highlighting of
  the addressing disappears and other weird stuff happens and I don't know
  what I'm doing wrong. I'm attaching here a sample screenplay (under
  CC-by-sa). If I position the screen starting from line 7, and then I
  travel with the cursor up and down, then I get that part of the
  description (what comes between [ and ]) gets unhighlighted, and
  lots of other stuff like that when editing a screenplay.
  
  There are similar screenplays that exhibit similar problems here:
  
  http://www.shlomifish.org/humour/stories/
  
  Can anyone instruct me how to fix it?
  
  Regards,
  
  Shlomi Fish
 
 No answers yet, so I have a few hints ...
 
 
 You should add a syncing rule, for example
 
  :syn sync minlines=50
  :
  :h :syn-sync
 
   there are more methods!
 
 
 Multi-line matches like the following
 
  :syntax match screenplayTextComment /!--\_.\{-0,}--/
  :syntax match screenplayTextDescription /^ *\[\_.\{-0,}\]/
 
 are better written using :syn-region
 
  :syntax region screenplayTextDescription start=^ *\[ end=]
 
 etc.

Thanks! After I incorporated some of these suggestions, everything works much 
better. I'm now thanking you in the source file. If you'd like me to include a 
link to your homepage / blog / etc. in the source as well, please let me know, 
and I'll be happy to do so.


 
 
 This does nothing:
 
  let b:current_syntax=ScreenplayText
  runtime! syntax/xml.vim
 
 ... syntax/xml.vim immediately finishes when b:current_syntax is set.
 
 Could be this was your way of commenting out the :runtime statement ...
 I guess you will only want to borrow a few rules from the xml syntax
 file and not include it completely.

I see, OK, I will.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Understand what Open Source is - http://shlom.in/oss-fs

Sisko: Q: would it be OK if my crew brough along their phasers with them?

Q: Of course. They can also bring some photon torpedoes if they wish. None of 
them will work, but I don't mind them taking them.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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


Re: Screenplay-Text Syntax File Misbehaving

2011-04-20 Thread Shlomi Fish
Hi Andy,

On Wednesday 20 Apr 2011 11:26:06 Andy Wokula wrote:
 Am 19.04.2011 10:59, schrieb Shlomi Fish:
  Hi all,
  
  I prepared a partial syntax file for Screenplay-Text here:
  
  http://svn.berlios.de/svnroot/repos/web-cpan/XML-Grammar-Fiction/trunk/vi
  m
  
  It's attached to this message.
  
  You can learn more about Screenplay-Text here - http://xrl.us/bjswbo .
  Here are the homepages of the implementation:
  
  http://www.shlomifish.org/open-source/projects/XML-Grammar/Fiction/
  
  http://web-cpan.berlios.de/modules/XML-Grammar-Screenplay/
  
  The problem is that when I edit a screenplay, often the highlighting of
  the addressing disappears and other weird stuff happens and I don't know
  what I'm doing wrong. I'm attaching here a sample screenplay (under
  CC-by-sa). If I position the screen starting from line 7, and then I
  travel with the cursor up and down, then I get that part of the
  description (what comes between [ and ]) gets unhighlighted, and
  lots of other stuff like that when editing a screenplay.
  
  There are similar screenplays that exhibit similar problems here:
  
  http://www.shlomifish.org/humour/stories/
  
  Can anyone instruct me how to fix it?
  
  Regards,
  
  Shlomi Fish
 
 No answers yet, so I have a few hints ...
 

Thanks for your hints. I'll try to implement them and let you know of my 
progress.

Regards,

Shlomi Fish

[SNIPPED]

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/

Real programmers don't write workarounds. They tell their users to upgrade
their software.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
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