mercutio: oh mine says that by default
i know what mode i'm in anyway
oh vim experts, does anyone know how to cut and paste code from elsewhere into vim without using "set noai"
and then changing back to "set ai"
mike-burns: mercutio: pastetoggle.
mercutio: i've been googling
and running around in circles not getting anywhere
mike-burns: There's also a clever plugin that I cannot find right now.
mercutio: some things say you can toggle with F2 or such
but i use F2 to open a new terminal
mike-burns: > googling
:h 'pastetoggle'
:set pastetoggle=<F9> " press F9 before pasting, press it again after.
mercutio: hmm
yeah that works
i'd rather it be automagic
-: mercutio adds it to vimrc anyway
mike-burns: There's a plugin that will detect clipboard start/end codes and automatically pastetoggle for you, but I can't find it now.
https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode - this.
mercutio: woot it works!
i tried it on itself
thanks so much
it had been bugging me for years
so nice!
up_the_irons: holy. fuck.
BryceBot: That's what she said!!
up_the_irons: hahahaa
that's awesome
I always manually did it with F11
mnathani_: traceroute6 2001:550:0:1000::9a18:231d doesn't work on devio.us I guess its not connected to the entire IPv6 Internet, rather just the He.net connected subset
brycec: Not sure I understand
BryceBot: That's what she said!!
brycec: What do you mean it doesn't work?
Like, at all?
the command dies etc?
fwiw I can't traceroute that from my home connection
Oh, HE won't route to Cogent, is that what's happening?
*HE IPv6 tunnels
***: dwarren has quit IRC (Read error: Connection reset by peer)
dwarren has joined #arpnetworks
hive-mind has quit IRC (Ping timeout: 265 seconds)
jpalmer has quit IRC (Ping timeout: 265 seconds)
jpalmer has joined #arpnetworks
hive-mind has joined #arpnetworks
dj_goku has joined #arpnetworks
lteo_ has joined #arpnetworks
meingtsil has joined #arpnetworks
hive-mind has quit IRC (Disconnected by services)
hive-mind has joined #arpnetworks
grody has joined #arpnetworks
toddf has joined #arpnetworks
ChanServ sets mode: +o toddf
hycer- has joined #arpnetworks
jpalmer has quit IRC (*.net *.split)
ydorg has quit IRC (*.net *.split)
joepie91_ has quit IRC (*.net *.split)
toddf_ has quit IRC (*.net *.split)
meingtsla has quit IRC (*.net *.split)
dj_goku_ has quit IRC (*.net *.split)
hycer has quit IRC (*.net *.split)
trobotham-cloud has quit IRC (*.net *.split)
lteo has quit IRC (*.net *.split)
meingtsil is now known as meingtsla
joepie91_ has joined #arpnetworks
jpalmer has joined #arpnetworks
trobotham-cloud has joined #arpnetworks
hycer- is now known as hycer
milki_ is now known as milki
mnathani_: yea he.net / cogent ipv6 connectivity
meingtsla: What connectivity? :)
(Yeah, I realize that's exactly your point)
brycec: How come, any idea? Can't say as I've noticed any loss of ipv6 websites due to it...
wow, seems to be a loooong running peering dispte, google results back to 2009
http://www.datacenterknowledge.com/archives/2009/10/22/peering-disputes-migrate-to-ipv6/ lol
mercutio: so with cogent doing that what's to stop people going further?
like cogent could block russia because they don't like russians (say)
cogent customers should make lots of noise about it, but that's about all that can happen?
brycec: I'm surprised it's gone on as long as it has. I guess most customers/ISPs work around it with multiple peerings.
If they didn't have that option, then everybody would (logically) abandon Cogent.
But nobody does that, they just keep living with their redundant multiple peerings and work around the issues.
(or never even realize there's an issue, like me)_
***: mnathani_ has quit IRC (Ping timeout: 250 seconds)
mnathani_ has joined #arpnetworks
mercutio: whenever i check ebay tracking history they seem to send me an e-mail with updates.
i suspect it triggers updates when you look at it
i've heard multiple times that cogent is better than it used to be.
but i have my doubts/suspicions. "better" might just mean cheaper.
brycec: I've been hearing that too, specifically better quality links. But in light of this pathetic feud, they're back on my shit list.
mnathani_: I wonder if they include that in contracts; ie he.net connects to the IPv6 internet except for cogent and its single homed customers and vice versa
mercutio: i don't think it belongs in contracts
brycec: More likely contracts state "we'll connect you to our peers" nice and generic
Can't be updating thousands of contacts every time they add or remove peers
mnathani_: removing a peer is fine as long as they have transit to reach said peer
this he.net issue creates ipv6 islands
mercutio: mnathani_: things can fall back on ipv4 though
you can't actually be single homed on ipv6 yet and expect the internet to work normally
mnathani_: as both providers are striving to attain tier 1 status
mercutio: like google has ipv6 - but they don't have ipv6 name servers
mnathani_: I guess you can as long as that single homed network is neither he.net nor cogent
mercutio: google's name servers aren't even close to here.
it's a constant rather than random thing
so if you want to ssh to someone with ipv6 on cogent from he.net tunnel you can't.
like to get to individual servers.
that's one of the ipv6 use cases i hear the most atm that actually matters.
i mean having web sites and e-mail and so on with dual stack doesn't actually require ipv6..
there are things like ipv6 reducing cgnat, .. with some mobile providers moving to cgnat to free up ip address space.
but again if you can't reach ipv6 destination then it'll just fallback
mnathani_: 464xlat seems promising for mobile as well
mercutio: apparently nat is very common in china
mnathani_: rather 646xlat?
mercutio: which explains how APNIC can get away with having so little IP's for so much population
***: lteo_ is now known as lteo
brycec: They do, actually 2001:4860:4860::8888 and 8844 https://developers.google.com/speed/public-dns/docs/using?hl=en 14:04:01 mercutio | like google has ipv6 - but they don't have ipv6 name servers
mercutio: i mean for authorative
mnathani_: I think they have not yet worked out geolocation databases using IPv6 as yet
mercutio: ahh mnathani_
mnathani_: also a lot of broken IPv6 configs out there
brycec: That's the fun thing about tunelled ipv6 and geolcation - Google assumes I'm in the city of my POP and not 5 hours east.
mercutio: google picks up my location from my phone
and shares it with desktop chrome
so it knows not only the city i'm in but suburb.
mnathani_: does your phone use IPv6 though?
brycec: Mine does :)
mnathani_: from the carrier, as in native/
?
or wifi tunnel
brycec: my home wifi
though I know of US carriers that have native/network ipv6
(just not AT&T)
mnathani_: T-Mobile I believe
mercutio: mnathani_: my phone would but i don't use ipv6 at home
and mobile doesn't do ipv6 here yet
doesn't android have buggy ipv6 support?
***: DaCa has quit IRC (Quit: WeeChat 1.0)
mnathani_: mercutio: what was that copy paste / vim thing from earlier?
brycec: 2015-10-23 00:47:13 @mike-burns There's a plugin that will detect clipboard start/end codes and automatically pastetoggle for you, but I can't find it now.
2015-10-23 00:47:46 @mike-burns https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode - this.
mnathani_: I read that, but couldn't make out what it did
also this didn't make sense: [04:48] <@up_the_irons> I always manually did it with F11
-: brycec shrugs
mercutio: i can pastebin my .vimrc snippet
mnathani_: sure
brycec: I can look up logs, but I don't speak Vim beyond the very basics (insert/replace-one/replace-many/write/quit etc)
(I can do a little bit more than those too, but you get the idea)
mercutio: http://pastebin.com/CbaZViEp
just append that to your vimrc
mnathani_: I guess I should start at the top : what problem is this trying to solve?
mercutio: do you use set ai?
mnathani_: dont think so
mercutio: then it may not help you so much :)
in vim type :set ai
then do tab some text
and press enter
and see how it stays at the same indentation level.
which is really useful when coding.
or for lots of things in general.
but then you have something like say that vimrc fragment which you want to paste in
and it starts indenting more and more with every line
mnathani_: I see the auto indent
mercutio: so you can do ":set noai" and paste, and then do ":set ai" again
but that's a pita
so that vimrc snippet means whenever you paste it doesn't autoindent.
but your normal text can continue to be indented.
mnathani_: ok, I think I get it
mercutio: it's bugged me so many times
mnathani_: but what text are you copying and pasting from I mean what program
is it another vim instance?
mercutio: that when people were talking about things to do in vim i was keen if anyone knew how to fix it.
any program
like that pastebin web site
mnathani_: has to be text based though?
mercutio: if you want to cut and paste the vimrc snippet into your vimrc
it'll auto indent crazy like normally
well yeah vim is for text
mnathani_: can you copy from gui to textbased vim and still expect that behavior?
mercutio: from chrome and pastebin sure
but you have to copy text in not images :)
mnathani_: ofcourse
mercutio: it's like magic :)
i love it so much
the other thing i love is when i found a way to do shared persitent history for zsh shells.
persistent
it really sucks when you have more than one shell open and you lose blobs of history
mnathani_: is there a bash equivalent to that?
mercutio: not that i know of
but i haven't used bash in a very long time
don't really see the point in using bash when zsh is available
but zsh vs bash is kind of like vim vs emacs i suppose
mnathani_: I havent really tried zsh
bash is usually set as default on linux
mercutio: zsh is smaller binary than bash, freeer license, better programmable completion, and lots of cool things you can do with it easily
zsh comes with osx by default
and is readily available.
if using ubuntu zsh will complete apt-get install <package name> by default.
whereas bash wouldn't by default last i knew
that's one of the easiest most visible ways to see the improved completion
you can also complete things like scp :)
although you need to use keys for that to work
err things like remote files with scp
so you can do scp server:somefile<tab> and complete to .tar.gz or whatever
mnathani_: does it open a connection in the background?
mercutio: yeah
mnathani_: cool
mercutio: it's really quick to close servers.
but really slow to far away ones :)
mnathani_: does zsh have to be set on remote and local server
?
mercutio: nope
just locally
you can just type zsh too
without changing your default shell
if you want to play
-: brycec <3 the grml zsh config
brycec: And speaking of ssh/scp completion - it will complete hostnames from your ssh_config and known_hosts
https://grml.org/zsh/ so many perfect defaults IMO :) And it's what ArchLinux uses in the install iso, and have a package 'grml-zsh-config' too
It's how I got hooked on zsh. I'd been wanting to try it for awhile, and gave bare zsh a shot but was relatively "meh" on it. Then I was installing Arch one day and discovered that the shell was zsh and it looked nice and did nice things... And here I am now, devout zsh user 80% of the time.
mercutio: i haven't done much config on mine
"prompt -p" is pretty cool
it's like thre are a few default prompt styles you can choose easily
i'm using "clint"
brycec: Mine's pretty much stock :D I have a .zshrc.pre with> [ "x${TERM:0:6}" = "xscreen" ] && NOPRECMD=1 < which makes my tmux life easier. And .zshrc that sets my HISTFILE/SIZE, bindkey -e, and the three lines to load the completion stuff.
mercutio: which isn't ideal, but "good enough"
brycec: lol I'd forgotten all about prompt
I'm using, unsurprisingly, grml theme
mercutio: heh i was just looking through it and bumped my history size up from 12,000 to 25,000
brycec: (grml-chroot)
mercutio: zsh will also tell you when you're in a git repo etc
brycec: I love zsh's history - shared between instances, and I can just start typing then up-arrow to complete from my history
mercutio: and which branch you're following
brycec: Yes! Love that (and svn and cvs and hg...) Totally necessary for me to keep track of where I am and what I'm doing.
clint theme is spiffy, but way too much. I had a two-line prompt in bash for a long time, and I'm enjoying being back to a single useful line. I don't need the current pty or version info...
mercutio: yeah i don't need that either
-: brycec is tempted by the fade/fire themes though, they're so pretty... but too big.
mercutio: but having the date, time, hostname is useful
and having a separate line from that stuff to having my commands.
like i said it's not ideal, but it's sufficient. and the colours don't bug me
brycec: gotta have the hostname. time/date, my wm or tmux take care of (though I sometimes miss knowing what time I started a command running - zsh does display the `time` after long running processes at least)
mercutio: yeah for me i like to see when commands were
brycec: I like having my prompt go red if I'm root, that was something I first saw in Gentoo's default bashrc and I've carried it forward since then.
mercutio: when i went from 1440p to 4k i went down in time size in wm
doesn't bother me :)
nothing else really got samller
smaller
hmm so i don't need pts, linux version, arch etc, zsh versino
and the histoy line number could move to that line
i don't need zsh/2 either
i wonder what that is
maybe i should try and figure out how to do prompts :)
is anyone here using redshift?
mnathani_: is command line options completion a feature of zsh?
mercutio: mnathani_: yes
brycec: mnathani_: yes!!
mercutio: it doesn't do everything though
brycec: mercutio: I used to use redshift, but meh
mercutio: brycec: got annoying?
mnathani_: bash: zsh: command not found
brycec: http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html have fun with your $PROMPT and $RPROMPT
mercutio: mnathani_: ubuntu?
apt-get install zsh
brycec: mercutio: kinda. Didn't really benefit me.
mercutio: i find it nice.
mnathani_: centos, figured yum install zsh
mercutio: but i use subtle settings.
oh centos is a bitch
but it's somewhere i think
centos had bash1 for ages
even if it has zsh it's probably old :)
mnathani_: not sure how old it is zsh: 4.3.11-4.el6.centos
mercutio: oh new version of zsh added cut and paste thing so if you paste something into zsh it won't run it until you press enter
brycec: 5.1.1 is current
mercutio: yeah i'm using 5.1.1
that's what version added the cut+paste thing
but yeah old versions are still fine
mnathani_: [root@compaq ~]# zsh
[root@compaq]~# echo $SHELL
> /bin/bash
do I need to log out and log back in?
mercutio: nope
it probably isn't setting SHELL
mnathani_: I am in tmux though
mercutio: because it's not a login shell
try zsh -l
mnathani_: ok makes sense I guess
mercutio: err
it's sudo that has -l isn't it
mnathani_: no output for zsh -l
mercutio: try "prompt -p"
inside zsh
mnathani_: zsh: command not found: prompt
mercutio: see
you're in zsh
autoload -U promptinit
promptinit
prompt -p
mnathani_: how do I get the command line options for ls though
mercutio: bah you need a .zshrc :)
makes it easier :)
it should offer to help you
when you first login
maybe centos doesn't do that
trobotham: oh-my-zsh
:P
mercutio: sounds good
ohmyz.sh
trobotham: ya
it is awesome
mnathani_: I have a freebsd vm here as well with zsh
mercutio: freebsd will have old zsh too
probably 5.0.7?
mnathani_: zsh 5.1.1 (amd64-portbld-freebsd10.1
mercutio: or do i need to update :)
oh hmm
woot
the cut+paste thing is cool
from someone who's accidentally run something cut+pasted before
but not any time recently
i used to type echo and cut and paste :)
trobotham: going to be a long night ;[22:35] <mercutio> this blinks theme seems ok
ya, I use bira myself
mercutio: ok i gone back to my normal one already heh
but yeah it gives a nice starting point
mnathani_: what'd you think?
mnathani_: I tried the command line option completion and its not working
need to research zsh features some more
mercutio: did you try oh-my-zsh
brycec: (or grml for that matter)
mnathani_: grml worked for completion
brycec: Cool :)