Commit graph

273 commits

Author SHA1 Message Date
824b349542 [FIX][VIM] Do not highlight trailing space in help 2019-10-27 18:53:36 +01:00
a3d8ef9a63 [UPDATE][VIM] Move mappings to different files
Because a lot of my mappings use the <Leader> key, this is the only file
that *must* be loaded before all the others, otherwise the value of
leader when the script is read will be erroneous.

I also tried to use `git write-tree` and `git commit-tree` to emulate a
manual octopus merge to preserve the line history for each file. But
honestly that gave a graph that was too ugly for a history that really
did not need that amount of accountability. However it is a fun
exercise, and I recommend to everyone to try it at least once.
See Raymond Chen's blog `The Old New Thing`, with the post titled `How
to split out pieces of a file while preserving git line history: The
hard way with commit-tree`, for an explanation.
2019-10-26 00:55:20 +02:00
1d58d25015 [UPDATE][VIM] Remove Gmove leader mappings
I never use it, and git-messenger shadows the mapping, which I should
make less implicit by at least removing this useless option.
2019-10-25 23:48:16 +02:00
c56455f851 [FIX] Xterm window title for Zsh and Bash
The escape sequence to display a title for Xterm and Termite is the
same, and the export for the current directory does not seem to have any
negative impact on Xterm.

The VTE script uses `$HOSTNAME` which is a bashism for `$HOST`, so this
needs a correction in my shell profile.
2019-10-25 17:22:54 +02:00
d9eab5526f [UPDATE][VIM] Factorise b:undo_ftplugin
Instead of re-writing the same condition each time, I put the function
in an autoload plugin instead (which is going to be loaded just about
every time I start writing code, but that's neither here nor there) to
stop repeating myself.
2019-10-25 14:27:21 +02:00
36faab278e [FIX][VIM] Set b:undo_ftplugin if not set
I hit the problem when loading a fugitive window, but this should be
done for all filetype plug-ins before trying to append to the variable.
2019-10-25 14:15:56 +02:00
571d5bc9e0 [ADD][VIM] ALE settings for Mypy linter in Python 2019-10-25 14:01:19 +02:00
43a0785118 [ADD][VIM] Disable better-whitespace with fugitive
The inline diff view in fugitive contains spaces, they shouldn't be
highlighted to avoid distracting me.
2019-10-25 13:58:27 +02:00
e4f096ae91 [FIX][ZSH] Display title in Termite
For some reason the script to set-up VTE terminals does not set-up the
precmd which is supposed to display the username, host, and working
directory in Termite's title.
2019-10-23 13:54:57 +02:00
a9bddde57a [FIX] Fuzzy finder for shell history
For some reason the fuzzy finder script for Bash and Zsh history using
fzf needs to be sourced later than it was in order to work correctly.
2019-10-23 13:53:09 +02:00
518959fb9f [FIX][I3] Replace brightness notification message
Dunst can overwrite a notification if we give it an id (an integer
value) or a name (a string). This allows for displaying a single
notification when incrementing/decrementing the brightness multiple
times in a quick succession.
2019-10-23 12:00:59 +02:00
044f5f4c14 [UPDATE][VIM] Disable spell-checking by default
I was starting to get annoyed by all the spell-checks happening inside
strings and comments that underlined words which are not mistakes but
also not in the dictionary.
2019-10-22 09:39:37 +02:00
7815c43fd9 [ADD][I3] Shortcut for bwmenu
`bwmenu` is a rofi script integrating the Bitwarden CLI program. It is
therefore necessary to install `bitwarden-cli` and `bitwarden-rofi`.
2019-10-21 17:58:13 +02:00
b6b79c71f5 [UPDATE][VIM] Remove gruvbox lightline theme
I don't like the colors of the gruvbox theme in lightline because errors
and warnings are not highlighted. I could fix the theme, but I've been
using instead wombat for a while and find that it looks perfectly fine.
2019-10-21 14:15:36 +02:00
ef51e87126 [FIX][VIM] Correct ALE warning color in lightline
Because of a typo, the background color was not changed when warnings
were displayed.
2019-10-21 14:14:52 +02:00
2f9a1f2d33 [FIX][ZSH] Display return value in prompt on error
I had forgotten to add it to my prompt...
2019-10-21 14:14:18 +02:00
67da1d9f6e [ADD][SHELL] Project-local environment w/ localrc
This little script will look at your current working directory and its
parent directories to source local configuration files (very useful for
Python  projects, or the way I build TC with a local PATH pre-pended).

It works relatively well but still is a very fragile solution that
depends on the order in which the shell has sourced its files. Because
the Termite script kept erasing the previous PROMPT_COMMAND value for
Bash I had to change to source it at the beginning of my configuration
file.
2019-10-19 17:06:00 +02:00
62ce5480bc [UPDATE][VIM] Move Makefile setting to ftplugin 2019-10-19 05:46:29 +02:00
7de7a7ec2e [ADD][VIM] Use cheat40 plug-in
This is a nice plug-in to show a little 40-columns wide window
containing a cheat-sheet about Vim, or any custom cheat-sheet in the
runtimepath.
2019-10-19 05:46:29 +02:00
edaafabbf7 [UPDATE][VIM] Move Netrw specific setting to ft 2019-10-19 05:46:29 +02:00
e8314d6f34 [ADD][VIM] C++ namespace snippet 2019-10-19 05:46:29 +02:00
8faf2e188b [UPDATE][VIM] Better UltiSnips settings
The mappings are easier to use, and my personal snippets are stored
under my `.vim` folder in my home directory.
2019-10-19 05:46:29 +02:00
7701eb13d3 [ADD][VIM] Mapping to remove search highlighting 2019-10-19 05:46:29 +02:00
cca1075b5b [UPDATE][VIM] Specify ALE linter timings 2019-10-19 05:46:29 +02:00
7dc3190ee2 [UPDATE][VIM] Move ALE linter options to ftplugin 2019-10-19 05:46:29 +02:00
1f1d3c9545 [ADD][SCRIPTS] i3-get-window-criteria script
This makes it easier to write an i3 filter command, by just executing
the script and clicking on the window you want to filter.
2019-10-19 05:46:29 +02:00
0e2d7f5d00 [ADD][I3] Make Thunderbird's filter window float 2019-10-19 05:46:29 +02:00
0473705335 [UPDATE][VIM] Use b:undo_ftplugin
You're supposed to undo the changes that you made to a buffer's
variables when doing filetype-related settings. The variable
'b:undo_ftplugin' contains the commands necessary to revert any changes
that you have made to accomodate this filetype.

I removed the mappings for left and right in a quickfix windows because
I don't use them, and the 'qf' plug-in already maps those (meaning I had
an error when I tried to unmap them after qf already did so).
2019-10-19 05:46:29 +02:00
a0a11c5eb9 [ADD][VIM] Remove numbering in terminal buffers 2019-10-19 05:46:29 +02:00
c9a2b25a2c [UPDATE][VIM] Number toggle without a plug-in
It's really just a few lines of really simple Vimscript.
2019-10-19 05:46:29 +02:00
a7bdded5c6 [ADD][GIT] Alias m4 to vimdiff 4-window view
Sometimes it is useful to also have the base file accessible when
merging branches. This view still has the local file on the left and the
remote branch on the right, with the base in the middle and the result
at the bottom.

The d1o/d2o/d3o take from the local/base/remote for the current file.
2019-10-19 05:46:29 +02:00
4e6821a0f2 [ADD][GIT] Use vim-fugitive as default mergetool
I really like the way vim-fugitive show a merge conflict by having our
local index on the left (the target), and the remote changes on the
right (what we're trying to merge with our branch). The result is
obviously the file in the middle.

The d2o and d3o mappings take from local/remote for the current chunk.
2019-10-19 05:46:29 +02:00
6dd31874c8 [UPDATE][VIM] Move filetype files to 'after/' 2019-10-19 05:46:29 +02:00
e46d347c61 [ADD][TRIDACTYL] Hint at item pages on Hacker News 2019-10-19 05:46:29 +02:00
f8112777ad [ADD][VIM] Better vim-unimpaired mappings
I use a french layout keyboard ('AZERTY' layout), which does not have
the greatest access to '[' and ']'.
2019-10-19 05:46:29 +02:00
ca7ae65732 [ADD][VIM] Git-messenger plug-in to read commits 2019-10-19 05:46:29 +02:00
78d5a77552 [UPDATE][VIM] Remove unused fugitive mappings 2019-10-19 05:46:29 +02:00
c06f7c9faf [UPDATE][SHELL] Remove ureload alias 2019-10-19 05:46:29 +02:00
90be3d4dba [ADD][VIM] Use flags from compile_command with ALE 2019-10-19 05:46:29 +02:00
809a348490 [ADD][VIM] Mappings to navigate quickfix history
It also supports navigating the location list history when inside a
location list.

The autoload plug-in idea was taken from this Vimways article:
<https://vimways.org/2018/colder-quickfix-lists/>
2019-10-19 05:46:29 +02:00
1a72e67273 [UPDATE][VIM] Move rust plugin to language section 2019-10-19 05:46:29 +02:00
cae382e0b4 [ADD][VIM] FastFold plugin 2019-10-19 05:46:29 +02:00
30ea1eed72 [ADD][VIM] Enable US English spelling by default 2019-10-19 05:46:29 +02:00
2e6608668e [ADD][VIM] More fuzzy finder mappings 2019-10-19 05:46:29 +02:00
d4413112e9 [ADD][ZSH] Bind delete key 2019-10-19 05:46:29 +02:00
9b71074511 [UPDATE][GIT] Re-order configuration file
I want the core and the user settings on top, all but the alias sections
and sections added by plug-ins to be in alphabetical order, then the
aliases, followed by plug-in related settings (such as git-lfs).
2019-10-19 05:46:29 +02:00
81ee5d3f67 [ADD][GIT] Use patience diff by default
The patience diff usually results in better patches than the default
myers algorithm.
2019-10-19 05:46:29 +02:00
826db6d2de [ADD][GIT] Better diff colors
I like having some colors for the meta-information shown during
diff operations.

Using the `diff-hightlight` script, you can get character-level
highlights of your diffs (just like GitHub and GitLab).
2019-10-19 05:46:29 +02:00
b02cec8fff [ADD][VIM] Use spell-checking for git commit 2019-10-19 05:46:29 +02:00
97c4207b38 [UPDATE][SHELL] Make less clear screen on start-up
If you don't have this option, less will just start outputting from
wherever your cursor was (so the line where you were writing your
command), but any movement would make it snap to the top of the
terminal.

This makes it clear the screen before doing its first draw, making the
output systematically start from the top.
2019-10-19 05:46:29 +02:00