Commit graph

94 commits

Author SHA1 Message Date
Bruno BELANYI cae382e0b4 [ADD][VIM] FastFold plugin 2019-10-19 05:46:29 +02:00
Bruno BELANYI 30ea1eed72 [ADD][VIM] Enable US English spelling by default 2019-10-19 05:46:29 +02:00
Bruno BELANYI 2e6608668e [ADD][VIM] More fuzzy finder mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI b02cec8fff [ADD][VIM] Use spell-checking for git commit 2019-10-19 05:46:29 +02:00
Bruno BELANYI 1944ed578d [ADD][VIM] Use pyls in Pipenv with automatically
ALE can detect if the file you're currently editing is inside a Pipenv
environment, and use the pyls inside your environment to have access to
module definitions.

This doesn't launch pyls inside Pipenv when there's no environment
active for your file.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4753e32c30 [ADD][VIM] Shellcheck options for ALE
I want shellcheck to detect which shell is most appropriate on the `sh`
filetype, but explicitly use the `bash` dialect on `bash` and `zsh`
filetypes.

I also really don't like nullary conditions in shell, so I'll screen for
those too.

I might turn on the 'quote-safe-variables' check too, because I think
quoting variables is a good habit to take.
2019-10-19 05:46:29 +02:00
Bruno BELANYI f747005981 [ADD][VIM] Use shfmt with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 02ad16c4e8 [ADD][VIM] Pandoc to markdown ALE alias 2019-10-19 05:46:29 +02:00
Bruno BELANYI bdb53424c3 [ADD][VIM] Use dfmt fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 871c6fb299 [ADD][VIM] Use jq fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI c108143526 [UPDATE][VIM] More ALE linters for python
I de-activated the pycodestyle module for pyls because I already use
flake8 to do that job.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 5a13a35402 [ADD][VIM] Use rustfmt fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI fb646c8b74 [ADD][VIM] Rust options for ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 57a48b3c05 [ADD][VIM] Local leader mapping
I don't use the '!' command to filter text through an external program.
If I need that functionality I use visual mode and a ':!' command.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 5e5b8271c2 [ADD][VIM] Don't list Netrw buffers
I don't want to show a long list of directories in my buffer list,
2019-10-19 05:46:29 +02:00
Bruno BELANYI b7579b0a9b [UPDATE][VIM] Use 88 columns limit on python files 2019-10-19 05:46:29 +02:00
Bruno BELANYI 5184dd5a56 [ADD][VIM] Use black fixer with ALE
This introduces the '.vim' folder to my dot-files repository. I'll have
to think about splitting my '.vimrc' file into multiple files inside the
'.vim' folder.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 558a138f2e [ADD][VIM] Compile flags for C/C++ in ALE
I usually code in C99 and C++17 because that's EPITA's guidelines.

I'll have to check out the new C11/C18 features (notably threading and
type genericity...) someday.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4ae3eda5f9 [ADD][VIM] Basic ALE settings 2019-10-19 05:46:29 +02:00
Bruno BELANYI 7940274ad0 [ADD][VIM] ALE and linting lighline integration
I changed the theme of lightline's statusline to wombat because the
errors did not have any color using gruvbox.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 7134074e58 [UPDATE][VIM] Change to lightline status-line
I wanted to try something else, lightline seems more fun than the vanilla
statusline, and easier to modify than airline.

