Color at the crossing of status lines and vertical split - attached files (1/1)

2015-05-04 Thread Nicola
s the asterisk. That does not seem part of the vertical bar. Status lines seem to overlap it, but it cannot be controlled through status line specifications. I also attach a couple of small pictures, I hope they make it through. Nicola -- -- You received this message from the "vim_use" m

Re: Color at the crossing of status lines and vertical split - attached files (1/1)

2015-05-07 Thread Nicola
In article <20150506153730.ga6...@256bit.org>, Christian Brabandt wrote: > Hi Nicola! > > On Mo, 04 Mai 2015, Nicola wrote: > > > Hello, > > my first post here, hope my question is not too trivial. Is there a way > > to change the color for the one cha

Re: Color at the crossing of status lines and vertical split - attached files (1/1)

2015-05-08 Thread Nicola
chars', specifically a note about the stl/stlnc suboption defaults. Ah, thanks: I wouldn't have found it myself. Nicola -- -- 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,

Does trigger any event?

2015-05-24 Thread Nicola
whether there is a better way to detect when the user makes the active window the only visible one. Nicola -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/ma

Re: Does trigger any event?

2015-05-25 Thread Nicola
On 2015-05-25 05:12:21 +, Nikolay Pavlov said: 2015-05-25 1:12 GMT+03:00 Justin M. Keyes : On Sun, May 24, 2015 at 5:19 AM, Nicola wrote: Hi, am I right that does not trigger any event? I have a custom status line, which does not get updated when I close all other windows. For now, I

Re: Does trigger any event?

2015-05-25 Thread Nicola
ys, do this only if `BuildNewStatusLine()` function is called. At the start set &g:statusline (note: ***global* option**) to %!BuildNewStatusLine(). :h global-local I think I don't understand this point. Would you mind to elaborate? Nicola -- -- You received this message fro

Re: Does trigger any event?

2015-05-26 Thread Nicola
e one (I want different status lines for active and inactive windows)? I cannot use winnr() inside BuildStatusLine() or in the context of %!. 2) When I open several windows and then I close them with o, I get an out of bounds error in WinNrFromID(). Why? Is the function being called for closing/c

Re: Does trigger any event?

