Re: How to Set menu size on gvim [solved]

2024-04-08 Thread Tim Johnson

On 4/7/24 13:04, Tim Johnson wrote:

I am using gvim version 8.2 on ubuntu 22.04,
Huge version with GTK3 GUI.

How may I set the menu size to a larger font?

I have found instructions for versions with Athena or Motif but none 
that are current

for modifying menu sizes on versions with GTK3.

See 
https://git.entwicklerseite.de/vim/tree/utils/gtk-3.0.css?h=master=ed803af15c2caa1f6e3bcf4454a2e5a354d77bab

copy and paste into ~/.config/gtk-3.0/gtk.css

and "Bob's yer uncle" as Daphne Moon would say. Edit at yer heart's content.
Yay.

-- Tim thjmm...@gmail.com

--
--
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/add104eb-eaca-4e46-9341-39a389a096ac%40gmail.com.


Re: How to Set menu size on gvim

2024-04-07 Thread Tim Johnson

On 4/7/24 16:30, rob wrote:


in my _gvimrc file is this line

set guifont=Lucida_Console:h12:cANSI:qDRAFT

Try :h guifont and :h gui-font for something that works for you

Like you, I need a larger font for eyes over 65 :-)


Heck, I can't even  see 65 in the rear-view mirror.

Thanks for the reply. It appears that *set guifont* is for text only. I 
have been using *set guifont=Monospace\ 15*, which works

well for me, but the menu remains teeny-tiny.

I *think *part of the solution entails setting up the correctly named 
gtk resource file (whether it is named ~/.gtkrc or ~/.gtkrc-3.0, I
just don't know yet) containing the correct syntax. And then referencing 
a highlight/font name with the correct vim command.

cheers

--
Tim
thjmm...@gmail.com

--
--
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/7e249128-7d9d-4b7b-91f7-7e3b9cdd2d54%40gmail.com.


Re: How to Set menu size on gvim

2024-04-07 Thread Tim Johnson

On 4/7/24 14:34, Tony Mechelynck wrote:

On Mon, Apr 8, 2024 at 12:20 AM Tim Johnson  wrote:

I am using gvim version 8.2 on ubuntu 22.04,
Huge version with GTK3 GUI.

How may I set the menu size to a larger font?

I have found instructions for versions with Athena or Motif but none that are 
current
for modifying menu sizes on versions with GTK3.

Thanks

--
Tim
thjmm...@gmail.com

The Menu highlight group is supposed to set font, foreground colour
and background colour for the menus and toolbar (see :help hl-Menu);
however in my current gvim system (with GTK3 GUI) this highlight group
is not set, and I haven't tried to set it to see if it made the menu
font change. (The menus are displayed.)

Tony, it sounds like you are having the same problem as I. For me, with 
my current monitor
and my present eyesight, having menu so small makes it really hard to 
work with.
What I know is there is a GTK resource file, but the only info that I 
have found is not very
current. I don't know what to name the resource file (.gtkrc or 
.gtkrc-3.0) and what syntax

to use in it.

:h hl-menu on my setup says nothing about GTK. (sigh)

thanks for the reply.

--
Tim
thjmm...@gmail.com

--
--
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/06d13eb9-3136-4f74-a5c6-c0e19f3c%40gmail.com.


How to Set menu size on gvim

2024-04-07 Thread Tim Johnson

I am using gvim version 8.2 on ubuntu 22.04,
Huge version with GTK3 GUI.

How may I set the menu size to a larger font?

I have found instructions for versions with Athena or Motif but none 
that are current

for modifying menu sizes on versions with GTK3.

Thanks

--
Tim
thjmm...@gmail.com

--
--
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/3122daf5-17c2-4ea6-a505-7f7a318141f9%40gmail.com.


GTK error when starting with --role option

2022-03-14 Thread Tim Johnson

Version info:
IM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
Included patches: 1-2269, 3612, 3625, 3669, 3741
Modified by team+...@tracker.debian.org
Compiled by team+...@tracker.debian.org
Huge version with GTK3 GUI.

on ubuntu 20.04, i3 window manager.

When starting gvim from a terminal as follows:
gvim --role="helpscreen"
I get the following message:
(gvim:10303): Gtk-CRITICAL **: 13:50:30.814: 
gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

The message repeats whenever I mouse over.

It appears that the message is triggered when I use the role option.

Any ideas about what may be causing this and how to suppress the message?
thanks

--
Tim (RIP Sven)
tj49.com

--
--
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/6ba7a535-3810-ed2c-4436-1124fdf05dbe%40akwebsoft.com.


Re: Sven Guckes passed away

2022-03-14 Thread Tim Johnson

I miss him. He helped me get on board with vim and mutt.
Even tho' he was younger than I, he had more forehead.
Well, what the heck, you can't have hair and brains both
and boy did he ever have brains.

My condolences to his family and loved ones and also to
all those whose life he made better.

On 2/21/22 4:48 AM, Bram Moolenaar wrote:

Forwarding this text from Antonio Colombo:

==

Our friend Sven Guckes died in Berlin on February 20, 2022.
He was diagnosed with a brain tumor in December 2021.
He went to a hospital, but surgeons could not do much for him.
At the end of January he was moved to a Hospice.
A group of friends has been with him as much as possible during all his
sickness.
He died while Pugs, one of his friends, was with him.
They had just finished a chat, and Sven was smiling, but then he quieted
down and in a few moments he did not breathe any more.

Sven (when he was still a student at the Free University of Berlin) was very
active in the Vim development team in the Nineties. He was the one who set
up the vim.org domain. Later on he had the idea of "What is Vim?", an
explanation of Vim in six kilobytes, and helped with some versions of
Vimtutor.

Sven worked (and gave talks) also on a lot of other free software projects,
let us remember here just "plain" vi and mutt, but there are several
others. He had friends all over the world, and helped them, for software
problems and for real life problems in any way he could.

Let us recall here just one of his "pet projects", the mythical
"alternate.fan.warlord" FAQ, in which appears one of his signatures,
in newsgroup alt.fan.warlord.

Vale, Sven!

==


I met Sven only a couple of times.  What I remember most is his never
ending enthusiasm.  He was a good person.

I would like to dedicate the upcoming Vim 9.0 release to Sven in his
memory.

Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
Hacker news: https://news.ycombinator.com/item?id=30410077



--
Tim
tj49.com

--
--
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/6d24fe74-7969-a6ba-8b3b-d655999b29ac%40akwebsoft.com.


Re: long line to paragraph all indented

2019-06-03 Thread Tim Johnson
* Gary Johnson  [190603 13:58]:
> On 2019-06-03, Tim Johnson wrote:
> > version 7.4 on ubuntu
> > non-gui
> > 
> > given a long line indented to some nominal number of spaces, how can
> > I format this line to preset paragraph width but with each line in
> > paragraph retaining the original indentation.
> > example:
> > 
> > Pour the remaining sauce over the enchiladas. Cover with leftover 
> > cheese and bake for about 20 minutes or until cheese is bubbling.
> > 
> > becomes:
> > 
> > Pour the remaining sauce over the enchiladas. Cover with leftover cheese
> > and bake for about 20 minutes or until cheese is bubbling.
> 
> :set breakindent

  Oh yeah...really simple and avoids using external app.
  thanks

-- 
Tim Johnson
http://www.tj49.com

-- 
-- 
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/2019060429.GC12747%40mail.akwebsoft.com.
For more options, visit https://groups.google.com/d/optout.


Re: long line to paragraph all indented

2019-06-03 Thread Tim Johnson
* George Dinwiddie  [190603 13:58]:
> Tim
> 
> On 6/3/19 5:43 PM, Tim Johnson wrote:
> > version 7.4 on ubuntu
> > non-gui
> > 
> > given a long line indented to some nominal number of spaces, how can
> > I format this line to preset paragraph width but with each line in
> > paragraph retaining the original indentation.
> > example:
> > 
> >  Pour the remaining sauce over the enchiladas. Cover with leftover 
> > cheese and bake for about 20 minutes or until cheese is bubbling.
> > 
> >  becomes:
> > 
> >  Pour the remaining sauce over the enchiladas. Cover with leftover 
> > cheese
> >  and bake for about 20 minutes or until cheese is bubbling.
> 
> I use the external program 'fmt' to do it, like this:
> 
> :.,.!fmt

  :) That works like a charm! Thank you.

-- 
Tim Johnson
http://www.tj49.com

-- 
-- 
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/20190603224825.GB12747%40mail.akwebsoft.com.
For more options, visit https://groups.google.com/d/optout.


long line to paragraph all indented

2019-06-03 Thread Tim Johnson
version 7.4 on ubuntu
non-gui

given a long line indented to some nominal number of spaces, how can
I format this line to preset paragraph width but with each line in
paragraph retaining the original indentation.
example:

Pour the remaining sauce over the enchiladas. Cover with leftover cheese 
and bake for about 20 minutes or until cheese is bubbling.

becomes:

Pour the remaining sauce over the enchiladas. Cover with leftover cheese
and bake for about 20 minutes or until cheese is bubbling.

thanks
-- 
Tim Johnson
http://www.tj49.com

-- 
-- 
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/20190603214308.GA12747%40mail.akwebsoft.com.
For more options, visit https://groups.google.com/d/optout.


Re: xsel copies to clipboard twice [solved]

2017-08-10 Thread Tim Johnson
* Christian Brabandt <cbli...@256bit.org> [170810 10:10]:
> 
> On Do, 10 Aug 2017, Tim Johnson wrote:
> 
> > * Christian Brabandt <cbli...@256bit.org> [170809 10:34]:
> > > 
> > > On Mi, 09 Aug 2017, Tim Johnson wrote:
> > <...> 
> > Redundant clipboard copy here - patches follow :
> > 
> > VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:42:57)
> > Included patches: 1-52
> > Extra patches: 8.0.0056
> > Modified by pkg-vim-maintain...@lists.alioth.debian.org
> > Compiled by buildd@
> > Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
> > 
> > Clipboard single copy here - patches follow :
> > -
> > M - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:42:57)
> > Included patches: 1-52
> > Extra patches: 8.0.0056
> > Modified by pkg-vim-maintain...@lists.alioth.debian.org
> > Compiled by buildd@
> > Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
> 
> Are you sure? That looks like the same version for both your Vims?
> Well, check yourself for differences. There must be a difference 
> somewhere.

Ugh, they are now. Something on my system (perhaps me) has fiddled
with symlinks.

The bottom line is (I think) that when *clipboard features are
compiled the redundancy occurs. I am now using by preference a
"lighter" version without *clipboard (and other) features. This
gives me quicker launch time from mc and xsel functions as a JIT
resource. 

I appreciate the interest. I'm going to call this solved. Thanks for
the help.

-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: xsel copies to clipboard twice

2017-08-10 Thread Tim Johnson
* Christian Brabandt <cbli...@256bit.org> [170809 10:34]:
> 
> On Mi, 09 Aug 2017, Tim Johnson wrote:
<...> 
Redundant clipboard copy here - patches follow :

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:42:57)
Included patches: 1-52
Extra patches: 8.0.0056
Modified by pkg-vim-maintain...@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):

Clipboard single copy here - patches follow :
-
M - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:42:57)
Included patches: 1-52
Extra patches: 8.0.0056
Modified by pkg-vim-maintain...@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):

> 
> Looks pretty similar. However you did not include the patch level. 
I could include ldd output for both also
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: xsel copies to clipboard twice

