« first day (11 days earlier)      last day (3661 days later) » 

13:46
0
Q: What's the point of using OS tags?

kenorbWhat's the point of using OS dependend tags such as microsoft-windows, unix and linux? It seems that OS-dependent editors (such as gVim/MacVim) interface related questions are off-topic (this one sounds like it's too, as it ask for X11 integration) which leaves as with plain only vi/vim and the ...

 
9 hours later…
22:48
OK. Sorry for nagging on this, but still. My possible "answer" on how to raise current instance holding swap is a hackish and pure "non-vim", as in it is using xxd and some (bad?) bash routines to parse the swap file and raise GUI by PID found in swap. My question is if that is a suitable post for this site. (Feels more like U&L – but perhaps not.)
Are solutions to questions that rely purely on scripting in other tools considered a good fit? I.e. a bash script to raise a GUI?
That said, I have a also had a addition to the script that look at parent pid until it finds one being a terminal emulator, and raises that one. That is even more hackish and linux only relying on proc file system.
23:05
Question about viminfo. As I from time to time run vim with -u NONE the viminfo file get messed up as I have a rather huge storage of history etc. To resolve this I have ~/.viminfo_real in my viminfo line of the vimrc. Is this food for a good question, or have I missed something about the viminfo workings? Or, is it perhaps to obvious?
I have set viminfo='10000,/10000,:10000,\"10000,@10000,f1,s1000,n~/.viminfo_real
Can you link to your question?
@Carpetsmoker: for the last one I have not asked yet. Only airing.
Ah, okay
Your viminfo questions obviously seems on-topic? Why should it not be?
I'm not quite sure about your " current instance holding swap", and what you mean with that, but it seems to be about Vim ... ?
(didn't someone ask a question about that?)
I did ;)
I have been away on a trip setting up some accounting systems etc. Hoped I got some time to spend on vi.stackexchange.com this week.
9
Q: Raise window holding swap file

SukminderFrom time to time while working on multiple projects, and / or what ever, it leaves me with (too) many Vim instances open – as happens, I open a file which already is opened elsewhere, leaving me with the option of: [O]pen Read-only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort Is there some buil...

I didn't quite understand the question when I first saw it, and it seems to have a decent answer (? ... It has +3/-0 votes, anyway)
23:13
Yes, was not sure about asking it, but then my ideas about what to ask was already asked by the time I got around to do "one" :P
When opening a file that is already open, you can to bring that window to the front, instead of just opening it, I thinl?
*think
Can't you just use the remote server for that?
Check if server has buffer with the name -> if so, raise, else, open
3
A: Is it possible to use vim's clientserver functionality to keep settings synchronized?

CarpetsmokerYou can tell a Vim server to reload the vimrc file like so: $ vim --servername MARTIN --remote-send '<Esc>:source $MYVIMRC<CR>' And you can get a list of all servers with: $ vim --serverlist MARTIN CARPETSMOKER Which can be combined with a for loop: $ for s in $(vim --serverlist); do vim ...

Have tried with remote server, but the issue is that for one: I do not know how to list which instance hold the swap (server) - secondly if one open it with --remote, sometimes it works, other times it simply tries to open it in a different server then the one holding it ...
You can get a list of all instances with ` vim --serverlist`
And then loop (like in the answer I linked)
Yes, but the "serverlist" does not list files. (But perhaps by loop, I'll look at the linked answer)
"other times it simply tries to open it in a different server then the one holding it" ... Hmm, that's strange ... Are you sure you passed the correct --servername?
No, you need to use vim --servername MARTIN --remote-send TODO to check this ... Not sure that TODO should be yet, but I'm fairly sure this should be possible
23:17
No, it is the "--remote <files> Edit <files> in a Vim server if possible"
As I do not know which server holds the file.
hm?
Yes, that's why you first loop over all servers
Check if any have the buffer with this file
And if that fails, then you can use a server to open the file, or start a new Vim instance (whatever you want)
By --remote-send +?
I think you want --remote-expr:
   --remote-expr {expr}
               Connect  to  a  Vim server, evaluate {expr} in it and print
               the result on stdout.
In this case
Yes, read somewhere that it was somewhat unstable to use "expr". IIRC I have tried that before, but it is somewhat long ago. Perhaps I'm remembering incorrectly.
Have to look into it.
I think you can use this for what you want, but I'm not 100% sure ... I don't have time to investigate right now
23:24
I only recall I tried with doing a remote ls etc. and and had some trouble with it, this ended up prarsing the swap file ...
Hm .. Okay ... I never used the remove server much, so there may be limitations I'm unaware of
I have been using vim for years, but see myself as a novice none the less.
My biggest issue is perhaps many years using TextPad as main editor (on Windows) then going vim and bringing my TextPad way of working with me in to it ...
TextPad -> pico -> vim :P with quite a bit Visual Studio into the mix.
hm, I've never used pico. Am I missing out on anything?
user4704
No.
user4704
:D
23:38
lol
pico (or nano) isn't 1/1000 as powerfull as vim. I see them as an easy terminal alternative for those who don't know how to use vim and still need to edit some files via terminal
23:59
I've heard about this OpenBSD dev who uses ed as his main editor ... Not sure if it's actually true though, but it would not surprise me...

« first day (11 days earlier)      last day (3661 days later) »