2015-05-26 Thread Nicola
On 2015-05-26 09:04:39 +, Nicola said: On 2015-05-26 04:59:00 +, Nikolay Pavlov said: Default value from &l:statusline is &g:statusline (actually, pseudo-value “no value set, fall back to &g:statusline”). If you set &g:statusline to `%!BuildNewStatusLine()` and run `Re

Re: Does trigger any event?

2015-05-26 Thread Nicola
;m glad I have decided to implement my own status line instead of using a plugin: I am learning a lot along the way. Thanks, Nicola -- -- 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 infor

Re: Does trigger any event?

2015-05-26 Thread Nicola
part. See one of my previous posts. Nicola -- -- 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 subscri

My approach to a custom status line

2015-05-30 Thread Nicola
ut in my (limited) benchmarks this seems to perform quite well. So, in the end, I have a bi-colored collapsible status line highlighting the current mode (and showing other information), which can be drawn in 1.5x-2x time compared to a basic status line. My approach may not be general enough to cove

Re: My approach to a custom status line

2015-05-31 Thread Nicola
On 2015-05-31 02:56:13 +, Rick Dooling said: Have you ever tried vim-airline? Sure, I have used it since not long ago, and it's very nice. But now I have more or less the same amount of configuration code in my vimrc, and a plugin less. Nicola -- -- You received this message fro

Re: Showmarks complaint

2015-06-04 Thread Nicola
d=2142 https://github.com/jacquesbh/vim-showmarks Nicola -- -- 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 beca

Paste as a comment, but without formatting

2015-06-08 Thread Nicola
out. Toggling autoindent does not seem to help either. I have formatoptions=tcqrnjo. Any suggestion? Nicola -- -- 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://w

Location list scrolls back at the top

2015-07-16 Thread Nicola
Whenever I am in the location list and hit Enter to jump to the main buffer, the location list scrolls back to line 1. Is it possible to avoid that and keep the list at its current position? I am using Syntastic, if that matters. Nicola -- -- You received this message from the "vi

Capture output of :make

2015-10-15 Thread Nicola
m not sure is a good thing (say, if I want to distribute the code as a plugin). Is there a better way? Nicola -- -- 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.o

Re: Capture output of :make

2015-10-15 Thread Nicola
(and lexpr, too!) uses the global value of errorformat. or you could save and restore the global value like this: let l:efm = &efm set errorformat=%f:%l:%m cexpr output let &efm = l:efm Thanks, I hadn't thought about that. This seems like the way to go. Nicola

Re: Capture output of :make

2015-10-16 Thread Nicola
Christian: I'll try the patch on the weekend. Nicola -- -- 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 bec

Netrw: pressing `-` jumps to a different window

2015-12-12 Thread Nicola
steps above. Can you suggest a fix? Using Vim 7.4.963 on OS X. Nicola -- -- 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 th

ftdetect for a new SQL dialect

2016-01-06 Thread Nicola
he dialect be loaded directly without requiring the use to set g:sql_type_default? Nicola -- -- 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

Re: ftdetect for a new SQL dialect

2016-01-09 Thread Nicola
g file. In a dialect plugin one would then define: au BufNewFile,BufRead *.pgsql let b:sql_type_default='pgsql' | setfiletype sql Nicola -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For mo

Re: ftdetect for a new SQL dialect

2016-01-10 Thread Nicola
On 2016-01-09 10:24:08 +, Nicola said: Is there a way to have the dialect be loaded directly without requiring the use to set g:sql_type_default? Is pgsql not a good choice as a default for you? Yes, for me it is. But, in the perspective of making my plugin available to a general

Errors upon quitting Vim

2016-01-21 Thread Nicola
From time to time, upon exiting Vim an error message flashes on the screen, but too quickly for me to read it. I'd like to understand why it happens. Is there a way to log such errors or somehow pause Vim when an error appears? Nicola -- -- You received this message from the &qu

Re: Errors upon quitting Vim

2016-01-21 Thread Nicola
On 2016-01-21 18:58:24 +, Gary Johnson said: On 2016-01-21, Ben Fritz wrote: On Thursday, January 21, 2016 at 12:27:51 PM UTC-6, Nicola wrote: From time to time, upon exiting Vim an error message flashes on the screen, but too quickly for me to read it. I'd like to understand w

Re: Errors upon quitting Vim

2016-01-23 Thread Nicola
On 2016-01-23 06:56:13 +, bsta...@gmail.com said: 在 2016年1月22日星期五 UTC+8上午2:27:51,Nicola写道: From time to time, upon exiting Vim an error message flashes on the screen, but too quickly for me to read it. I'd like to understand why it happens. Is there a way to log such errors or so

Re: vim: thesaurus

2016-02-12 Thread Nicola
n the thesaurus .dat file (it is a text file). I have taken a quick look at one of them, and it should not be too hard to turn it into a format usable by Vim: removing the first line and the parts in parentheses should be enough. Hope this helps, Nicola -- -- You received this message from the &qu

Re: vim: thesaurus

2016-02-12 Thread Nicola
On 2016-02-12 14:16:50 +, Nicola said: Another possibility is to download an .oxt file, change the suffix to .zip, uncompress it, and open the thesaurus .dat file (it is a text file). I have taken a quick look at one of them, and it should not be too hard to turn it into a format usable by

Re: vim: thesaurus

2016-02-12 Thread Nicola
On 2016-02-12 18:04:09 +, Nicola said: On 2016-02-12 14:16:50 +, Nicola said: Another possibility is to download an .oxt file, change the suffix to .zip, uncompress it, and open the thesaurus .dat file (it is a text file). I have taken a quick look at one of them, and it should not be

Escaping %:h with ::S

2016-02-16 Thread Nicola
Suppose % is /path to/file.txt I want to use the directory containing file.txt in makeprg. Say: CompilerSet makeprg=mycmd\ --working-dir\ %:p:h:S Now, %:p:h correctly gives me /path to But then, %:p:h:S results in '/path to/file.txt' (using Vim 7.4.1257). Is this a bu

Errors when launching Vim inside tmux

2016-03-16 Thread Nicola
Vim 7.4 1-1525 tmux 2.1 both installed with Homebrew. Nicola -- -- 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

Re: Errors when launching Vim inside tmux

2016-03-19 Thread Nicola
should it be reported to tmux's maintainer? I have no idea what reattach-to-user-namespace does to fix those messages. Nicola -- -- 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 informatio

Re: Errors when launching Vim inside tmux

2016-03-19 Thread Nicola
On 2016-03-18 14:08:33 +, Nicola said: On 2016-03-18 12:23:25 +, Christian Brabandt said: Hi Nicola! On Mi, 16 Mär 2016, Nicola wrote: In OS X, when I launch `vim`, or even `vim -u NONE`, within a tmux session, the following messages are logged: 16/03/16 10:49:13,539 vim[11605

Re: Errors when launching Vim inside tmux

2016-03-19 Thread Nicola
On 2016-03-18 12:23:25 +, Christian Brabandt said: Hi Nicola! On Mi, 16 Mär 2016, Nicola wrote: In OS X, when I launch `vim`, or even `vim -u NONE`, within a tmux session, the following messages are logged: 16/03/16 10:49:13,539 vim[11605]: LaunchServices: received

Re: Errors when launching Vim inside tmux

2016-03-19 Thread Nicola
hing to do with your problem.) OT, but I don't think reattach-to-user-namespace is needed any longer (see the note in URL you've pasted). I am not using it. Nicola -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are

Packages: best practices?

2016-03-25 Thread Nicola
f YCM, which must now be loaded manually. To do so, I need :packadd youcompleteme but also :call youcompleteme#Enable() because :packadd does not trigger VimEnter. Does what I said make sense? Am I missing something? Nicola -- -- You received this message from the "vim_use" maillis

Re: Packages: best practices?

2016-03-26 Thread Nicola
On 2016-03-25 19:15:59 +, Nicola said: I would like to start using Vim's new package feature, but first I want to make sure that I have understood how it is supposed to be used. Is it too early to ask for tips about that? First let me summarize what I have understood about packages (p

Re: Packages: best practices?

2016-03-26 Thread Nicola
On 2016-03-26 17:56:34 +, Bram Moolenaar said: Nicola wrote: Then, everything should work as before, with the exception of YCM, which must now be loaded manually. To do so, I need :packadd youcompleteme but also :call youcompleteme#Enable() because :packadd does not trigger VimEnter

Re: Packages: best practices?

2016-03-26 Thread Nicola
On 2016-03-26 18:53:44 +, Andy Wokula said: if has("vim_starting") " init on VimEnter else " init immediately endif That works, thanks! Nicola -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the

Packages and plugin's subdirectories

2016-03-29 Thread Nicola
that a bug? Using Vim 7.4.1655. Nicola -- -- 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 subscribe

Re: Packages and plugin's subdirectories

2016-03-29 Thread Nicola
On 2016-03-29 19:53:07 +, Bram Moolenaar said: Nicola wrote: Neocomplete's plugin folder is organized as follows: plugin/ neocomplete.vim neocomplete/ buffer.vim dictionary.vim tag.vim No matter whether neocomplete is in pack/*/start/ or in pack/*/opt/, only plugin/neocomplete.v

Re: Packages and plugin's subdirectories

2016-03-29 Thread Nicola
On 2016-03-30 04:43:56 +, Nicola said: If that is the intended behaviour, maybe it should be noted more explicitly in the help files. In `:h packages`, it is written that Vim: Also note this difference: if pack/foo/opt/neocomplete is loaded during a session with `:packadd neocomplete

