tips and tricks for everything but emacs
Forum rules
Share your brain ;)
Share your brain ;)
Re: tips and tricks for everything but emacs
Excellent Bayberry.
difficile est saturam non scribere. nam quis iniquae
tam patiens urbis, tam ferreus, ut teneat se...
tam patiens urbis, tam ferreus, ut teneat se...
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: tips and tricks for everything but emacs
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.
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.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: tips and tricks for everything but emacs
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?
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
Somewhat similar I guess. I set term to use vim keybinds. Change your .inputrc
Work hard; Complain less
Re: tips and tricks for everything but emacs
Another one for vim; you can set multiple filetypes in one file, like so:
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.
Code: Select all
:set filetype=html.css.php
Re: tips and tricks for everything but emacs
Hacker news in vim:
https://github.com/ryanss/vim-hackernews
https://github.com/ryanss/vim-hackernews
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
Re: tips and tricks for everything but emacs
I never saw this ... Cool. I'm going to check this out tonight.
Work hard; Complain less
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: tips and tricks for everything but emacs
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.
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.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: tips and tricks for everything but emacs
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
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
two vim tricks I learnt today:
need to style a long line of text into a sensible (>80 char) paragraph?
So, not only can vim edit files remotely itself, it will also pull the source code of a webpage for you:
:o
need to style a long line of text into a sensible (>80 char) paragraph?
Code: Select all
gq
Code: Select all
vim http://linuxbbq.org/
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: tips and tricks for everything but emacs
cool, but it doesn't write back changes :( now that would be fun...
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: tips and tricks for everything but emacs
How cool is that.liknites wrote:
So, not only can vim edit files remotely itself, it will also pull the source code of a webpage for you:
:oCode: Select all
vim http://linuxbbq.org/
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: tips and tricks for everything but emacs
took me long enough, but someone showed me:
clears from top to bottom, obvious really.
Code: Select all
dG
Re: tips and tricks for everything but emacs
As the description says, View and grep man pages in vim:
https://github.com/bruno-/vim-man
Recently switched to, plug. it's superfast !
https://github.com/junegunn/vim-plug
Random:
https://github.com/junegunn/goyo.vim
https://github.com/junegunn/goyo.vim/wi ... on#zoomwin
https://github.com/junegunn/limelight.vim
https://github.com/bruno-/vim-man
Recently switched to, plug. it's superfast !
https://github.com/junegunn/vim-plug
Random:
https://github.com/junegunn/goyo.vim
https://github.com/junegunn/goyo.vim/wi ... on#zoomwin
https://github.com/junegunn/limelight.vim
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
Re: tips and tricks for everything but emacs
^ nice share mate :)
Someone told me that I am delusional, I almost fell off my unicorn.
Re: tips and tricks for everything but emacs
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
Re: tips and tricks for everything but emacs
^^^ 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
Re: tips and tricks for everything but emacs
^ 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
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
- ChefIronBelly
- Approved BBQer
- Posts: 1044
- Joined: Mon Jan 13, 2014 6:01 am
- Location: Michigan
Re: tips and tricks for everything but emacs
^ Gold in them there hills.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]
Re: tips and tricks for everything but emacs
^^ Fantastic Stark :D
Someone told me that I am delusional, I almost fell off my unicorn.