Commit graph

230 commits

Author SHA1 Message Date
1e5f932895 [vim] use vertical split for diffs 2018-04-14 22:13:42 +02:00
caa1663507 [vim] add vim-fugitive 2018-04-14 20:52:46 +02:00
62e3c5162a [vim] get rid of vim-bufferline and tagbar
tagbar: haven't used in forever, might as well simplify the setup.
vim-bufferline: the functionality started to annoy me - let's experiment
for a while without it. I can always reactivate it if I miss it...
2018-04-14 20:50:51 +02:00
b61da22c48 [git] replace tabs with whitspace 2018-04-14 20:49:30 +02:00
344bffe19b [vim] align options on tab stop for convenience
No options were changed -> only formatting!
2018-04-14 18:58:11 +02:00
573f7ba5f5 [vim] place viminfo inside .vim/ 2018-04-14 18:55:13 +02:00
d0128c3440 [vim] place vimrc inside .vim/ 2018-04-14 18:46:13 +02:00
c50ce5da67 Install reattach-to-user-namespace during setup 2018-04-08 01:32:53 +02:00
57352cac57 [git] add git-wtf command
Source:

    https://github.com/holman/dotfiles/blob/master/bin/git-wtf
2018-04-08 01:19:06 +02:00
e643a915aa [git] add typical local configurations
The appropriate local configuration can be symlinked to ~/.gitconfig.local.
2018-04-08 01:07:05 +02:00
152fd37f1b Fix quoting in README 2018-04-07 20:22:46 +00:00
712b11e620 [bash] remove newline from PS1
This makes my prompt play a little nicer with python virtual
environments.
2018-04-05 19:29:21 +02:00
e4b1fc02db Add setup script 2018-04-05 19:12:45 +02:00
1880d22747 Update README.md 2018-04-03 22:38:44 +00:00
b0471cc9b1 [vim] add nginx syntax 2018-04-04 00:27:49 +02:00
03bc9ce933 [bash] use red prompt when logged in as root 2018-03-28 17:27:25 +02:00
bdc0179c6d [rc] fix missing file extension 2018-03-28 15:31:33 +02:00
318c2c46ea [tmux] fix immediate exit on Linux
The fix in commit 6bd38b874978e96dc2632abf1c98460e908fa6a6 causes tmux
to exit immediately when running on Linux, since the
reattach-to-user-namespace is specific to MacOS and the binary is
therefore not available on Linux.

More details at:

    http://www.economyofeffort.com/2013/07/29/reattach-to-user-namespace-the-fix-for-your-tmux-in-os-x-woes/
2018-03-28 15:31:33 +02:00
3e64d54317 [bash] improve ls aliases
When the GNU version of `ls` is not installed (e.g. on a new Mac), the
previous alias causes problems because the --group-directories-first
option is not supported and makes `ls` fail. This commit fixes that by
checking which version is installed and creating the alias accordingly.
2018-03-04 18:25:22 +01:00
36ce14439b [bash] fix typo in comment 2018-03-04 18:25:22 +01:00
8d062a87a1 Add SREC file support to vim 2017-11-09 18:25:00 +01:00
2d75272142 Add Swift syntax highlighting to vim 2017-11-09 18:23:41 +01:00
3145a42c1e Don't show scrollbar in mintty
See https://mintty.github.io/mintty.1.html
2017-11-09 18:21:34 +01:00
398dcb66af Ignore .netrwhist
This file is automatically written by vim and doesn't belong in under
source control.

See https://stackoverflow.com/questions/9850360/what-is-netrwhist
2017-11-09 18:19:24 +01:00
06a91393ba Update vim-plug 2017-11-09 18:18:37 +01:00
21021eb96c Fix tmux startup on Cygwin
The clipboard fix was preventing tmux from starting on Cygwin. Removing
the configuration line solves the problem.
2017-06-07 17:20:54 +02:00
55f8b5166f Add README with instructions to get rcm 2017-04-25 15:58:15 +02:00
7c16f687e0 [vim] prevent duplicate bufferline
Without the option:

    let g:bufferline_echo = 0