2017-08-09 Thread Tim Johnson
* Christian Brabandt <cbli...@256bit.org> [170808 21:50]:
> 
> On Di, 08 Aug 2017, Tim Johnson wrote:
> 
> >  The /usr/bin/vim.gnome binary, which is what I am using as my
> >  default MC editor does not have the redundant copy issue when
> >  running xsel as an external app.
> >  
> >  The /usr/bin/vim binary is where the redundant copy occurs.
> >   
> >  I'd conclude that some other feature in /usr/bin/vim is causing
> >  this.
> > 
> >  Both /usr/bin/vim and /usr/bin/vim.gnome have both clipboard and
> >  xterm_clipboard enabled.
> 
> Please show the vim --version output for both versions where it happens 
> and where it doesn't. 
  Sorry disregard the last attachment, I hadn't saved it! Must have
  coffee
  This attachment should be complete
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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.
Redundant clipboard copy here - versions follow :
-
+acl +cmdline_info+emacs_tags  -hangul_input+menu   
 +mouse_xterm -python3 +syntax  +virtualedit 
+xsmp_interact
+arabic  +comments+eval+iconv   +mksession  
 +multi_byte  +quickfix+tag_binary  +visual  
+xterm_clipboard
+autocmd +conceal +ex_extra+insert_expand   
+modify_fname+multi_lang  +reltime +tag_old_static  
+visualextra -xterm_save
+balloon_eval+cryptv  +extra_search+jumplist+mouse  
 -mzscheme+rightleft   -tag_any_white   +viminfo +xpm
+browse  +cscope  +farsi   +keymap  +mouseshape 
 +netbeans_intg   +ruby+tcl +vreplace
++builtin_terms  +cursorbind  +file_in_path+langmap +mouse_dec  
 +path_extra  +scrollbind  +terminfo+wildignore
+byte_offset +cursorshape +find_in_path+libcall +mouse_gpm  
 +perl+signs   +termresponse+wildmenu
+cindent +dialog_con_gui  +float   +linebreak   
-mouse_jsbterm   +persistent_undo +smartindent +textobjects +windows
+clientserver+diff+folding +lispindent  
+mouse_netterm   +postscript  -sniff   +title   +writebackup
+clipboard   +digraphs-footer  +listcmds+mouse_sgr  
 +printer +startuptime +toolbar +X11
+cmdline_compl   +dnd +fork()  +localmap
-mouse_sysmouse  +profile +statusline  +user_commands   -xfontset
+cmdline_hist-ebcdic  +gettext +lua 
+mouse_urxvt +python  -sun_workshop+vertsplit   +xim

Clipboard single copy here - versions follow :
-
+acl +cmdline_info+emacs_tags  -hangul_input+menu   
 +mouse_xterm -python3 +syntax  +virtualedit 
+xsmp_interact
+arabic  +comments+eval+iconv   +mksession  
 +multi_byte  +quickfix+tag_binary  +visual  
+xterm_clipboard
+autocmd +conceal +ex_extra+insert_expand   
+modify_fname+multi_lang  +reltime +tag_old_static  
+visualextra -xterm_save
+balloon_eval+cryptv  +extra_search+jumplist+mouse  
 -mzscheme+rightleft   -tag_any_white   +viminfo +xpm
+browse  +cscope  +farsi   +keymap  +mouseshape 
 +netbeans_intg   +ruby+tcl +vreplace
++builtin_terms  +cursorbind  +file_in_path+langmap +mouse_dec  
 +path_extra  +scrollbind  +terminfo+wildignore
+byte_offset +cursorshape +find_in_path+libcall +mouse_gpm  
 +perl+signs   +termresponse+wildmenu
+cindent +dialog_con_gui  +float   +linebreak   
-mouse_jsbterm   +persistent_undo +smartindent +textobjects +windows
+clientserver+diff+folding +lispindent  
+mouse_netterm   +postscript  -sniff   +title   +writebackup
+clipboard   +digraphs-footer  +listcmds+mouse_sgr  
 +printer +startuptime +toolbar +X11
+cmd

Re: xsel copies to clipboard twice

2017-08-09 Thread Tim Johnson
* Christian Brabandt <cbli...@256bit.org> [170808 21:50]:
> 
> On Di, 08 Aug 2017, Tim Johnson wrote:
> 
> >  The /usr/bin/vim.gnome binary, which is what I am using as my
> >  default MC editor does not have the redundant copy issue when
> >  running xsel as an external app.
> >  
> >  The /usr/bin/vim binary is where the redundant copy occurs.
> >   
> >  I'd conclude that some other feature in /usr/bin/vim is causing
> >  this.
> > 
> >  Both /usr/bin/vim and /usr/bin/vim.gnome have both clipboard and
> >  xterm_clipboard enabled.
> 
> Please show the vim --version output for both versions where it happens 
> and where it doesn't. 
I'm attaching versions.txt - headers should be explanatory
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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.
Redundant clipboard copy here - versions follow :
-
+acl +cmdline_info+emacs_tags  -hangul_input+menu   
 +mouse_xterm -python3 +syntax  +virtualedit 
+xsmp_interact
+arabic  +comments+eval+iconv   +mksession  
 +multi_byte  +quickfix+tag_binary  +visual  
+xterm_clipboard
+autocmd +conceal +ex_extra+insert_expand   
+modify_fname+multi_lang  +reltime +tag_old_static  
+visualextra -xterm_save
+balloon_eval+cryptv  +extra_search+jumplist+mouse  
 -mzscheme+rightleft   -tag_any_white   +viminfo +xpm
+browse  +cscope  +farsi   +keymap  +mouseshape 
 +netbeans_intg   +ruby+tcl +vreplace
++builtin_terms  +cursorbind  +file_in_path+langmap +mouse_dec  
 +path_extra  +scrollbind  +terminfo+wildignore
+byte_offset +cursorshape +find_in_path+libcall +mouse_gpm  
 +perl+signs   +termresponse+wildmenu
+cindent +dialog_con_gui  +float   +linebreak   
-mouse_jsbterm   +persistent_undo +smartindent +textobjects +windows
+clientserver+diff+folding +lispindent  
+mouse_netterm   +postscript  -sniff   +title   +writebackup
+clipboard   +digraphs-footer  +listcmds+mouse_sgr  
 +printer +startuptime +toolbar +X11
+cmdline_compl   +dnd +fork()  +localmap
-mouse_sysmouse  +profile +statusline  +user_commands   -xfontset
+cmdline_hist-ebcdic  +gettext +lua 
+mouse_urxvt +python  -sun_workshop+vertsplit   +xim

Clipboard single copy here - versions follow :
-


Re: xsel copies to clipboard twice

2017-08-08 Thread Tim Johnson
* Grant Taylor <drscri...@gmail.com> [170808 13:04]:
> On Tuesday, 8 August 2017 12:27:13 UTC-6, Tim Johnson  wrote:
> > When I select some text in visual mode and then press ;cc
> > the selected text is copied _twice_ to the clipboard 
> 
> What happens if you use the following sequence?
> 
> "+y
> 
> That should copy the selected (hilighted) text into the X11 clipboard.
> 
> "*y
> 
> That should copy the selected (hilighted) text into the X11 primary selection 
> buffer.
> 
> (Where "copy" is subject to the typical X11 issues with the source program 
> still being available.)
 Yes, "*y copies to the clipboard - in a version of vim, where the clipboard 
features
 are enabled. And only copies once.
 
 I've done a little more testing with different vim binaries on my
 system:

 The /usr/bin/vim.gnome binary, which is what I am using as my
 default MC editor does not have the redundant copy issue when
 running xsel as an external app.
 
 The /usr/bin/vim binary is where the redundant copy occurs.
  
 I'd conclude that some other feature in /usr/bin/vim is causing
 this.

 Both /usr/bin/vim and /usr/bin/vim.gnome have both clipboard and
 xterm_clipboard enabled.

 Happily, if I were to use /usr/bin/vim.basic, which does *not* have
 clipboard features enabled, then the xsel call works without
 redundancy. 

 Not a big deal, just curious 
 thanks for the reply
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

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


xsel copies to clipboard twice

2017-08-08 Thread Tim Johnson
I'm using vim 7.4 (terminal mode) on ubuntu 14.04, launched from
Midnight Commander. Glipper is my clipboard manager.

I have the following script line loaded :

map ;cc :w !xsel -i -b

When I select some text in visual mode and then press ;cc
the selected text is copied _twice_ to the clipboard 

It's been a long time since I've done any vim scripting, so I'd
welcome some advice on how to correct my code to avoid the
redundancy.

See http://vim.wikia.com/wiki/Accessing_the_system_clipboard

TIA
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

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


testing

2016-11-18 Thread Tim Johnson
I'm testing receipt by this group. I have problems with another
google group, so if this is received by this ML, then I could guess
that my issue is not global.

Please disregard and keep on vimin'
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: [SOLVED] Showmarks problems

2015-08-26 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [150826 10:55]:
 * Christian Brabandt cbli...@256bit.org [150826 01:10]:
  On Di, 25 Aug 2015, Tim Johnson wrote:
  
   -
   Version info
   :version
   VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 13:38:04)
   MacOS X (unix) version
   Included patches: 1-729
   Huge version without GUI.
   
   NOTE : features set to +signs
   NOTE : Upgrade via macports
  
  What was the previous version? 
   I believe it was 7.4 with patch 258.1 
   -
   Message :
   Error detected while processing CursorHold Auto commands for *:
   E11: Invalid in command-line window; CR executes, CTRL-C quits:
   checktime
   Error detected while processing function SNR60_ShowMarks:
   line   39:
   E885: Not possible to change sign ShowMark72
   Error detected while processing function SNR60_ShowMarks:
   line   39:
   E885: Not possible to change sign ShowMark72
   -
  Replaced the following line :
exe 'sign place '.id.' name=ShowMark'.nm.' line='.ln.' buffer='.winbufnr(0)
  by the following three lines

if ln  0  conditional which tests for the line number as greater than 0
exe 'sign place '.id.' name=ShowMark'.nm.' line='.ln.' buffer='.winbufnr(0)
endif  end conditional

Seems to be the easiest solution...
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Showmarks problems

2015-08-26 Thread Tim Johnson
* Christian Brabandt cbli...@256bit.org [150826 01:10]:
 On Di, 25 Aug 2015, Tim Johnson wrote:
 
  -
  Version info
  :version
  VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 13:38:04)
  MacOS X (unix) version
  Included patches: 1-729
  Huge version without GUI.
  
  NOTE : features set to +signs
  NOTE : Upgrade via macports
 
 What was the previous version? 
  I believe it was 7.4 with patch 258.1 
  -
  Message :
  Error detected while processing CursorHold Auto commands for *:
  E11: Invalid in command-line window; CR executes, CTRL-C quits:
  checktime
  Error detected while processing function SNR60_ShowMarks:
  line   39:
  E885: Not possible to change sign ShowMark72
  Error detected while processing function SNR60_ShowMarks:
  line   39:
  E885: Not possible to change sign ShowMark72
  -
  
  I _am able_ to set marks and have them displayed in the signs
  column, just wondering why the messages, this just started with this
  upgrade
 
 I think, this is caused by patch 7.4.275 and has been discussed here 
 before:
 https://groups.google.com/d/msg/vim_use/ROKJV2Bt3GU/j2kyr6jGlMMJ
 
 Looks like you have asked the same question before.

  You're correct. Thanks for reminding me. I had forgotten about
  that because I just rolled back to the previous version.

  From that previous discussion, I gather from other posters that
  the original showmarks is probably not being actively maintained
  and an alternative was presented by

  https://github.com/jacquesbh/vim-showmarks
  and
  http://www.vim.org/scripts/script.php?script_id=2142

  I'll give that a try.
  cheers
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

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


