Commit graph

103 commits

Author SHA1 Message Date
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
01c9ec53b9 [git] remove custom template for new repositories 2016-02-07 15:56:54 +01:00
065ae919ee [vim] inherit the shell's background (dark/light) 2016-02-07 15:56:45 +01:00
b78b20347b [vim] add plugins tabular and vim-markdown 2016-02-07 14:41:58 +01:00
3ce280fb10 [bash] add combined mkdirand cd-> mkcd 2016-02-05 23:07:12 +01:00
83f8531ce1 [bash] run local bashrc at the very end 2016-02-05 23:00:24 +01:00
121c737e2d add vim-endwise, vim-commentary, and vim-surround 2016-02-04 02:53:09 +01:00
fb25ae86b1 [vim] make Q execute macro in q 2016-02-04 02:44:26 +01:00
da8acbf6b0 Add vim-json plugin 2016-02-02 23:25:24 +01:00
d6eb384c91 Add git churn and what-the-hell-just-happened
Files copied from https://github.com/garybernhardt/dotfiles.git
2016-02-02 01:02:27 +01:00
f7b78bcda7 Add git cmd completion and status to bash prompt 2016-02-02 00:44:21 +01:00
795610d418 Prevent git log paging if output fits in screen
From http://stackoverflow.com/a/14118014
2016-02-01 23:48:38 +01:00
29d184eb1e Add rainbow_parentheses.vim plugin
Highlight square and curly braces, in addition to parentheses.
2016-02-01 23:47:56 +01:00
ad59b85b2a Add vim-easy-align plugin 2016-02-01 23:12:21 +01:00
2df0e77c6b Add vim-multiple-cursors plugin 2016-02-01 22:56:04 +01:00
abec6ca0e9 Add & customize taskpaper plugin for vim 2016-01-25 14:22:35 +01:00
1eb32d50e8 Remove incorrect variable assignment 2016-01-04 11:25:45 +01:00
2bdcf5e4e3 Solarize the shell only when in interactive mode
The escape sequences necessary for controlling the terminal's colors
confuses FTP clients. Therefore, we only use the colors when we can
actually see them -> shell is running interactively.
2015-11-30 09:55:18 +01:00
dd0655db2b Add default options for less 2015-11-04 13:48:36 +01:00
b02c1e4eca Small improvements to shell "solarization" 2015-11-04 13:39:14 +01:00
7cec32d821 Minor comment cleanup 2015-11-04 13:11:30 +01:00
fffda87c9e Remove function to determine platform (unused) 2015-11-04 12:59:43 +01:00
dd85d1b55f Remove OS X aliases that are never really used 2015-11-04 12:54:45 +01:00
419775ef10 Use easily extensible path manipulation
By using a for loop, new entries can easily be added to the PATH without
having to enter additional commands. The precedence of the entries can
also be easily adjusted by reordering the list that is iterated over.
2015-11-04 12:52:29 +01:00
dc2ee984a1 Fix terminal customization bug 2015-06-15 17:59:20 +02:00
00f67c9975 Add convenient bash aliases 2015-06-14 21:37:45 +02:00
8888d69a34 Local man pages have precedence in MANPATH
The local man pages intalled in /usr/local/share/man should be checked
before the system's man pages for matches, since the tools installed in
/usr/local/bin have precedence over the ones at /bin and /usr/bin.

Change bash history management to ignore consecutive duplicates and
commands starting with a whitespace.
2015-06-14 21:32:59 +02:00
135986389d Change mappings for window navigation and resizing
Window navigation is reverted to vim's stock key combination, since tmux
is configured to work very similarly (using its prefix instead of
CTRL-W).

Window resizing is done more deterministically by adding/removing
columns/lines instead of using multipliers on the window height/width.
2015-06-14 21:27:33 +02:00