bufferline will echo the buffer list to the command bar. Since
vim-airline is also in use (and it too displays the buffer list), we get
duplicated information. By setting the above option we get the buffer
list only inside the airline (status line).
2017-02-09 20:01:47 +01:00
613768fe5d [vim] add bufferline plugin 2017-02-05 20:18:35 +01:00
1a7c315689 [vim] remove vim-easy-align plugin
The `tabular` plugin is already required by the `markdown` and appears
to be very powerful. No need to duplicate the functionality with another
plugin.
2017-02-05 20:02:33 +01:00
8e89707405 [vim] remove taskpaper plugin 2017-02-05 20:00:22 +01:00
0061510573 [vim] remove vimux plugin 2017-02-05 19:43:51 +01:00
a4b9f1d288 [vim] use standard Unicode in statusline (airline)
The fonts patched with Powerline symbols are buggy and limited. Using
standard Unicode provides good looks and requires no fiddling with
fonts, which is less headache in terms of portability. If support for
the used Unicode symbols turns out to be too limited, they can be
changed to normal ASCII characters.
2017-02-05 19:36:30 +01:00
0b07964c2f [bash] clean up git prompt remains 2017-02-04 16:48:18 +01:00
2cb7e0fb1e [bash] move configuration to .bashrc
Since now the .bashrc is source from .bash_profile, the end result in
terms of what gets executed is the same. However, it is quicker to type
`vim .bashrc` when changing settings.
2017-02-04 16:41:33 +01:00
c76551c14f [tmux] fix lost access to clipboard
First noticed the issue when pasting from the system clipboard stopped
working in vim (only when running inside a tmux session).

The fix is in the following Stack Overflow answer:

    http://stackoverflow.com/a/40154047

The necessary wrapper used by the fixed is at:

    https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

The wrapper can be installed on the Mac with:

    brew install reattach-to-user-namespace
2017-02-04 16:33:42 +01:00
462153c202 [tmux] Remove status-uft8 - see tmux/tmux#230 2017-02-04 16:33:42 +01:00
9a0d2ce8c2 [bash] remove git prompt
Under Cygwin, the git prompt was causing the shell to be quite slow,
especially in large repositories or LFS repos with large files.
2017-01-27 14:57:32 +01:00
9dc5f0da8b [bash] add --group-directories-first to ls 2017-01-27 14:51:28 +01:00
e2c64a3a8e [vim] update vim-plug (by running :PlugUpgrade)
The command :PlugUpgrade will automatically clone the HEAD on master
from https://github.com/junegunn/vim-plug.git. As of today, the output
of `git describe master` is 0.9.1-45-g5fc9eab.
2017-01-27 14:44:21 +01:00
1ac8dcb310 [git] add git LFS 2017-01-27 14:44:20 +01:00
a41d873e85 [bash] Add alias for -h option of ls 2017-01-27 14:26:25 +01:00
1fd8816784 [bash] add user & host to prompt string
The color of the user and host changes when the session takes place over
SSH. This makes it easier to identify to which machine a terminal is
connected.
2016-07-19 12:22:27 +02:00
43de18855f [bash] fix typo in comment 2016-07-19 12:22:03 +02:00
d10d614865 [vim] load NERDTree on-demand
Since NERDTree executes almost 20 scripts upon initialization, load it
only on demand, i.e. when the tree is actually toggled for the first
time.
2016-03-30 00:57:21 +02:00
f8734b4a3a [vim] disable execution of modelines
Modelines can be quite annoying or even dangerous, even though the
commands that can be executed int them are limited. If the settings from
a modeline are actually desired, this can be explicitly enabled on a
per-file basis.
2016-03-30 00:10:10 +02:00
316240cffa [vim] replace Vundle with vim-plug
These features of vim-plug are particularly appealing:
    * on-demand loading -> better startup times
    * branch/tag/commit support -> controlled changes if desired
    * support for unmanaged/local plugins -> good for development of plugins
2016-03-29 23:56:54 +02:00
82058ae59d [vim] vimrc overhaul
After learning a little of VimL, the vimrc file could be organized a bit
better. This should provide a better basis for future improvements.
2016-03-29 21:19:56 +02:00
50feda4f85 [tmux] use v2.1 mouse support
From the tmux 2.1 changelog:
    * Mouse-mode has been rewritten.  There's now no longer options for:
            - mouse-resize-pane
            - mouse-select-pane
            - mouse-select-window
            - mode-mouse

      Instead there is just one option:  'mouse' which turns on mouse support
      entirely.
2016-03-23 14:03:07 +01:00
0da6e20f4a [git] better log format and new decoration colors 2016-02-07 21:05:52 +01:00