Showmarks problems

2015-08-25 Thread Tim Johnson
-
Version info
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 13:38:04)
MacOS X (unix) version
Included patches: 1-729
Huge version without GUI.

NOTE : features set to +signs
NOTE : Upgrade via macports
-
Message :
Error detected while processing CursorHold Auto commands for *:
E11: Invalid in command-line window; CR executes, CTRL-C quits:
checktime
Error detected while processing function SNR60_ShowMarks:
line   39:
E885: Not possible to change sign ShowMark72
Error detected while processing function SNR60_ShowMarks:
line   39:
E885: Not possible to change sign ShowMark72
-

I _am able_ to set marks and have them displayed in the signs
column, just wondering why the messages, this just started with this
upgrade

thanks
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Showmarks complaint

2015-06-03 Thread Tim Johnson
* Christian Brabandt cbli...@256bit.org [150603 13:59]:
 Hi Tim!
 
 On Mi, 03 Jun 2015, Tim Johnson wrote:
 
  Hello :
  Using vim 7.4, non-gui mode on Mac OS X, installed by Macports.
  I think this was a recent upgrade (didn't monitor macport full
  upgrade closely).
  
  Now I'm getting messages like :
  Error detected while processing function SNR60_ShowMarks:
  
  A quick google shows similar issues but seemed linked to older, out
  of sync versions of showmarks.vim. I'm not finding a version newer
  than 2.2, which is what I have.
  
  Any ideas?
  thanks
 
 The actual error message could help ;)
 
 Also you might want to ask the author of the plugin and check, you are 
 using the latest version of the plugin.
  The full error message is as follows:

  Error detected while processing function SNR60_ShowMarks:
  line   39:

  However, in the short time between my OP and your kind reply, I
  started seeing more error messages. Being a bit short of time, I
  roll backed to the previous version, which is stable and does all
  that I need it to.

  If I don't see a second upgrade in a few weeks, I'll revisit the
  issue by going back to the latest version and trouble-shoot it.

  Thanks for the reply
  cheers
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

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


Showmarks complaint

2015-06-03 Thread Tim Johnson
Hello :
Using vim 7.4, non-gui mode on Mac OS X, installed by Macports.
I think this was a recent upgrade (didn't monitor macport full
upgrade closely).

Now I'm getting messages like :
Error detected while processing function SNR60_ShowMarks:

A quick google shows similar issues but seemed linked to older, out
of sync versions of showmarks.vim. I'm not finding a version newer
than 2.2, which is what I have.

Any ideas?
thanks
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

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


Custom compile vim +xterm_clipboard

2015-04-08 Thread Tim Johnson
It's been a long time since I have compiled vim. The following
version info is from ubuntu 14.0
[versioning info begins]
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:32)
Included patches: 1-52
Modified by pkg-vim-maintain...@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+acl +cmdline_hist-dnd -footer  +lispindent 
 -mouse_jsbterm   -perl+scrollbind  -tcl 
+viminfo -xterm_save
+arabic  +cmdline_info-ebcdic  +fork()  +listcmds   
 +mouse_netterm   +persistent_undo +signs   +terminfo
+vreplace-xpm
+autocmd +comments+emacs_tags  +gettext +localmap   
 +mouse_sgr   +postscript  +smartindent +termresponse
+wildignore
-balloon_eval+conceal +eval-hangul_input-lua
 -mouse_sysmouse  +printer -sniff   +textobjects 
+wildmenu
-browse  +cryptv  +ex_extra+iconv   +menu   
 +mouse_urxvt +profile +startuptime +title   
+windows
++builtin_terms  +cscope  +extra_search+insert_expand   +mksession  
 +mouse_xterm +python  +statusline  -toolbar 
+writebackup
+byte_offset +cursorbind  +farsi   +jumplist
+modify_fname+multi_byte  -python3 -sun_workshop
+user_commands   -X11
+cindent +cursorshape +file_in_path+keymap  +mouse  
 +multi_lang  +quickfix+syntax  +vertsplit   
-xfontset
-clientserver+dialog_con  +find_in_path+langmap -mouseshape 
 -mzscheme+reltime +tag_binary  +virtualedit -xim
-clipboard   +diff+float   +libcall +mouse_dec  
 +netbeans_intg   +rightleft   +tag_old_static  +visual  -xsmp
+cmdline_compl   +digraphs+folding +linebreak   +mouse_gpm  
 +path_extra  -ruby-tag_any_white   +visualextra 
-xterm_clipboard
   system vimrc file: $VIM/vimrc
 user vimrc file: $HOME/.vimrc
 2nd user vimrc file: ~/.vim/vimrc
  user exrc file: $HOME/.exrc
  fall-back for $VIM: /usr/share/vim
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim 
   -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl
-L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -l
pthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 
-Wl,-Bsymbolic-functions
[versioning info ends]

I customarily use vim (without GUI.) for add-hoc work as the
external editor for Midnight Commander.

I'd like to have xterm_clipboard and clipboard enabled because I
want to paste directly to the system clipboard and I don't think I
need python for anything. Even tho' I am a python programmer, I
would be doing programming in the gui version

I've downloaded source via 
hg clone https://vim.googlecode.com/hg/ vim

I'd welcome pointers on how to make these changes

Thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Custom compile vim +xterm_clipboard

2015-04-08 Thread Tim Johnson
* Ben Fritz fritzophre...@gmail.com [150408 07:11]:
 On Wednesday, April 8, 2015 at 9:47:07 AM UTC-5, Tim Johnson wrote:
  
  I'd like to have xterm_clipboard and clipboard enabled because I
  want to paste directly to the system clipboard and I don't think I
  need python for anything. Even tho' I am a python programmer, I
  would be doing programming in the gui version
  
  I've downloaded source via 
  hg clone https://vim.googlecode.com/hg/ vim
  
  I'd welcome pointers on how to make these changes
  
 
 Hi, Tim!
 
 The next step is to install the dependencies, if you haven't done so already. 
 You said you're on Ubuntu, so that's probably something like sudo apt-get 
 build-dep vim-gnome.
 
 After that, just building Vim with a feature set of NORMAL, BIG, or HUGE (I 
 recommend HUGE to unlock all of Vim's features) should get you clipboard 
 support.
 
 You probably want to run the configure script prior to building.
 
 See http://vim.wikia.com/wiki/Building_Vim
  Thanks for the link.  Gvim (vim with gui is already installed, so
  looks like I need to fiddle with the configure switches for the
  clipboard enabling.
  
  cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Selectively using system clipboard from vim in iTerm2 (Mac)

2014-11-09 Thread Tim Johnson
* romainlafourc...@gmail.com romainlafourc...@gmail.com [141108 23:01]:
 Did you consider using your system clipboard *only* when needed?
  Yes. That is why I mapped PPCopy separately from yank.
  thanks.

  - tj -

 +y
 *y
 +p
 *p
 
 If that's too much typing:
 
 nnoremap leadery *y
 xnoremap leadery *y
 
 nnoremap leaderp *p
 xnoremap leaderp *p
 nnoremap leaderP *P
 xnoremap leaderP *P
 
 -- 
 -- 
 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.

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


Selectively using system clipboard from vim in iTerm2 (Mac)

2014-11-08 Thread Tim Johnson
I'm using vim 7.4 Huge version without GUI on Mac OS X 10.7. This
version is installed from Macports.

I launch it from iTerm2 and frequently from MC running in iTerm2 as
it is my default MC editor.

options include +clipboard, +python, -xterm_clipboard, -xterm_save.

With clipboard=unnamed I can copy to the system clipboard. However,
as it is configured now, that's too much of a good thing as any
delete (example ddp) ends up in the system clipboard and I want to
be able selectively copy to the system clipboard *without* using
visual mode (as opposed to selecting by mouse/trackball).

I've written quite a few simple vimscripts and I could do something
along the following lines :
1)set clipboard=unnamed
 copy or cut and insert in sys clipboard
2)set clipboard=

But I'd to inquire if there is something done already that might be
recommended. I'm happy to do my own work, but there is so many
better vimscripters out there 

TIA
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Selectively using system clipboard from vim in iTerm2 (Mac)

2014-11-08 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [141108 11:52]:
 I'm using vim 7.4 Huge version without GUI on Mac OS X 10.7. This
 version is installed from Macports.
 
 I launch it from iTerm2 and frequently from MC running in iTerm2 as
 it is my default MC editor.
 
 options include +clipboard, +python, -xterm_clipboard, -xterm_save.
 
 With clipboard=unnamed I can copy to the system clipboard. However,
 as it is configured now, that's too much of a good thing as any
 delete (example ddp) ends up in the system clipboard and I want to
 be able selectively copy to the system clipboard *without* using
 visual mode (as opposed to selecting by mouse/trackball).
 
 I've written quite a few simple vimscripts and I could do something
 along the following lines :
 1)set clipboard=unnamed
  copy or cut and insert in sys clipboard
 2)set clipboard=
 
 But I'd to inquire if there is something done already that might be
 recommended. I'm happy to do my own work, but there is so many
 better vimscripters out there 
  I found the following pbcopy.vim script
 File: pbcopy.vim
 Author: Tom Stuart
 Version: 1.0
 Last modified: February 7, 2011

function! s:pbcopy()
  call system(ssh localhost pbcopy, getreg())
  call system(pbcopy, getreg())
endfunction
command! -nargs=0 -bar PBCopy call s:pbcopy()

Note that I commented out the first system call and added the
modified one with 'ssh'.
And the following keymappings:
noremap ;c :PBCopyCR
vmap ;c :PBCopyCR

so the resulting action is y;c ...

As of yet, the vimscript not portable 'tho - since linux won't
recognize pbcopy, I would guess that xsel would be the option for
linux.

This gets me going.
cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Selectively using system clipboard from vim in iTerm2 (Mac)

2014-11-08 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [141108 13:05]:
 * Tim Johnson t...@akwebsoft.com [141108 11:52]:
... 
 Note that I commented out the first system call and added the
 modified one with 'ssh'.
  Typo. Should have written modified one *without* 'ssh'.
  Sorry
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Filetype specificity for menus

2014-05-31 Thread Tim Johnson
* Christian Brabandt cbli...@256bit.org [140531 05:19]:
 Hi Tim!
 
 On Fr, 30 Mai 2014, Tim Johnson wrote:
 
  I'm using vim 7.3 Huge Gtk2-gnome gui, on ubuntu 12.04.
  
  I've used vim for many years but have not figured out how to do the
  following :
  
  Make a menu item coded for a specific filetype *not* be present in a
  buffer of a different filetype.
  
  Example : with python.vim, a menu for python-specific actions is
  installed. Switching to a javascript buffer, the python menu
  remains. It would be great if it were to go away.
 
 I think, all that is possible is to disable a certain menu but you can't 
 actually removed it once it was defined.
  thanks Christian. At long last I have found something that I like
  better about that editor that starts with 'e'. Since that is
  pretty much the only thing I like better  I wonder if the
  following is possible in vim :

  Disable the installation of filetype-specific menus.
