tips and tricks for everything but emacs

Forum rules
Share your brain ;)
User avatar
nova
applies for custom title
Posts: 49
Joined: Tue Dec 09, 2014 6:55 pm
Location: Planet 892-IV

Re: tips and tricks for everything but emacs

Unread post by nova » Fri Apr 10, 2015 6:15 am

Excellent Bayberry.
difficile est saturam non scribere. nam quis iniquae
tam patiens urbis, tam ferreus, ut teneat se...

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: tips and tricks for everything but emacs

Unread post by wuxmedia » Fri Apr 10, 2015 7:12 am

Ahh yes, I've come across this by accidentally trying to vim a dir instead of a file.
I assumed it was literally reading the dir file, Nice that it has more that, very handy when in a dir with a bunch of configs.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: tips and tricks for everything but emacs

Unread post by wuxmedia » Fri Apr 10, 2015 9:37 am

sort of belongs in cli tricks, but this is amazing:
http://www.skorks.com/2009/09/bash-shor ... ductivity/

and the comments as well.
Getting used to moving with alt + b, and a few more.

Although thinking about making it vim like, didn't dkeg, or someone equally as cool use that for bit, how did that work out if you did?
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: tips and tricks for everything but emacs

Unread post by dkeg » Fri Apr 10, 2015 11:18 am

Somewhat similar I guess. I set term to use vim keybinds. Change your .inputrc

Work hard; Complain less

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: tips and tricks for everything but emacs

Unread post by kexolino » Thu Apr 23, 2015 7:57 am

Another one for vim; you can set multiple filetypes in one file, like so:

Code: Select all

:set filetype=html.css.php
This is useful if you use that Snipmate plugin, because then all the snippets needed in that one file are available to you. Of course it's probably best if you have all that PHP, CSS, JavaScript and whatever stuff in different files, but sometimes this can be useful.

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: tips and tricks for everything but emacs

Unread post by stark » Sun May 24, 2015 4:28 pm

If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: tips and tricks for everything but emacs

Unread post by dkeg » Sun May 31, 2015 12:31 am

I never saw this ... Cool. I'm going to check this out tonight.

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: tips and tricks for everything but emacs

Unread post by wuxmedia » Fri Jun 05, 2015 12:10 pm

http://superuser.com/questions/285381/h ... lette-work

I think I just came.
basically you can (if you have one) use a 256 colour palette to config tmux colours, instead of boring 'black' and 'red'. only downside (for me) is diff terms have different iterations of colours for some reason.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: tips and tricks for everything but emacs

Unread post by wuxmedia » Fri Jun 05, 2015 12:16 pm

Oh - typical - tmux 2 (on sid) uses hex codes anyway, so terminal agnostic.
Only useful for the older machines then. :(

Oh 2.0 supports "color" instead of just "colour" - that's handy (as most 2nd language people learn American English) :p
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
liknites
Oyster-Slurper
Posts: 26
Joined: Fri Jun 05, 2015 1:31 am
Location: Nouvelle France

Re: tips and tricks for everything but emacs

Unread post by liknites » Tue Jun 16, 2015 1:56 am

two vim tricks I learnt today:

need to style a long line of text into a sensible (>80 char) paragraph?

Code: Select all

gq
So, not only can vim edit files remotely itself, it will also pull the source code of a webpage for you:

Code: Select all

vim http://linuxbbq.org/
:o

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: tips and tricks for everything but emacs

Unread post by wuxmedia » Tue Jun 16, 2015 9:13 am

cool, but it doesn't write back changes :( now that would be fun...
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: tips and tricks for everything but emacs

Unread post by ivanovnegro » Tue Jun 16, 2015 9:43 am

liknites wrote:
So, not only can vim edit files remotely itself, it will also pull the source code of a webpage for you:

Code: Select all

vim http://linuxbbq.org/
:o
How cool is that.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: tips and tricks for everything but emacs

Unread post by wuxmedia » Tue Jun 16, 2015 11:56 am

took me long enough, but someone showed me:

Code: Select all

dG
clears from top to bottom, obvious really.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: tips and tricks for everything but emacs

Unread post by stark » Mon Jun 29, 2015 1:58 pm

If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

User avatar
simgin
Meme Fodder
Posts: 1167
Joined: Sun Jan 06, 2013 12:07 am
Location: Bradford-on-Avon, UK

Re: tips and tricks for everything but emacs

Unread post by simgin » Mon Jun 29, 2015 2:47 pm

^ nice share mate :)
Someone told me that I am delusional, I almost fell off my unicorn.

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: tips and tricks for everything but emacs

Unread post by stark » Tue Jun 30, 2015 7:10 am

dired on a diet for vim:
https://github.com/justinmk/vim-dirvish

/tries to create vimacs
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: tips and tricks for everything but emacs

Unread post by dkeg » Tue Jun 30, 2015 11:04 am

^^^ Junegunn is like a super hero. I've been following and using his stuff for quite some time. Good share stark.

Work hard; Complain less

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: tips and tricks for everything but emacs

Unread post by stark » Sat Jul 11, 2015 4:17 pm

^ Yep he sure is one of Gods that lives along side Our lord Pope.

The Ultimate Vim Distribution:
http://vim.spf13.com/
https://github.com/spf13/spf13-vim
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

User avatar
ChefIronBelly
Approved BBQer
Posts: 1044
Joined: Mon Jan 13, 2014 6:01 am
Location: Michigan

Re: tips and tricks for everything but emacs

Unread post by ChefIronBelly » Sat Jul 11, 2015 4:55 pm

^ Gold in them there hills.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]

User avatar
simgin
Meme Fodder
Posts: 1167
Joined: Sun Jan 06, 2013 12:07 am
Location: Bradford-on-Avon, UK

Re: tips and tricks for everything but emacs

Unread post by simgin » Sat Jul 11, 2015 10:04 pm

^^ Fantastic Stark :D
Someone told me that I am delusional, I almost fell off my unicorn.

Post Reply