:set sidescroll=1
Credit: In vim, how to scroll horizontally, by just one character, when cursor reaches end of the window? [duplicate]
Thanks @iporsut for triggered my curiosity
Friday, March 27, 2015
Set bash completion when aliasing docker to d
After you installed docker bash completion, either by sourcing it from your .bash_profile or installing it to bash-completion, add this line to the end of your docker-completion.sh file.
Note: change the last d to other character you aliased docker to
complete -F _docker dReload your shell. And that's it!
Note: change the last d to other character you aliased docker to
Thursday, March 12, 2015
[VIM] Move screen before cursor reaching top or bottom
It's interesting that I didn't realize I had been living without this feature for years as a vim user. Thanks to @tenderlove and @searls for publishing their vim setup session video. In the beginning of this video, @tenderlove adds set scrolloff=2 to vimrc. scrolloff is a good config that everyone who's using vim should have in their vimrc.
What it does is to tell vim to move screen before cursor reaching 2 top or bottom lines (2 is an arbitrary number). Give it a try. I bet you'll like it.
I went observe on JetBrains' IDE, they are configured to behave the same with setting scrolloff=1 on vim.
What it does is to tell vim to move screen before cursor reaching 2 top or bottom lines (2 is an arbitrary number). Give it a try. I bet you'll like it.
I went observe on JetBrains' IDE, they are configured to behave the same with setting scrolloff=1 on vim.
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
Put your cursor on the text box of the post/comment you want to indent Go to the menubar at the top of the screen Edit > Emoji & ...
-
I ran to this error the other day when I tried to export a dump file from a slave Postgres database. cpg_dump: Dumping the contents of ta...