Of course I could do it by tweaking the code of the .vim source
file, but that is a rigged solution IMHO. Is there a vim
command that would stop a menu from being loaded in the first
place?
  This would be useful if I were using an alternate computer, such
  as one of my netbooks with a small screen which might not be able
  to accomadate the number of menus that might accumulate if I have
  a session with multiple filetypes.

  thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


Filetype specificity for menus

2014-05-30 Thread Tim Johnson
I'm using vim 7.3 Huge Gtk2-gnome gui, on ubuntu 12.04.

I've used vim for many years but have not figured out how to do the
following :

Make a menu item coded for a specific filetype *not* be present in a
buffer of a different filetype.

Example : with python.vim, a menu for python-specific actions is
installed. Switching to a javascript buffer, the python menu
remains. It would be great if it were to go away.

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


Many problems, how to debug on startup

2014-04-14 Thread Tim Johnson
I have transitioned my vim resources from OS X 10.7 to ubuntu 12.04

I've got a real mess and rather than go into the gory details, I
need two sets of advice to begin with

1) When I start gvim, I get an error message that says No Mapping
Found - most mapping does appear to work, so I need to step through
gvim startup process.
  -- if I do `gvim -V20', I can see the startup steps, but I need to
  capture those messages in a file 'gvim -V20  debug.txt' doesn't
  give me any results. Which syntax should I use?

2)Once I have gvim started, I'm getting erratic results when I
restore a session. Some sessions are fine, others have the syntax
highlight turned off and I can't get it to resume, among other
issues...
  -- similarly, I need a process to step through the session
  restoration.

Any help would be appreciated, answering the questions above should
enable me to trouble-shoot. In the meantime, I have a compromised
development platform.

TIA
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Many problems, how to debug on startup

2014-04-14 Thread Tim Johnson
* Nikolay Pavlov zyx@gmail.com [140414 11:22]:
capture those messages in a file 'gvim -V20  debug.txt' doesn't
give me any results. Which syntax should I use?
 
 You should set verbosefile option in --cmd.
  Thanks for the prompt reply - 
  I have placed set verbose=1
  in my .gvimrc
  Now when I start gvim, I got a whole lot of error messages of the
  sort like
  'not found in 'runtimepath': bitmaps/Open.png'
  I think that is a holdover from macvim - but I don't why gvim is
  attempting to load those images or what to do about it.
 
 
  2)Once I have gvim started, I'm getting erratic results when I
  restore a session. Some sessions are fine, others have the syntax
  highlight turned off and I can't get it to resume, among other
  issues...
-- similarly, I need a process to step through the session
restoration.
 
 You can use :debug or use verbose with verbosefile, but I doubt this will
 help. These are helpful if you need to determine what and why is run, but
 much less helpful if you need to determine why something is *not* run.
  Using :debug from command I can see the following 

  repeat.txt [readonly] 680L, 27209C
  Reading viminfo file /home/tim/.viminfo marks
  not found in 'runtimepath': ftplugin/text.vim ftplugin/text_*.vim
  ftplugin/text
  /*.vim
  not found in 'runtimepath': indent/text.vim
  not found in 'runtimepath': syntax/text.vim syntax/text/*.vim
  not found in 'runtimepath': indent/help.vim
  not found in 'runtimepath': indent/help.vim

I see my runtimepath as

/home/tim/.vim,
/var/lib/vim/addons,
/usr/share/vim/vimfiles,
/usr/share/vim/vim71,
/usr/share/vim/vimfiles/after,
/var/lib/vim/addons/after,
/home/tim/.vim/after 

The fourth path is messed up - there is no /usr/share/vim/vim71
should be /usr/share/vim/vim73 (I presume).

So, how to fix runtimepath?

thanks again
 
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Many problems, how to debug on startup

2014-04-14 Thread Tim Johnson
* Gary Johnson garyj...@spocom.com [140414 11:34]:
 On 2014-04-14, Tim Johnson wrote:
  I have transitioned my vim resources from OS X 10.7 to ubuntu 12.04
  
  I've got a real mess and rather than go into the gory details, I
  need two sets of advice to begin with
  
  1) When I start gvim, I get an error message that says No Mapping
  Found - most mapping does appear to work, so I need to step through
  gvim startup process.
-- if I do `gvim -V20', I can see the startup steps, but I need to
capture those messages in a file 'gvim -V20  debug.txt' doesn't
give me any results. Which syntax should I use?
 
 The syntax is
 
 gvim -V20debug.txt
 
 The name of the debug output file _immediately_ follows the debug
 level.  Take another look at
 
 :help -V
 
 and I think you'll see this.
 
  2)Once I have gvim started, I'm getting erratic results when I
  restore a session. Some sessions are fine, others have the syntax
  highlight turned off and I can't get it to resume, among other
  issues...
-- similarly, I need a process to step through the session
restoration.
 
 You could single-step through the restoration process by prefixing
 the restore command with :debug (see :help :debug), but that
 could be really tedious.
 
 I don't often save and restore sessions, so I probably can't offer
 much useful guidance with that.
 
 HTH,
  Big help, Gary, thanks. 

  BTW: Fixed syntax clobbering when restoring sessions, runtimepath
  was hard coded in the session file and pointed to the macVim
  version, which _is_ '71'. 

  I'm making progress thanks to you folks.


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

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Many problems, how to debug on startup

2014-04-14 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [140414 12:03]:
 * Gary Johnson garyj...@spocom.com [140414 11:34]:
  On 2014-04-14, Tim Johnson wrote:
   I'm making progress thanks to you folks.
   I now have my vim functioning. I'm still seeing some issues when
   I set verbose to 1, but doesn't seem to be a critical issue.
   When time permits in the next day or so, I will revisit them just
   for grins. 

   I the meantime, I want to thank Gary and Nikolay for their help.
   It was just what the doctor ordered :).
   cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Syntastic doesn't use pylintrc

2014-03-06 Thread Tim Johnson
* LCD 47 lcd...@gmail.com [140306 00:59]:
.. On 5 March 2014, Tim Johnson t...@akwebsoft.com wrote:
  :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
 
 FWIW, this has never worked.  Here's a crazy idea: if everything
 else fails, consider investing a few minutes in reading the manual.
  No man for pylint. Got a URL for me? 

  How else can I enable the pylintrc settings?
 
 Assuming you're using the current master HEAD of syntastic from git:
 
 let g:syntastic_python_pylint_args = '--rcfile=/home/tim/.pylintrc'
  Dadgummit, I think that one works
  (I had also tried 
g:syntastic_python_pylint_rcfile='/home/tim/.pylintrc')

thank you sir!
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Syntastic doesn't use pylintrc

2014-03-06 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [140306 07:36]:
 * LCD 47 lcd...@gmail.com [140306 00:59]:
 .. On 5 March 2014, Tim Johnson t...@akwebsoft.com wrote:
   :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
  
  FWIW, this has never worked.  Here's a crazy idea: if everything
  else fails, consider investing a few minutes in reading the manual.
   No man for pylint. Got a URL for me? 
http://docs.pylint.org/

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


Syntastic doesn't use pylintrc

2014-03-05 Thread Tim Johnson
Using vim 7.3 on OSX 10.7

I have installed the syntastic plugin.

For checking syntax for python files, I have the following
.pylintrc:

[DESIGN]

max-branchs = 20

max-args = 14

max-attributes = 14

max-locals = 35

[MESSAGES CONTROL]
disable-msg=W0142,R0903

*none* of these settings seem to be read, since I am still 
getting messages about any of the settings
My vim configuration is :
:let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'

How else can I enable the pylintrc settings?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Syntastic doesn't use pylintrc

2014-03-05 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [140305 13:42]:
 Using vim 7.3 on OSX 10.7
 
 I have installed the syntastic plugin.
 
 For checking syntax for python files, I have the following
 .pylintrc:
 
 [DESIGN]
 
 max-branchs = 20
 
 max-args = 14
 
 max-attributes = 14
 
 max-locals = 35
 
 [MESSAGES CONTROL]
 disable-msg=W0142,R0903
 
 *none* of these settings seem to be read, since I am still 
 getting messages about any of the settings
 My vim configuration is :
 :let g:syntastic_python_checker = 'pylint --rcfile=/home/tim/.pylintrc'
 
 How else can I enable the pylintrc settings?
  For some settings, the following is working:
  :let g:syntastic_python_pylint_rcfile='/home/tim/.pylintrc'
  *but* disabling W0124 does not get rid of the 'star-args' warning.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: php - drupal - symfony - how to manage?

2014-02-26 Thread Tim Johnson
* Benji Fisher be...@fisherfam.org [140226 14:13]:
 Tim:
 
  By the drupal plugin do you mean https://drupal.org/project/vimrc ?
   Yes.
  That already makes some effort to avoid taking over non-Drupal PHP files:
  see https://drupal.org/node/1903214 .
 
  I am not sure what is available for Symfony.  I do plan to modify the
 Drupal vimrc project so that it does the right thing (conforming to
 different coding standards) when editing Drupal-ish and Symfony-ish files
 in the same project.  I am not sure when I will have time for this ...
  Understood, thanks 
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


README.md to a doc?

2014-02-26 Thread Tim Johnson
I don't understand how to integrate a README.md file into vim.

Example: I have installed phpcomplete.vim under bundles/
so ... I have ~/.vim/bundle/phpcomplete.vim/README.md
And it contains documentation, but if I were to copy it to
to ~/.cim/doc/phpcomplete.txt and run helptags, I get an error
message.

E670: Mix of help file encodings within a language:
/Users/tim/.vim/doc/phpcomplete.txt 

