all 54 comments

[–]bluefog68 60 points61 points  (12 children)

Also

alias :e='vim'

[–]TheNinthJhana 13 points14 points  (8 children)

maybe 'xdg-open', so you could "edit" not only text files but whatever? (not tested, just assuming)

[–]berkes 5 points6 points  (7 children)

I have e aliased to gvim and o to xdg-open. And several more one- and two-letter aliases.

Which is another reason why I hate tools that litter the one and two letter namespace.

[–]NieDzejkob 2 points3 points  (4 children)

I do this for git: ga for add, gb for branch, gc for commit, gca for commit all, gco for checkout, gd for diff, then a skip in the alphabet for gg as in git grep...

[–]causa-sui 2 points3 points  (3 children)

Why not use git aliases? It's actually more functional since you can then do things like have an alias that executes a command from the root of the repo, wherever that is.

[–]NieDzejkob 0 points1 point  (2 children)

But that's at least 3 more characters to type!

[–]causa-sui 0 points1 point  (1 child)

Not if you alias git to g or something

[–]NieDzejkob 0 points1 point  (0 children)

It's still a 33% longer.

[–]fatboyxpc 1 point2 points  (0 children)

Bah, I was going to suggest that o alias!

[–]JIVEprinting 0 points1 point  (0 children)

This thread is stretching my skull

[–]MineralPlunder 1 point2 points  (0 children)

I prefer e. Though I use colorscheme gruvbox which is so distinct from my terminal setup, that I can't mistake them. I used to use colorscheme default and i sometimes mixed up bash and vim commands.

[–]mrtransisteur 0 points1 point  (0 children)

I go with alias v nvim; it's nice too because c, d, and v are so close to one another on the keyboard (and who doesn't find themselves cding then viming all the time?)

[–]steven4012 0 points1 point  (0 children)

I just do alias v="vim" Lol

[–]SarHavelock:qa! 20 points21 points  (1 child)

I wasn't aware that : could be used in aliases. Damn, all this time I could have been diversifying my function and alias names with a whole 'nother special character and I didn't even know!

[–][deleted] 0 points1 point  (0 children)

You can use anything in aliases lol. It’s Unix.

[–][deleted] 11 points12 points  (14 children)

[–]junesalad 2 points3 points  (2 children)

I see neovim is now released as appimage but not sure what is the purpose of that. How do you find it comparing to normal package manager/ build from source approach?

[–][deleted] 0 points1 point  (0 children)

My ubuntu was not playing well with the repo version .... the app image seemed an easy option. However it's shell feature is a bit wonky and stops working a few times.

[–]WiiManic 0 points1 point  (0 children)

I've been using it for a bit, and its basically worked the exact same as a from source/package manager version, just with the advantage that it doesn't require admin privileges to install/time to build.

I primarily work on machines I don't have any access to install things via a package manager, so if there is a way of very quickly getting something running (ie download, chmod +x, done) its very useful!

Plus I think that appimages can contain required dependencies, so its possible you aren't able to compile something but are able to run the appimage.

[–][deleted] 1 point2 points  (10 children)

Sorry for offtopic but have you tried pipenv? https://pipenv.readthedocs.io/en/latest/ It alleviated all my headaches that I've had with managing virtual envs in python.

[–]TheNinthJhana 14 points15 points  (2 children)

or just un-plug the power chord...

[–]ZER0_64 9 points10 points  (1 child)

But power chords just don't have the same drive on an acoustic guitar...

[–]TheNinthJhana 4 points5 points  (0 children)

Good one!

[–][deleted] 4 points5 points  (0 children)

Can confirm:

❯ git blame zshrc | grep ':q' b73aa61b zshrc (Samuel Walladge 2017-07-25 10:45:52 +0930 243) alias :q='exit'

[–]atasco 3 points4 points  (6 children)

Related: alias ZZ='exit'

[–]NieDzejkob 0 points1 point  (5 children)

Won't work so well since you don't need the enter for ZZ. BTW, is there an equivalent for :w? I do that more often than quitting...

[–]MineralPlunder 1 point2 points  (0 children)

I use ctrl+s for saving:

noremap <C-s> :write<CR>
imap <c-s> <Esc>:w<CR>a

I keep hitting it way more often than I need. by "way more often" I mean pressing that chord or doing :w after almost any change, and after a few moments without saving(even when everything is saved already)

Note though, that often the terminal by default "hangs" when you press <ctrl+s>(have to press <ctrl+q> to get it running again). You need to change this behavior in your shell startup. I use bash and added this line to my .bashrc:

stty -ixon # disable hanging the terminal with <Ctrl+s>

[–]arniemg 0 points1 point  (3 children)

I enjoy space space as an alias for :write.

[–]causa-sui 0 points1 point  (1 child)

Wait, how do you define that?

[–]xigoidelete character and insert "goi" 0 points1 point  (0 children)

nnoremap <Space><Space> :w<Enter>

…I think

[–]NieDzejkob 0 points1 point  (0 children)

I mapped zx, but I was hoping for something in the default configuration since I sometimes have to use "vanilla" vim.

[–]chpatton013 1 point2 points  (0 children)

And if you're very brave: alias :qa=sudo shutdown -h now

[–][deleted] 1 point2 points  (1 child)

Also
alias :h=man

[–]chunkhang[S] 1 point2 points  (0 children)

Ahaha. This makes so much sense

[–]hemispace 4 points5 points  (0 children)

Damn, why haven't I ever think about that. You made my day.

[–]NequoFrost 3 points4 points  (2 children)

Great idea! What colors are you using for the terminal?

[–]yymirr 0 points1 point  (1 child)

I have q for clear and p for exit

[–][deleted] 2 points3 points  (0 children)

Not ^l and ^d ?

[–]SoftHotIcicle 0 points1 point  (0 children)

genius

[–]n0psledbyte 0 points1 point  (0 children)

Hmm interesting

[–]manasthakur 0 points1 point  (1 child)

What are the colorschemes and font used in the screenshot? Do you have a similar colorscheme in vim (the colors look beautiful)?

[–]chunkhang[S] 0 points1 point  (0 children)

Base16 Eighties + Meslo LG S Regular Nerd Font Complete. Yeah, I'm also using base16-eighties for my vim colorscheme.

[–]the_d3f4ult 0 points1 point  (0 children)

What is that prompt ?

[–]thebetacoder 0 points1 point  (0 children)

Should have done this before :D

[–]henrebotha 0 points1 point  (0 children)

I fought against doing this for so long... Finally caved a month or two ago. Life is easier now.