Page 2 of 4

Re: tips and tricks for everything but emacs

Posted: Fri Apr 10, 2015 6:15 am
by nova
Excellent Bayberry.

Re: tips and tricks for everything but emacs

Posted: Fri Apr 10, 2015 7:12 am
by wuxmedia
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.

Re: tips and tricks for everything but emacs

Posted: Fri Apr 10, 2015 9:37 am
by wuxmedia
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?

Re: tips and tricks for everything but emacs

Posted: Fri Apr 10, 2015 11:18 am
by dkeg
Somewhat similar I guess. I set term to use vim keybinds. Change your .inputrc

Re: tips and tricks for everything but emacs

Posted: Thu Apr 23, 2015 7:57 am
by kexolino
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.

Re: tips and tricks for everything but emacs

Posted: Sun May 24, 2015 4:28 pm
by stark

Re: tips and tricks for everything but emacs

Posted: Sun May 31, 2015 12:31 am
by dkeg
I never saw this ... Cool. I'm going to check this out tonight.

Re: tips and tricks for everything but emacs

Posted: Fri Jun 05, 2015 12:10 pm
by wuxmedia
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.

Re: tips and tricks for everything but emacs

Posted: Fri Jun 05, 2015 12:16 pm
by wuxmedia
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

Re: tips and tricks for everything but emacs

Posted: Tue Jun 16, 2015 1:56 am
by liknites
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

Re: tips and tricks for everything but emacs

Posted: Tue Jun 16, 2015 9:13 am
by wuxmedia
cool, but it doesn't write back changes :( now that would be fun...

Re: tips and tricks for everything but emacs

Posted: Tue Jun 16, 2015 9:43 am
by ivanovnegro
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.

Re: tips and tricks for everything but emacs

Posted: Tue Jun 16, 2015 11:56 am
by wuxmedia
took me long enough, but someone showed me:

Code: Select all

dG
clears from top to bottom, obvious really.

Re: tips and tricks for everything but emacs

Posted: Mon Jun 29, 2015 1:58 pm
by stark

Re: tips and tricks for everything but emacs

Posted: Mon Jun 29, 2015 2:47 pm
by simgin
^ nice share mate :)

Re: tips and tricks for everything but emacs

Posted: Tue Jun 30, 2015 7:10 am
by stark
dired on a diet for vim:
https://github.com/justinmk/vim-dirvish

/tries to create vimacs

Re: tips and tricks for everything but emacs

Posted: Tue Jun 30, 2015 11:04 am
by dkeg
^^^ Junegunn is like a super hero. I've been following and using his stuff for quite some time. Good share stark.

Re: tips and tricks for everything but emacs

Posted: Sat Jul 11, 2015 4:17 pm
by stark
^ 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

Re: tips and tricks for everything but emacs

Posted: Sat Jul 11, 2015 4:55 pm
by ChefIronBelly
^ Gold in them there hills.

Re: tips and tricks for everything but emacs

Posted: Sat Jul 11, 2015 10:04 pm
by simgin
^^ Fantastic Stark :D