:( and no :help README.md

using 7.3 on Mac OSX 10.7

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: README.md to a doc?

2014-02-26 Thread Tim Johnson
* Adnan Zafar adnanjza...@gmail.com [140226 16:32]:
 Hi Tim,
 
 Just leave the file as it is or delete it. Plugin authors provide
 files like that to provide information on GitHub pages for example. If
 you're installing the plugin using Pathogen or Vundle or one of the
 others, everything should be set up to just ignore it. If you're
 installing manually, you can just delete the file.

  I was wondering if there were a built-in way to make a
  doc-compatible .txt file out of it. It sounds like there isn't.

  I wouldn't mind spending a little time marking up a README.md to
  make it doc-compatible. I think that there are adequate
  instructions in :h helptag
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: README.md to a doc?

2014-02-26 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [140226 16:44]:
 * Adnan Zafar adnanjza...@gmail.com [140226 16:32]:
  Hi Tim,
  
  Just leave the file as it is or delete it. Plugin authors provide
  files like that to provide information on GitHub pages for example. If
  you're installing the plugin using Pathogen or Vundle or one of the
  others, everything should be set up to just ignore it. If you're
  installing manually, you can just delete the file.
 
   I was wondering if there were a built-in way to make a
   doc-compatible .txt file out of it. It sounds like there isn't.
 
   I wouldn't mind spending a little time marking up a README.md to
   make it doc-compatible. I think that there are adequate
   instructions in :h helptag
   Turns out that in a general case a README.md file can be
   converted to a doc .txt file in just a few minutes.

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


php - drupal - symfony - how to manage?

2014-02-25 Thread Tim Johnson
I'm starting to learn to write drupal 7 modules and at the same
time, symfony. For the time being, they are separate venues,
although drupal 8 will have symfony as the underlying framework.

I have been investigating the use of plugins for both drupal and
symfony, but I am only acquainted with using plugins based on
filetype. 

FYI: Symfony is based on php, as is drupal.

Is there a way to use the drupal plugin separately from the symfony
plugin? I wouldn't have a problem with manually sourcing a plugin,
if that is what it came too, but would welcome advice from wiser
heads than mine, as I am eternally a vim noob.

TIA
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Adapting an existing session file to a new plugin

2014-02-18 Thread Tim Johnson
* Anton Bobrov bob...@vl.ru [140218 07:10]:
 On Tuesday, February 18, 2014 7:32:28 AM UTC+4, Tim Johnson wrote:
Can you give an example?
 
 I have
 
 set sessionoptions=buffers,curdir
 
 in my vimrc for that task
   Understood. Thank you.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: syntax settings with php module files - 'after' problem

2014-02-17 Thread Tim Johnson
* Ben Fritz fritzophre...@gmail.com [140217 07:27]:
 On Sunday, February 16, 2014 3:12:43 PM UTC-6, Tim Johnson wrote:
  ignored in buffers with .module and .install extensions
  
 
 I just tried this exact setup, and it works fine for me in 7.4.
 
 I edited a new test.install file and all the settings in the after/syntax 
 file were applied properly, just as they were in a new Vim instance editing 
 test.php.
 
 So, what does this tell you?
 
   :verbose set iskeyword? expandtab? shiftwidth? tabstop? softtabstop?
  blush I'd solved it earlier, but forgot to post the
  solution./blush
  the session .vim file was overriding the desired settings. I
  simply sourced the /after file manually, saved the session file
  and all is good now.

  This one of the 'gotchas' I frequently fall into when I tweak vim.
  I need to remember 'verbose set' - its often a big help...
  thanks for the help
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


Adapting an existing session file to a new plugin

2014-02-17 Thread Tim Johnson
This is kind of a general question, but it has to do with issues
that have made coding life complicated for me in the past.

For a specific example of this topic, I have just installed the
drupal plugin for vim. I have an existing project that is loaded by
a session file and it is named 

drupal_modules.vim

it is likely that drupal_modules.vim has settings that might
override the settings provided by the newly install drupal plugin.

Quite a large number of buffers are present in this session. It is
certainly doable, but is a bit of an inconvenience to to reload all
of them. 

I have in the past done the following:
Delete all commands in the session file *except for* anything
starting with 'badd' or 'edit'.

That has worked, but sometimes I have ended up with syntax
highlighting being clobbered. 

I'd welcome all comments that might make the transition easier.

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: Adapting an existing session file to a new plugin

2014-02-17 Thread Tim Johnson
* Ben Fritz fritzophre...@gmail.com [140217 18:19]:
 On Monday, February 17, 2014 6:00:22 PM UTC-6, Tim Johnson wrote:
  This is kind of a general question, but it has to do with issues
  That has worked, but sometimes I have ended up with syntax
  
  highlighting being clobbered. 
  
  
  
  I'd welcome all comments that might make the transition easier.
  
  
  
 
 
 Well, do you really need your session file to restore option
 values and mappings? 
  No.
 Or can you rely on your .vimrc, plugins, and
 other config to set options and mappings? 
  Yes.

 If you don't need those in your session file, you can adjust
 'sessionoptions' to remove the options string.
  Can you give an example?

  To make it short : 
  All I need is the existing buffers loaded. 

  Thanks 
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


syntax settings with php module files - 'after' problem

2014-02-16 Thread Tim Johnson
I'm using ver 7.3 on Mac OSX 10.7
I have the following as a group in .vimrc inside of a 
if has(autocmd) 
block in 
  augroup module
autocmd BufRead,BufNewFile *.module set filetype=php
autocmd BufRead,BufNewFile *.install set filetype=php
autocmd BufRead,BufNewFile *.test set filetype=php
autocmd BufRead,BufNewFile *.inc set filetype=php
autocmd BufRead,BufNewFile *.profile set filetype=php
autocmd BufRead,BufNewFile *.view set filetype=php
  augroup END

And I have the following in ~/.vim/after/syntax/php.vim
setlocal iskeyword=@,48-57,_,192-255
setlocal expandtab
setlocal shiftwidth=2
setlocal tabstop=2
setlocal softtabstop=2

I have noted 
1)That the setlocal options above are correct in a buffer with a
.php extension
2)That the filetype is shown to be 'php' in a buffer with a .module
or .install extension.
**But**
the setlocal options from ~/.vim/after/syntax/php.vim are being
ignored in buffers with .module and .install extensions

What else do I need to do?
thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
-- 
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: [Drupal] syntax settings with php module files - 'after' problem

2014-02-16 Thread Tim Johnson
* Ben Fritz fritzophre...@gmail.com [140216 15:41]:
  
  the setlocal options from ~/.vim/after/syntax/php.vim are being
  
  ignored in buffers with .module and .install extensions
  
  
  
  What else do I need to do?
  
 
 I'm not sure if this is the cause, but you could try enabling
 nested autocmd calls in your autocmds. See :help autocmd-nested
Thanks for the reply, Ben. I'm pretty sure that the nested autocmds
are being 'executed' as they should be. Furthermore, I'm not sure
that autocmd-nested applies in this case.

I *think* there should be some connection between the augroup and
the '?php' at BOF for php.

On a related note, I came across documentation on a drupal vim
plugin, https://drupal.org/node/1389448 and the main author is (I
think) a frequent participant here. 

I've added '[Drupal]' to the subject line to grab further attention.
Unless I hear different, I will probably forgoe this approach and go
with the plugin.

:) If you look at the plugin page and see under Page Status
No known problems, that is a deal-maker for me.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

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


Migrating text from vim to wysiwyg editor

2013-02-01 Thread Tim Johnson
Hi Team :

I've started using drupal. I've been writing articles using vim.
Sometimes they get printed directly from vim, sometimes I copy them
into OpenOffice and print them off.

Then, I publish them to the web using drupal and a wysiwyg editor.

I'm really very new to using wysiwyg editors (as in drupal). I'm
sure that pasting text from vim is going to insert hard breaks that
might result in hard-to-read formatting in different devices.

I would welcome some tips on how to make this transition. I think
that a script of some kind that would join all lines into one for a
paragraph, then copy the line to the clipboard would do the trick.
Because I believe that the wysiwyg editor would then take care of
the appropriate wrapping.

Before I procede - any comments?
thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
-- 
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: Migrating text from vim to wysiwyg editor

2013-02-01 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [130201 17:58]:
 Hi Team :
 
 I've started using drupal. I've been writing articles using vim.
 Sometimes they get printed directly from vim, sometimes I copy them
 into OpenOffice and print them off.
... 
 Before I procede - any comments?
  Great tips and comments. Thanks to all!
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
-- 
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: expanding tabs in a visual selection

2012-09-17 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [120916 18:45]:
 
 
 Beware though, that the former will convert hard tabs (but not 
 backslash-t etc.) even in string literals, and that the latter will 
 convert sequences of two or more spaces ending on a tab stop (i.e., in a 
 column whose number is a multiple of the 'tabstop' value) even in string 
 literals. IOW the :retab command doesn't know what quotes are for.
  Understood. Thanks, Tony.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


expanding tabs in a visual selection

2012-09-16 Thread Tim Johnson
Hi :

Is there a way to apply the expand/retab process to a visual
selection?

:h ??

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: expanding tabs in a visual selection

2012-09-16 Thread Tim Johnson
* Bee fo...@calcentral.com [120916 09:09]:
 
 
 On Sep 16, 9:43 am, Tim Johnson t...@akwebsoft.com wrote:
  Hi :
 
  Is there a way to apply the expand/retab process to a visual
  selection?
 
  :h ??
 
  thanks
  --
  Tim
  tim at tee jay forty nine dot com or akwebsoft dot 
  comhttp://www.akwebsoft.com
 
 
 :help :retab
 
 :[range]ret[ab][!]
 [new_tabstop]
 blush I shoulda asked for an example.
 If I do the following
 v start visual mode
   select 4 more lines
 :retab   nothing
 :retab!  nothing
 What else need I do?
 thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: expanding tabs in a visual selection

2012-09-16 Thread Tim Johnson
* Gary Johnson garyj...@spocom.com [120916 10:50]:
 
 Do you see different behavior?
 
 Note that :retab! will not replace a single space by a tab.
  That did it.
  thanks, Gary
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: expanding tabs in a visual selection

2012-09-16 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [120916 11:02]:
 
 When you type : in Visual mode, you should see
 
   :','
 
 where ' means the first visually selected line and ' means the last 
 visually selected line. Don't erase these marks as you type :retab in 
 Visual mode. Or you could do without Visual mode, as follows:
 
   :set expandtab
   5:retab
  Elegant!

 (that second line will be expanded to :.,.+4retab and it should expand 
 tabs to spaces in the current line and the 4 following ones). Or
 
   :set noexpandtab
   5:retab!
  Again ... 
 to convert spaces to tabs instead.
 
 See
   :help v_:
   :help N:
 thanks 
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


bufexplorer is opening files in two windows

2012-09-10 Thread Tim Johnson
I'm using macVim 7.3.315 on Mac OSX 10.7

I have recently starting using bufexplorer. Unexpectedly bufexplorer
is opening (some but not all) files in two windows. This is deeply
unsettling and unproductive. I can't find any option in the help
feature or in bufexplorer.txt that might be causing this. 

Any help would be appreciated.

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: bufexplorer has conflicts with python.vim

2012-09-09 Thread Tim Johnson
* Christian Brabandt cbli...@256bit.org [120907 07:11]:
 On Fri, September 7, 2012 09:56, Tony Mechelynck wrote:
  On 07/09/12 07:28, Jürgen Krämer wrote:
  Tony Mechelynck wrote:
 
  In the ftplugin/python.vim included in Bram's latest official sources
  (ftplugin/python.vim Last Change: Wed, 21 Apr 2004 13:13:08 CEST,
  Mercurial tag v7-3-659 dated Wed Sep 05 19:17:42 2012 +0200), I see two
  lines' discrepancy: the closest I come to what could trigger these
  messages is at lines 23-26, as follows:
 
  nnoremap silent buffer ]] :call
  SIDPython_jump('/^\(class\\|def\)')cr
  nnoremap silent buffer [[ :call
  SIDPython_jump('?^\(class\\|def\)')cr
  nnoremap silent buffer ]m :call
  SIDPython_jump('/^\s*\(class\\|def\)')cr
  nnoremap silent buffer [m :call
  SIDPython_jump('?^\s*\(class\\|def\)')cr
 
  but in order to trigger those errors, the | immediately before
  def\)')cr would have to be seen as following an ex-command, not as
  part of a single-quoted string.
 
  the 'b' flag in 'cpoptions' could be responsible for this.
 
  Well, it might, except that the Python plugin includes
 
  let s:keepcpo= cpo
  set cpovim
 
 Here, you have your 2 lines discrepancy. I have Vim 7.4.462 and the
 distributed ftplugin\python.vim file does not include those 2 lines.
 This problem has recently been fixed in Revision d1e4abe8342c (see
 http://code.google.com/p/vim/source/detail?spec=svn1052677493beb941eab0d1e33d63c73ee4148350r=d1e4abe8342c4adb1890bf1833a6f41f7a310b01)
 
 Since the OP has Vim 7.3.315, he probably does not have the latest
 distributed runtime files.
 
 So probably the missing b flag in 'cpoptions' could have cause this.

Well, I as the OP quit following this thread until now and am
playing catchup.

I have the following code at lines 21 to 24 in 

/Applications/MacVim-snapshot-62/MacVim.app/Contents/Resources/vim/runtime/ftplugin/python.vim

[code]
nnoremap silent buffer ]] :call
SIDPython_jump('/^\(class\\|def\)')cr
nnoremap silent buffer [[ :call
SIDPython_jump('?^\(class\\|def\)')cr
nnoremap silent buffer ]m :call
SIDPython_jump('/^\s*\(class\\|def\)')cr
nnoremap silent buffer [m :call
SIDPython_jump('?^\s*\(class\\|def\)')cr
[/code]
NOTE that my email editor (vim) as wrapped each line following
:call

This file __does not__ have the following lines :
let s:keepcpo= cpo
set cpovim

cpoptions for my python buffers is
cpoptions=aABceFs 

The macVim install does not yet provide version 7.4.462 
(I miss ubuntu)

Anything I can do? Note also, that my problems went away when I
rebuilt the session file.

I remain interested in Tony's approach to hand-rolling a session
file.

thanks

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: bufexplorer has conflicts with python.vim

2012-09-07 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [120906 17:25]:
 
 I have learnt to be wary of session files created by :mksession, they 
  :) Great minds run in the same gutte ...
 are usually unnecessarily bulky, duplicating stuff which is already in 
 the vimrc. I used :mkesssion in the past, but now I use a session file 
 I've written myself, just to load the files of my typical session into 
 their respective windows and tabs, and set local directories and keymaps 
 in some of them. My vimrc and plugins (~/.vim/... and $VIM/vimfiles/..., 
 plus of course the $VIMRUNTIME/... that come with Vim) do the rest. That 
 file is named ~/Session.vim too, the only difference with the output 
 of :mksession is that I wrote it myself, and it is much shorter.
  I think that approach is spot on.
  thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


bufexplorer has conflicts with python.vim

2012-09-06 Thread Tim Johnson
I just installed bufexplorer.vim
and I am now getting error messages - which I presume are a result
of some sort of conflict:
Messages are below
Error detected while processing 
/Applications/MacVim-snapshot-62/MacVim.app/Contents/Resources/vim/runtime/ftplugin/python.vim:
line   21:
E492: Not an editor command: def\)')cr
line   22:
E492: Not an editor command: def\)')cr
line   23:
E492: Not an editor command: def\)')cr
line   24:
E492: Not an editor command: def\)')cr