Load all opt plugins in a package at once?

2016-03-29 Thread Nicola
ich a user may build its own package by putting together loosely coupled plugins. Or a package that provides some optional extensions, which are independent of each other. In those cases, a command like the above might be convenient. Nicola -- -- You received this message from the "vim_use&qu

Outlining folding rule

2016-03-31 Thread Nicola
verything is fine again (until the next modification). What's wrong with the code above? Nicola -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/ma

Re: Outlining folding rule

2016-04-01 Thread Nicola
On 2016-03-31 20:53:34 +, Nicola said: The following foldexpr is giving me headaches because it doesn't work under all circumstances: fun! s:outlinerFoldingRule(n) return getline(a:n) =~ '^\s*:' ? \ 20 : indent(a:n) < indent(a:n+1) ? \ ('>&

Re: Outlining folding rule

2016-04-02 Thread Nicola
On 2016-04-02 15:24:20 +, Richard Mitchell said: On Saturday, April 2, 2016 at 2:17:22 AM UTC-4, Nicola wrote: On 2016-03-31 20:53:34 +, Nicola said: The following foldexpr is giving me headaches because it doesn't work under all circumstances: fun! s:outlinerFoldingRule(n) r

Re: Load all opt plugins in a package at once?

2016-04-02 Thread Nicola
On 2016-04-02 13:22:18 +, Bram Moolenaar said: Nicola wrote: What do you think about adding a command that loads all the plugins in an opt directory at once? Something like: :packaddall[!] {name} Search for a package directory in 'packpath' and source all the plugin files fo