This is the bare minimum of status bar for me, without powerline
separators because I don't like them very much, and with basic
vim-fugitive integration.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 5da42afec6 [UPDATE][VIM] Make timeout longer
I couldn't type most of my two letter leader bindings with such a short
timeout... This makes deletions in visual mode a bit longer, but I don't
think that's a terrible tradeoff.
2019-10-18 22:17:20 +02:00
Bruno BELANYI db4be2feaf [UPDATE][VIM] Remove tag management plugins
I have never used `gutentags` or `gutentags_plus`, mostly because the
only project that I have done that could have benefited from it (the
Tiger Compiler) did not play well with `universal-ctags`.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 9a1e2d743a [UPDATE][VIM] Add folding markers to vimrc
To make navigation inside my configuration file easier, I added a
modeline at the end to enable markers for folding and added the markers
on all levels.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 49d5849ec4 [UPDATE][VIM] Set short timeout
I am kind of impatient after all.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 494ee185ef [ADD][VIM] Rust language plugin 2019-10-18 22:17:20 +02:00
Bruno BELANYI e735f11afd [UPDATE][VIM] Reorganised vimrc file
I added the `set hidden` option to keep modified buffers open in the
background and used that opportunity to modfify the order of my settings
and their categorisation.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 376598a9a5 [ADD][VIM] Git file log mapping
<Leader>gl will open a new tab containing the history of the current
buffer in a location list as a series of git object.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 525502165f [FIX][VIM] Unambiguous pull/push/merge mappings 2019-10-18 22:17:20 +02:00
Bruno BELANYI d496c519c2 [UPDATE][VIM] Cosmetic changes
Added section titles and made all assignments the same style.
2019-10-18 22:17:20 +02:00
Bruno BELANYI df48553a84 [ADD][VIM] Git commit, push, pull, merge mappings
I forgot to save the commit mapping last time...

I also added mapping to automatically write the push, pull, and merge
commands of vim-fugitive. They all populate the quick-fix list with
their output.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 8c3f152356 [ADD][VIM] Vim-fugitive mappings
All fugitive specific mappings are prefixed by <Leader>
- ga : add file in current buffer
- gb : add blame information to the left of current buffer
- gc : commit all staged changes, open a new tab with commit message
- gd : open a diff view
- gs : open a buffer with the current git status
- gm : use git-mv to rename a file in the project

You can use the do and dp commands while in diff view to stage a partial
commit. Mappings have been added to make them work in visual mode too.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 719d64a801 [ADD][VIM] UltiSnips configuration
Added the insertion shortcut and place-holder list jumps.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 36b3757e67 [ADD] Fuzzy file finder for Vim, Bash, Zsh
Mappings for vcs files, all files, buffers, buffer history, and tags
have been added to the Vim configuration.

The installation process automatically adds the fzf sourcing commands to
both Bash and Zsh configuration files.
2019-10-18 22:17:20 +02:00
Bruno BELANYI f11c45e987 [UPDATE][VIM] Remap quick-fix and location-list toggles
<Leader>tf and <Leader>tl ("toggle fix" and "toggle list") are easier to
type and remember than the previous mappings.
2019-10-18 22:17:20 +02:00
Bruno BELANYI decd2fce1c [UPDATE][VIM] Mapping for location list toggle
I had a <Leader>qf mapping to toggle the quick-fix lis, but no mapping
to toggle the location list... The <Leader>ql mapping is now there to
complement it.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 8fa4f9aebe [UPDATE][VIM] Add Makefile to gutentags root files 2019-10-18 22:17:20 +02:00
Bruno BELANYI 4512b88254 [ADD][VIM] gutentags_plus configuration
This plug-in needs the 'global' package to work properly.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 771c14acc1 [UPDATE][VIM] Mapping for quick-fix interaction
All mappings are preceded by the leader key.
- fn/fp cycle through errors,
- ln/lp cycle through locations
- qf toggles the quick-fix list
2019-10-18 22:17:20 +02:00
Bruno BELANYI ccb110a6b9 [UPDATE][VIM] Show tags alert on status line 2019-07-13 03:44:05 +02:00
Bruno BELANYI 14380d14b7 [ADD][VIM] Mapping to edit and source vimrc file 2019-07-13 01:18:47 +02:00
Bruno BELANYI 1638682e14 [ADD][VIM] Indent in multiples of shiftwidth 2019-07-13 00:58:16 +02:00
Bruno BELANYI 6f842540a8 [FIX][VIM] Remove '<' and '>' remappings
I prefer having them available to change the indentation of a block of
code instead of having an easier time using vim-unimpaired, which I
haven't even bothered trying to learn yet...
2019-07-12 16:37:26 +02:00
Bruno BELANYI ccfc85493a [ADD] Vim configuration file 2019-07-11 23:21:11 +02:00