Comments? Solution? Any and all is welcome. :(

NOTE : Not a problem with any other programming language, like perl or rebol,
which I also use.

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: bufexplorer has conflicts with python.vim

2012-09-06 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [120906 16:49]:
 On 06/09/12 23:41, Tim Johnson wrote:
 
 thanks
 
 
 Which Vim version are you using? (I mean, it's MacVim snapshot 62, but 
 which version does it display on the :intro screen? — I'm on Linux)
 It is version 7.3.315  

 In the ftplugin/python.vim included in Bram's latest official sources 
 (ftplugin/python.vim Last Change: Wed, 21 Apr 2004 13:13:08 CEST, 
 Mercurial tag v7-3-659 dated Wed Sep 05 19:17:42 2012 +0200), I see two 
 lines' discrepancy: the closest I come to what could trigger these 
 messages is at lines 23-26, as follows:
 
 nnoremap silent buffer ]] :call 
 SIDPython_jump('/^\(class\\|def\)')cr
 nnoremap silent buffer [[ :call 
 SIDPython_jump('?^\(class\\|def\)')cr
 nnoremap silent buffer ]m :call 
 SIDPython_jump('/^\s*\(class\\|def\)')cr
 nnoremap silent buffer [m :call 
 SIDPython_jump('?^\s*\(class\\|def\)')cr
 
 but in order to trigger those errors, the | immediately before 
 def\)')cr would have to be seen as following an ex-command, not as 
 part of a single-quoted string.
 
 Does bufexplorer (which is not installed on my system) invoke these four 
 commands — ]] [[ ]m [m — in the {rhs} of a mapping? Or does it define a 
 map!, a cmap, an abbrev or a cabbrev with an {lhs} including something 
 recognizable from the {rhs} of the above mappings?

  I've been using selectbuf for many years and this occured after I
  installed bufexplorer. Because I was under a timeline and needed
  vim to just work, I recreated the session file that I was using.
  Consequently, the problem disappeared. I also deleted my viminfo
  file. I suspect that the apparent conflict was a side effect of
  something incompatible from either the session file or viminfo.

  :) So the problem is resolved but the mystery remains unsolved.
  I have found in the past that when similarly baffling anomalies
  occur that recreating session files and deleting viminfo has made
  if all go away.

  thanks for the reply.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


SelectBuf is failing

2012-08-13 Thread Tim Johnson
SelectBuf is failing with the following:

Error detected while processing function
selectbuf#ListBufs..SNR47_GoToBrowserWindow:
line   32:
E86: Buffer 94 does not exist

:( What happened?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: SelectBuf is failing

2012-08-13 Thread Tim Johnson
* Christian Brabandt cbli...@256bit.org [120813 11:20]:
 Hi Tim!
 
 On Mo, 13 Aug 2012, Tim Johnson wrote:
 
  SelectBuf is failing with the following:
  
  Error detected while processing function
  selectbuf#ListBufs..SNR47_GoToBrowserWindow:
  line   32:
  E86: Buffer 94 does not exist
  
  :( What happened?
 
 You should probably report this as a bug to the author of that specific 
 plugin.
 
 regards,
 Christian
  Will do.
  thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Overriding setlocal in session files

2012-07-12 Thread Tim Johnson
For a long time I have had the following in my .vimrc
autocmd BufRead,BufNewFile *.js  setlocal shiftwidth=2 tabstop=2
Thus, numerous session files have those settings.
Now I have changed my .vimrc to
autocmd BufRead,BufNewFile *.js  setlocal shiftwidth=4 tabstop=4

*But* the now-desirable setting above are being overriden by the session files 
with the old settings.
I could manually edit each session file and remove the 'old'
settings, but is there an easier or more 'vimish' solution?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


finding the originating map command

2012-07-02 Thread Tim Johnson
I have mapped ,cs to a function called CheckSyntax
if I execute 
: map ,cs
I get 
,cs * :call CheckSyntax()CR 
if I execute
:verbose map ,cs
I get
   ,cs * :call CheckSyntax()CR
   Last set from
   /Users/http/run/baker/journal/000_main__journal.vim
which helpful is tracking down mappings I might not need or want.

However I would like to be able to 
1)Find where the mapping originated
i.e. I have the mapping in ~/.vim/plugin/tj_code_insert.vim
2)Find where a function originated
i.e. where is CheckSyntax defined?

TIA
tim
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: finding the originating map command

2012-07-02 Thread Tim Johnson
* Gary Johnson garyj...@spocom.com [120702 15:29]:
 On 2012-07-02, Tim Johnson wrote:
 
 I don't think Vim remembers any place but the last where a mapping
 was defined.  However, you can start Vim like this,
 
 $ vim -V15verbose.out ...
 
 and capture all the ex commands to the file verbose.out.  Then you
 can open that file and search for
 
 map\s\+,cs\
 
 or filter verbose.out with something like this
 
 $ grep 'map[^I ][^I ]*,cs\\|^[^l]' verbose.out | grep -C2 map
 
 to find the various places where that mapping was defined.  Those ^I
 pairs are literal tabs.  The \|^[^l] is there to capture all the
 lines saying what file is being sourced, function being called,
 etc., without all the lines beginning with line  other than the
 one(s) defining your mapping.
 
  2)Find where a function originated
  i.e. where is CheckSyntax defined?
 
 :verbose function CheckSyntax
 
 will tell you where the function was last defined.
  That is great Gary, thanks for such a succint solution.
  cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Why is caret (^) so slow?

2012-01-29 Thread Tim Johnson
I've been using vim for 12 years now :) and am just getting around
to ask this question.

Why is the ^ so slow? 
When I press ^, there is a noticeable wait time
before the first non-blank char is selected.

I.E., on every version of vim I have used, I have found this to be
so. 
0w is way faster, but may not always be the desired result.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Why is caret (^) so slow?

2012-01-29 Thread Tim Johnson
* AK andrei@gmail.com [120129 16:00]:
 On 01/29/2012 07:50 PM, Tim Johnson wrote:
 I've been using vim for 12 years now :) and am just getting around
 to ask this question.
 
 Why is the ^ so slow?
 When I press ^, there is a noticeable wait time
 before the first non-blank char is selected.
 
 I.E., on every version of vim I have used, I have found this to be
 so.
 0w is way faster, but may not always be the desired result.
 
 
 For me, it's instantaneous, and always been like that (I'm using
 gvim). What does :map ^ show?  -ak