Executing search does not add to jump list

2016-04-07 Thread Nicola
atter case? This is a contrived example, but I have encountered this problem when trying to define a mapping in a plugin, which builds the regex out of a variable (so I need to use :exe). Using Vim 7.4.1707. Nicola -- -- You received this message from the "vim_use" maillist. Do not

Documentation of the z flag in search()

2016-04-08 Thread Nicola
arch('abc', 'bWz') returns 0. Given the description above, I would expect the opposite. Am I missing something? Nicola -- -- 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,

Re: netrw :Explore setting current buffer to hidden

2016-04-18 Thread Nicola
been fixed a few weeks ago. Would it be possible to merge the latest netrw into Vim? Nicola -- -- 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: netrw :Explore setting current buffer to hidden

2016-04-18 Thread Nicola
On 2016-04-18 14:00:43 +, Charles E Campbell said: Nicola wrote: On 2016-02-29 22:55:13 +, Charles Campbell said: gt.ma...@gmail.com wrote: hello all, On Vim 7.4.1401 (OS X 10.11.3), netrw’s :Explore is acting very weirdly for me. My workflow is to usually open some file, use

Standard plugins in next Vim release

2016-04-24 Thread Nicola
think about making all or some them optional? As a matter of personal taste, I'd like to see all of them in pack/dist/opt. Nicola -- -- 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 inf

Understanding job_start()

2016-05-06 Thread Nicola
t_io": "file", "out_name": "/dev/null", "err_io": "null"}) Shouldn't this form be equivalent to the previous one? In general, if all I want is launch a process, but I don't care about its output, is this the right way? Tangentially

Re: Understanding job_start()