^[[24~ MiddleMouseSpace 
which was set originally by .vimrc
Thanks for that tip, removing
map! ^[[24~  MiddleMouse
from .vimrc seems to have corrected it.
cheers

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Shift column right by spaces?

2012-01-21 Thread Tim Johnson
* Tim Chase v...@tim.thechases.com [120121 08:41]:
 I would like to be able to move a column right by an arbitrary
 numbers of spaces, regardless of the value of `shiftwidth'.
 
 Is that possible?
 
 many ways -- probably the simplest:
 
  - position the cursor at the left/top of the column you want
to move
  - press ctrl-v to enter visual mode
  - cursor down with the relevant motion command however long
your column is
 
  - press I
  - enter as many spaces as you want
 
 Or, enter a count for the number of spaces, press I, insert one 
 space and hit ESC.
 
  - press ESC and the rest of the lines will get their spaces
 
 
 If the column is delimited rather than at a particular character 
 offset, you can use (assuming a , as the delimiter here)
 
   :%s/^\%([^,]*,\)\{5}\zs/\=repeat(' ', 10)
 
 where 5 is the number of columns to precede the insertion, and 
 10 is the number of spaces to insert.  Similarly, one could use 
 \%20c or \%20v as the search target for inserting N spaces.
 
 As SC said, lots of options :)
   Thank you tim and sc. Works like a charm!
   cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Align one line to another

2011-08-15 Thread Tim Johnson
* Ben Fritz fritzophre...@gmail.com [110815 08:41]:
 On Aug 14, 11:42 am, Tim Johnson t...@johnsons-web.com wrote:
  I'd like to find a way to align one or more lines with the same
  indentation as (say) the previous line:
  Example :
      Main entry point for this module.
  Process all.
  Delete all.
  To
      Main entry point for this module.
      Process all.
      Delete all.
  I'm looking at a 'Quick reference Card' 
  athttp://tnerual.eriogerg.free.fr/vimqrc.htmland
  under
  'Advanced insertion'
  are some clues, but blush I am unable to decipher them.
  thanks
 
 What about:
 
 :set autoindent
 (visually select area including lines you wish to indent, NOT the line
 whose indent you wish to match)
  `autoindent' has always been set on my configuration. I think Tim
  Chase gave a good tip for 'non-tab' indenting
  thanks Ben
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Align one line to another

2011-08-14 Thread Tim Johnson
I'd like to find a way to align one or more lines with the same
indentation as (say) the previous line:
Example :
Main entry point for this module.
Process all. 
Delete all.
To
Main entry point for this module.
Process all. 
Delete all.
I'm looking at a 'Quick reference Card' at 
http://tnerual.eriogerg.free.fr/vimqrc.html and
under 
'Advanced insertion'
are some clues, but blush I am unable to decipher them.
thanks
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Align one line to another

2011-08-14 Thread Tim Johnson
* Tim Chase v...@tim.thechases.com [110814 11:36]:
 On 08/14/2011 11:42 AM, Tim Johnson wrote:
 
 There are lots of ways to do this, so I'll toss a couple out there
 and you can pick  choose depending on your needs.
 
 The first  easiest (assuming the first/previous line is an even
 multiple of 'shiftwidth' and corresponds to your 'expandtab'
 settings) is to just use the  or  commands to shift over the
 range.  In the above example, I'd select the 2nd  3rd lines and hit
  to shift them right one.  If I needed multiple shifts to get
 them into position, I'd then hit . (period) to repeat the shift
 until they're in place.
 I use this method all the time... 
 If the 1st/previous line's leading whitespace *isn't* a multiple
 of 'sw', making the previous method less helpful, then I'd consider
 using visual-block mode to select the left-hand column of the stuff
 to indent and then hit I (capital-eye) to insert at the beginning
 of the block.  Put in the expected/proper indentation, and then hit
 esc which will put that indentation on all the lines.  If the
 indentation of the 1st/previous line is a bit crazy (say, a sick
 mixture of tabs/spaces), then you could copy that indentation from
 the first line and then after hitting I in visual-block-mode, use
 control+R followed by a double-quote to insert the crazy
 indentation.
 
 Both of those are somewhat manual. If you want to create a mapping,
 you could do something like
 
   :vnoremap f4 :'+1,'s/^\s*/\=matchstr(getline('),
 '^\s*')cr
 
 which would allow you to visually select the lines in question. The
 mapping will then sniff the indentation of the first line you
 selected and then apply it to all the lines afterward.
 
 Finally, if you have oodles of these in your file and you don't want
 to visually select each piece manually, you can break out the
 nuclear option...something like
 
  :g/^\s*/ka|+,//s/^\s*/\=matchstr(getline('a), '^\s*')
 
 (this burns the a mark, so adjust the ka and 'a accordingly if
 you don't want to tromp them) which will search for every line
 beginning with three double-quotes (with optionally leading
 whitespace) and then adjust from the following line (+) through
 the next match of three double-quotes and pull down the indentation
 from the first/previous line.  If you don't want to burn ANY
 marks, it might be doable with
 
 :g/^\s*/+,//s/^\s*/\=matchstr(getline(line('.')-1), '^\s*')
 
 So there you have a whole mess of options depending on the time,
 energy, and enormity of the task at hand. :)  Hope it helps,
  It sure does. These instructions above open all kinds of
  possibilities.
  Thanks very much

-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Saving netrw hide list to session file

2011-06-30 Thread Tim Johnson
Using vim 7.2 on ubuntu 10.04, huge version.

I make use of Dr. Campbell's netrw browse window, which has the
ctrl-h feature that allows me to edit the hide list. 

The hide list is associated with g:netrw_list_hide. I would like to
be able to save that variable to my session file. However, when I
save the session, I do not see that the g:netrw_list_hide is saved.
In fact g:netrw_list_hide is not even defined until netrw is first
invoked.

Is it possible to save g:netrw_list_hide?

Thanks
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Saving netrw hide list to session file

2011-06-30 Thread Tim Johnson
* Charles Campbell charles.e.campb...@nasa.gov [110630 11:18]:
 Tim Johnson wrote:
 Using vim 7.2 on ubuntu 10.04, huge version.
 
 I make use of Dr. Campbell's netrw browse window, which has the
 ctrl-h feature that allows me to edit the hide list.
 
 The hide list is associated with g:netrw_list_hide. I would like to
 be able to save that variable to my session file. However, when I
 save the session, I do not see that the g:netrw_list_hide is saved.
 In fact g:netrw_list_hide is not even defined until netrw is first
 invoked.
 
 Is it possible to save g:netrw_list_hide?
 
 
 Hello!
 Thank you for the quick reply. 
 From the vim manual, under  :help mks...
  Understood. 
 2. Restores global variables that start with an uppercase letter and contain
at least one lowercase letter, if 'sessionoptions' contains globals.
 
 So, unfortunately, g:netrw_list_hide does not satisfy that constraint.
 
 I checked into whether this process could be automated;
 unfortunately, there does not appear to be a SessionWritePre autocmd
 event.  If there was, something like
   
 au SessionWritePre  * let g:Netrw_list_hide= g:netrw_list_hide
  I put let g:Netrw_list_hide= g:netrw_list_hide into
  the 'wrapper' function that saves the session.
 Save session after confirmation
function! TjSaveSession()
let g:Netrw_list_hide = g:netrw_list_hide
let res = input(Save Session: [ . v:this_session .] (Y/N))
if res == y
exe ':call AutoSaveVimSesn()'
endif
endfunction
 Global variable saved

 au SessionLoadPost * let g:netrw_list_hide= g:Netrw_list_hide
 And the line above in my .vimrc 
 might work.
 And now it works! 

 Thanks for the solution.
 regards
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


How to get number of tabl

2011-06-12 Thread Tim Johnson
I have vim 7.2 huge version on linux.

I would like to get the enumerated number of an open tab.
I wouldn't care if numbering started at 0 or 1, as long
as the process is consistant.

I have the following setting :
guitablabel=%N %t
which prints out the tab number in the tab itself, but
I would like to get the tab number programmatically.

:echo v:lnum 

on my setup only gives the total number of tabs open,
not the tab number itself.

TIA
tim
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


[solved] Re: How to get number of tab

2011-06-12 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [110612 17:30]:
 On 13/06/11 02:10, Tim Johnson wrote:
 
 I would like to get the enumerated number of an open tab.
 I wouldn't care if numbering started at 0 or 1, as long
 as the process is consistant.
 
   :help tabpagenr()
 
 HTH,
  :) Indeed. That's it!
  thanks
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Deleting a buffer without closing the window

2011-06-07 Thread Tim Johnson
* ZyX zyx@gmail.com [110607 01:23]:
 Reply to message «Deleting a buffer without closing the window», 
 sent 04:49:19 07 June 2011, Tuesday
 by Tim Johnson:
 
 I personally use bufkill plugin (script #1147) and its :BW command.
 Thanks for the tip. I'm going to try that out. 
 regards
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Deleting a buffer without closing the window

2011-06-06 Thread Tim Johnson
I have found this:
http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window
Looks promising.
Has anyone else used either of the functions in that page?
Comments?
Alternate recommendations?
thanks
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Using the colon with `execute'

2011-06-05 Thread Tim Johnson
I'm unclear about when to use and when *not* to use the colon in a
string for the `execute' command - as composed programmatically.

I'd appreciate it if someone could point me to some documentation or
discussion on this topic.

:h execute
doesn't seem to clear this question up for me.

thanks
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


[Thanks] Using the colon with `execute'

2011-06-05 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [110605 09:31]:
 I'm unclear about when to use and when *not* to use the colon in a
 string for the `execute' command - as composed programmatically.
 
 I'd appreciate it if someone could point me to some documentation or
 discussion on this topic.
 
 :h execute
 doesn't seem to clear this question up for me.
 Thanks everybody. Good info.
 cheers
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Trying to escape tab in exe

2011-06-04 Thread Tim Johnson
If I type in the following ex command:
:e /home/tim/prj/cgi/baker/xmlimport/controllers/ 
and then press TAB, I get a wildmenu for the target
directory. Yay! 
But I can't get this same function to work programmatically.
I have the following two functions:
 
function! EdDir(dir)
execute 'e ' . a:dir . '/\Tab'
endfunction
 
function! EdControllers()
execute 'call EdDir(' . g:ControllerFolder . ')'
endfunction
 
 where g:ControllerFolder is '/home/tim/prj/cgi/baker/xmlimport/controllers'
If I execute 
: call EdControllers()cr
vim opens a new file 
/home/tim/prj/cgi/baker/xmlimport/controllers/Tab
grrr!
So how do I escape the Tab?
I've tried
:h execute, and don't find any help there.

thanks
using vim 7.2 Huge version with GTK2-GNOME GUI
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Trying to escape tab in exe

2011-06-04 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [110604 16:09]:
 vim opens a new file
 /home/tim/prj/cgi/baker/xmlimport/controllers/Tab
 grrr!
 So how do I escape the Tab?
 I've tried
 
 IIRC, the relevant setting is 'wildcharm' (q.v.).
 Thank you for the reply Tony. 
 I did the following:
 set wildcharm=Tab
  in the same file as the code I have included.
  sourced the file again, but I still have the
  problem. 
 My brain has still not grokked this problem. I've even tried (from
 the example in the helpfile):
 set wildcharm=C-Z
  with code changes to 
 execute 'e ' a:dir . '/\C-Z'
  or 
 execute 'e ' a:dir . '/C-Z'
 and blush I get a file name C-Z.
 Not what I want - obviously.
 thanks again
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Trying to escape tab in exe

2011-06-04 Thread Tim Johnson
* sc tooth...@swbell.net [110604 16:24]:
   using vim 7.2 Huge version with GTK2-GNOME GUI
 
  IIRC, the relevant setting is 'wildcharm' (q.v.).
 
 another way to approach it would be to call glob() with an
 asterisk in place of the Tab
 
 sc
 Thanks sc, but could you illustrate with an example:
 `glob' is new to me, so I am in meantime looking at
 help and doing some experimenting.
 cheers
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Trying to escape tab in exe

2011-06-04 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [110604 18:04]:
 
 Within single quotes, every character is taken literally, even a
 backslash, except that two single quotes mean one.
 Aha! 
 You should have used double quotes with backslash-escaping, like
 this (referring to your original post):
 
   exec 'e' a:dir . /\t
 or
   execute 'e ' . a.dir . /\Tab
 :) Now we are getting somewhere. With your example above,
 I get the directory itself in a vim buffer window. Which
 is useful, but preferable, I want to see the wildmenu for
 the directory.

 As if I were to manually in ex type:
 e /home/http/run/baker/xmlimport/modelsTab

 thanks
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Trying to escape tab in exe

2011-06-04 Thread Tim Johnson
* Ben Schmidt mail_ben_schm...@yahoo.com.au [110604 19:05]:
 
 Try the feedkeys() function:
 
 :call feedkeys('e ' . a.dir . /\Tab)
 
 If you check out the help for feedkeys() you will see documentation
 about a second argument which you might like to include and experiment
 with to get the results you want reliably.
 
 I haven't tested it, so I may be completely wrong, but I think it
 might be what you want!
  Ben, I think you may be on to something here:
  executing
  call feedkeys('e ' . a:dir . /\Tab)
  puts
  /home/tim/prj/cgi/baker/xmlimport/models/^I
  into ex
  which is not what we want (it's interpeted as
  a search pattern), however `feedkeys' looks promising.

  It is late where I am at. I will pursue this further in the
  morning. 
  Thanks everybody.
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

-- 
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: Escaping spaces for bold in set guifont

2011-05-10 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [110509 17:49]:
 Using 7.2, Huge version with GTK2-GNOME GUI
 OS=ubuntu 10.04
 
 If I issue the following ex command
 set guifont=Monospace\ 9 
 I get the font setting as expected.
 
 If I issue the following ex command
 set guifont=Monospace\ 9\ bold
 I get a font type that is far from what I had in mind.
 
 What is the correct syntax?
  I've posted with the wrong problem blush. Escaping the spaces
  wasn't the issue, but the issue appears to be the order of the
  attributes:
 set guifont=Monospace\ Bold\ 9
 is the correct syntax
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Escaping spaces for bold in set guifont

2011-05-09 Thread Tim Johnson
Using 7.2, Huge version with GTK2-GNOME GUI
OS=ubuntu 10.04

If I issue the following ex command
set guifont=Monospace\ 9 
I get the font setting as expected.

If I issue the following ex command
set guifont=Monospace\ 9\ bold
I get a font type that is far from what I had in mind.

What is the correct syntax?
thanks

-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

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


Opening a line with vimscript - autoindent ignored

2011-02-25 Thread Tim Johnson
using vim 7.2 huge on mint 10.0
I have a vimscript to handle code expansion from keywords.
Here is the relevant snippet

elseif wrd == lv0
  exe normal! bdwaargs = load.args(kws) ## 
dict,member='kwd',module='config'\Esc0wo
  exe normal! acontent = load.view(args) ## '()' = string \Esc0w

If this is executed, I get something like this:

args = load.args(kws) ## dict,member='kwd',module='config'
content = load.view(args) ## '()' = string 

The second line is not indented.
`autoindent' is set. If I were to type the two lines of code, and were
I to hit Esc at the end of the first line and then 
o
The alignment would be retained.
What am I doing wrong?
TIA
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: Opening a line with vimscript - autoindent ignored

2011-02-25 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [110225 07:55]:
 using vim 7.2 huge on mint 10.0
 I have a vimscript to handle code expansion from keywords.
 Here is the relevant snippet
 
 elseif wrd == lv0
   exe normal! bdwaargs = load.args(kws) ## 
 dict,member='kwd',module='config'\Esc0wo
   exe normal! acontent = load.view(args) ## '()' = string \Esc0w
 
 If this is executed, I get something like this:
 
 args = load.args(kws) ## dict,member='kwd',module='config'
 content = load.view(args) ## '()' = string 
 
 The second line is not indented.
 `autoindent' is set. If I were to type the two lines of code, and were
 I to hit Esc at the end of the first line and then 
 o
 The alignment would be retained.
  I think to answer my own question, I have been 'overthinking' the
  problem.
elseif wrd == lv0
  exe normal! bdwaargs = load.args(kws) ## 
dict,member='kwd',module='config'
  exe normal! ocontent = load.view(args) ## '()' = string\Esc^
Not entirely sure just why duh!, but among other things the 'a' on the
should not have been there, as well as moving 'o' to the second command.
Any further comments are still welcome.
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: How to use a filetype filter(s) with browse

2011-01-01 Thread Tim Johnson
* Patrick Texier p.tex...@orsennes.com [110101 00:23]:
 On Fri, 31 Dec 2010 15:14:11 -0900, Tim Johnson wrote:
 
  let g:browsefilter=*.py doesn't have the expected effect,
  I.E. after executing, I still see all directory files in the dialogue.
  
  How can I make this happen?
 
 According :help browsefilter it's only for Windows and Motif.
 
 In ftplugin directory, browsefilter is set only for Windows.
  sighFor once I *did* read the docs correctly. Hoped
   I had missed something.
   thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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


How to use a filetype filter(s) with browse

2010-12-31 Thread Tim Johnson
Using vim 7.2 on ubuntu 10.04. Huge version compiled for gtk.

I have automated a series of menu items that activates `browse' for
different directories.
The process is governed by a menu selection that allows me to set a
series of variables called g:ModelFolder, g:ControllerFolder etc...
Upon another menu selection, the variables are selectively
concatenated to a string that resolves to something like

browse confirm e /home/tim/prj/cgi/baker/akmls

Now, it would be great to add a filetype filter so that
I would have something like

browse confirm e /home/tim/prj/cgi/baker/akmls *.py

Better yet, to have multiple filetypes.. but setting
let g:browsefilter=*.py doesn't have the expected effect,
I.E. after executing, I still see all directory files in the dialogue.

How can I make this happen?
thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: Saving global variables in session files

2010-11-18 Thread Tim Johnson
* Tom Link micat...@gmail.com [101117 21:30]:
    :) but you're not off the hook yet. Anyone have a better way or
    any caveats?
 
 Two alternatives come to mind:
 
 Under the assumption that your sessions correspond to projects, you
 could use the localvimrc[1] plugin (or something similar) to set the
 variables to project-specific values. Such plugins load a project-
 specific viml file, e.g. /path/to/project/.lvimrc.
 
 You could define a SessionLoadPost autocommand that does something.
 The session is saved in v:this_session.
 
 Regards,
 Tom
 
 
 [1] http://www.vim.org/scripts/script.php?script_id=441
  Thanks Tom. Good tips and looks like a great plugin.
  cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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


Saving global variables in session files

2010-11-17 Thread Tim Johnson
Using vim 7.2 on ubuntu 10.04, huge version.

If I execute the following:
:let g:viewFolder = /path/to/project/application/views 
and save the session, I note that the value of
g:viewFolder is not stored in the session file.

What else do I need to do?
-
NOTE: the reason for this need is as follows:
-
I would like to create a series of global variables that
would be set to different values in different sessions and stored
in the session file for each session.

Examples:
g:viewFolder = /path/to/project/application/views
g:modelFolder = /path/to/project/application/models
g:controllerFolder = /path/to/project/application/controllers
This has a potential for a wide range of applications, such as
 open file selection dialog for views folder 
browse confirm e g:viewFolder 
 etc. 

thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: Saving global variables in session files

2010-11-17 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [101117 15:36]:
 Using vim 7.2 on ubuntu 10.04, huge version.
 
 If I execute the following:
 :let g:viewFolder = /path/to/project/application/views 
 and save the session, I note that the value of
 g:viewFolder is not stored in the session file.
 
 What else do I need to do?
 -
 NOTE: the reason for this need is as follows:
 -
 I would like to create a series of global variables that
 would be set to different values in different sessions and stored
 in the session file for each session.
 
  Doing my own research: ...
  from http://www.adp-gmbh.ch/vim/vars.html
  I deduced to do the following:
  :set sessionoptions+=globals 
  :let g:ViewFolder = /path/to/project/application/views 
   Note the capital 'V'
  and save the session.
  I now see that 'ViewFolder' is saved in the session file
  and has a value when the session file is sourced.

  :) but you're not off the hook yet. Anyone have a better way or
  any caveats?
  thanks
  tim

 Examples:
 g:viewFolder = /path/to/project/application/views
 g:modelFolder = /path/to/project/application/models
 g:controllerFolder = /path/to/project/application/controllers
 This has a potential for a wide range of applications, such as
  open file selection dialog for views folder 
 browse confirm e g:viewFolder 
  etc. 

-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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


Testing for last item in a list

2010-11-12 Thread Tim Johnson
Using vim 7.2 huge version on ubuntu 10.04
In the following vimscript:
 begin code
for line in lines
execute norm! i. line
execute 'norm! o'
endfor
 end code
How may I check `line' to see if it is the last item in list
`lines'?

:) Probably 
:h something

will tell me the story
cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: Testing for last item in a list

2010-11-12 Thread Tim Johnson
* ZyX zyx@gmail.com [101112 12:17]:
 
 for line in lines
 execute normal! i.line
   May be replaced with
  call setline(line('.'), line)
 execute normal! o
 if line is lines[-1]
  do something
 endif
 endfor
Hi ZyX:
I have been enlightened.
This works
for line in lines
execute norm! i. line
if line is lines[-1]
continue
else
execute 'norm! o'
endif
endfor
Thank you!
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: Testing for last item in a list

2010-11-12 Thread Tim Johnson
* Tony Mechelynck antoine.mechely...@gmail.com [101112 14:19]:

 That can still be simplified:

   for line in lines
   exe 'norm! i' . line
   if line isnot lines[-1]
 cool! 'isnot' is new to me
   norm! o
   endif
   endfor
  Thanks for the tip on *isnot* Tony
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: How to eliminate $- from php words

2010-11-05 Thread Tim Johnson
* John Little john.b.lit...@gmail.com [101104 16:55]:
 On Nov 4, 11:44 am, Tim Johnson t...@johnsons-web.com wrote:
    BTW: How would add or remove the comma itself from the keyword
    string?
 
 A variety of things work; all of these are accepted:
 
 set isk=a,b,c,d,e,f,,comma at end
 set isk=a,b,c,d,,,e,fthree commas
 set isk=a,b,c,d,\,,e,f   escape with backslash
 set isk-=,
 set isk+=,
 set isk-=\,
 set isk+=\,
 
 I suppose I'd use the backslash consistently.
  Thanks, John.
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: How to eliminate $- from php words

2010-11-03 Thread Tim Johnson
* John Little john.b.lit...@gmail.com [101102 21:04]:
 On Nov 3, 12:48 pm, Tim Johnson t...@johnsons-web.com wrote:
 
  :setlocal iskeyword-=$-
  What am I doing wrong?
 
 (I see others are getting you where you want to go, but they didn't
 answer this question directly).
 That'll never work, for at least two reasons.
 
 1. iskeyword is a comma separated list of items.  The above attempts
 to remove one item $-.
 2. Even if the setting of iskeyword had separate items for $, -, and
 , unless they appear in the setting *in that order* :set -= would not
 remove them; one has to remove them one at a time.  F.ex.,
 :set isk=a,b,c,d,e,f,g,h,i,j
 :set isk-=b,c works, b,c is found
 :set isk-=e,g doesn't work silently
 :set isk-=e isk-=gworks
 3. :set doesn't have the intelligence to convert to ascii, say a minus
 to 62.
 4. :set doesn't have the intelligence to split up 60-62 into 60,61,62
 then remove the 62.
 
 You can see that :set has some general mechanisms for setting options,
 but no smarts for a particular option... though I'd not be surprised
 if there are exceptions to that.
  Hi John:

  Thank you for clarifying that. Some time after submitting the
  post, I did discover that myself. I find that it is generally a
  real stretch to offer any criticism of vim, but I did find that
  the command :h isk did not provide me with much edification.

  BTW: How would add or remove the comma itself from the keyword
  string?

  thanks again
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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


How to eliminate $- from php words

2010-11-02 Thread Tim Johnson
using vim huge version with GTK2 GUI on ubuntu 10.04

I mean to eliminate the following characters:

'$' , '-', and ''  (ascii 36,45,62)
from php word syntax.

Neither 
:setlocal iskeyword-=$- 
as an ex command nor
autocmd BufRead,BufNewFile *.php setlocal iskeyword-=$-
in .vimrc 
has the effects that I am looking for.

to test my efforts I invoke : set iskeyword and see the
following
:iskeyword=38,42,43,45,47-58,60-62,64-90,97-122,_, 
where ascii 45 and 62 are still present.

What am I doing wrong?
thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-- 
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: How to eliminate $- from php words

2010-11-02 Thread Tim Johnson
* sc tooth...@swbell.net [101102 16:20]:
 On Tuesday 02 November 2010 18:48:30 Tim Johnson wrote:
. 
 first, test my theory by testing iskeyword with
 
 :verbose set iskeyword?
.. 
 ok, scratch that -- i just looked and php.vim does not tamper
 with iskeyword -- perhaps you have a plugin installed that is
 setting it -- so tell us what you see when you do the verbose
 query
 Here you go...
 iskeyword=38,42,43,45,47-58,60-62,64-90,97-122,_, 

 And I don't recall the vim command to list out plugins, but
 If I invoke the following:
 gvim --noplugin hello.php
 and then run 
 :verbose set iskeyword?
 I get
 iskeyword=@,48-57,_,192-255
 Last set from ~/.vimrc 
  and you are correct: A plugin is doing it. 
 And which is it?
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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


  1   2   >