2016-05-06 Thread Nicola
On 2016-05-06 17:19:58 +, Nicola said: Some time ago I had defined a thin wrapper around job_start() to run a LaTeX job asynchronously. Recently, it has stopped working. For some reason, with Vim 7.4.1817, when I give the following command: call job_start(['lualatex', 'foo.

Re: Understanding job_start()

2016-05-07 Thread Nicola
On 2016-05-06 21:23:30 +, Bram Moolenaar said: Nicola wrote: On 2016-05-06 17:19:58 +, Nicola said: Some time ago I had defined a thin wrapper around job_start() to run a LaTeX job asynchronously. Recently, it has stopped working. For some reason, with Vim 7.4.1817, when I give the

Re: Understanding job_start()

2016-05-07 Thread Nicola
On 2016-05-07 07:04:44 +, Nicola said: call job_start(['lualatex', 'foo.tex', '>/dev/null', '2>&1'], \ {"in_io": "null", "out_io": "null", "err_io": "null"}) This still

Re: Understanding job_start()

2016-05-07 Thread Nicola
On 2016-05-07 10:28:43 +, Nicola said: On 2016-05-07 07:04:44 +, Nicola said: call job_start(['lualatex', 'foo.tex', '>/dev/null', '2>&1'], \ {"in_io": "null", "out_io": "null", "

Re: Understanding job_start()

2016-05-08 Thread Nicola
On 2016-05-07 14:21:15 +, Bram Moolenaar said: Nicola wrote: On 2016-05-07 07:04:44 +, Nicola said: call job_start(['lualatex', 'foo.tex', '>/dev/null', '2>&1'], \ {"in_io": "null", "out_io&quo

Re: Understanding job_start()

2016-05-08 Thread Nicola
On 2016-05-08 15:30:01 +, Nicola said: On 2016-05-07 14:21:15 +, Bram Moolenaar said: Nicola wrote: On 2016-05-07 07:04:44 +, Nicola said: call job_start(['lualatex', 'foo.tex', '>/dev/null', '2>&1'], \ {"in_

Re: Understanding job_start()

2016-05-08 Thread Nicola
On 2016-05-08 19:49:01 +, Bram Moolenaar said: Nicola wrote: On 2016-05-07 07:04:44 +, Nicola said: call job_start(['lualatex', 'foo.tex', '>/dev/null', '2>&1'], \ {"in_io": "null", "out_io&quo

Using ^ (match start of line) and \% (match column) together

2016-06-07 Thread Nicola
The following patterns both match up to column 17 included: /.*\%17v /.*\%17v. If ^ is added, the two are no more equivalent: /^.*\%17v <-- matches up to column 16 /^.*\%17v.<-- matches up to column 17 Is this a bug? Seeing this with Vim 7.4 1-1864. Nicola -- -- You receive

Re: Using ^ (match start of line) and \% (match column) together

2016-06-08 Thread Nicola
On 2016-06-07 20:47:07 +, Nikolay Aleksandrovich Pavlov said: 2016-06-07 22:45 GMT+03:00 Nicola : The following patterns both match up to column 17 included: /.*\%17v /.*\%17v. If ^ is added, the two are no more equivalent: /^.*\%17v <-- matches up to column 16 /^.*\%

Re: Vim 8 pre-announcement

2016-08-17 Thread Nicola
packages have some best practices in mind. You may search for the thread "Packages: best practices?" from last March, where I outlined my ideas. Nicola -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are r

Switching colorschemes may not restore all highlight groups

2016-09-06 Thread Nicola
finition is not reinstated because syntax/vim.vim uses `hi def` rather than simply `hi` (and there are good reasons for that, I'm told). Is there a mechanism to permit the definition from the first colorscheme to be activated again (something like completely deleting some highlight groups)?

Re: Switching colorschemes may not restore all highlight groups

2016-09-07 Thread Nicola
On 2016-09-06 17:15:35 +, Nicola said: Hi, sometimes, switching colorschemes seems to "corrupt" some colors and I am trying to figure out if there's a way around it. For example, if I start Vim with syntax on and the default color scheme to edit my vimrc, then `:hi vimC

Re: Trying to learn to Work with Text without using J,K,H,L and arrow keys

2016-09-13 Thread Nicola
t way to jump to the desired line is just to type something like 8j or 14k. Last suggestion: if you don't mind installing plugins, there are several extensions to built-in movements. The most popular is probably EasyMotion, but my personal favourite is Sneak. Nicola -- -- You recei

Match pattern not containing subpattern in between

2016-09-21 Thread Nicola
Hello, I can't figure out how to match a pattern with the following structure: ; 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 vi

Re: vim & ctags: how to jump to the definition in new window

2016-09-28 Thread Nicola
antly solved your own problem, so this may be a bit late, but… using the commands and mappings described in :h preview-window might get you close to your workflow. Off the top of my head, assuming you start from a single window: :ptag or } or g} (to open a tag in the preview window) (to exchange w

Re: Insert numbers after specific strings

2010-12-04 Thread Nicola Paolucci
Hi Ada, You can record a macro using the q command and use ctrl-a to increment numbers. I think this tutorial might help you do what you ask: http://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-how-to-record-and-play/ Cheers, Nick On Sat, Dec 4, 2010 at 6:42 PM, Ada wrote: > > >

Re: Insert numbers after specific strings

2010-12-04 Thread Nicola Paolucci
On Sat, Dec 4, 2010 at 8:30 PM, Nicola Paolucci wrote: > Hi Ada, > > You can record a macro using the q command and use ctrl-a to increment > numbers. > > I think this tutorial might help you do what you ask: > http://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-h