Commit Graph

245 Commits

Author SHA1 Message Date
22501182ce vim: Use timer instead of autocommand for autoread 2021-04-26 17:56:15 +02:00
b2962a5ce1 vim:ctags: Exclude files in build directory 2021-04-12 21:01:30 +02:00
3394cafca3 vim:plugins:ctags: Ignore node_modules/ and .git/ 2021-03-10 13:41:48 +01:00
f0ebab3ca2 repo: Update submodules 2021-03-08 01:05:32 +01:00
5359e44e0d vim:plugins:coc.nvim: Update to release branch 2021-02-26 12:09:27 +01:00
f746909e3a vim: Enable &autoread + autocmd for regular check 2021-02-17 02:38:15 +01:00
0caa30d6ef vim: Enable mouse in all modes 2021-01-15 12:40:36 +01:00
4d4a5d4ef2 vim: Add vim-lastplace 2021-01-04 16:28:56 +01:00
4a0b9e5cf1 vim: Disable swapfile-warning instead of the files
This should make it possible to actually recover something on a crash
without those warnings.
2020-12-27 23:55:39 +01:00
91091eb4c4 vim: Set bat (fzf preview) theme 2020-12-24 02:54:19 +01:00
350158af1a vim: Add binding for fzf's :Lines 2020-12-24 02:48:59 +01:00
d9971b7672 vim: Create ftdetect for arm + auto plugin loading 2020-12-24 02:42:54 +01:00
7c6909c0bf vim: Move vimtex settings into tex ftplugin
And load vimtex automatically. I discarded the autocommand as vimtex
only loads a small ftdetect script for tex and the rest of the plugin is
made up of ftplugins, indent files, etc. by itself.
The overhead of the autocmd feels bigger than just loading the small
component and letting vim doing the rest.
(But this is in now way tested/benchmarked. That is just how I feel and
it makes it a tad cleaner)
2020-12-24 02:31:10 +01:00
69e2e43fc7 vim: Move after/ftplugin to ftplugin
There is no reason why the plugins should be in after/.
2020-12-24 02:26:36 +01:00
5b45049070 vim: Disable pesky swap files
For now... Probably until my first crash with unsaved changes...
But right now they just annoy me.
2020-12-24 02:01:11 +01:00
c3f8f3761d vim: Use theme colors in fzf 2020-12-24 02:00:42 +01:00
00c6f56c69 vim: Use $XDG_DATA_HOME for spell files 2020-12-24 01:59:27 +01:00
e6262b6593 vim: Load other always-on plugins too
And move the plugin specific keybindings into 40-keybindings.vim.
`packloadall` sources the plugins directly in contrast to `packadd`.
Because of that we can access the `g:loaded_*` variables and do not have
to specify our own keybindings for vim-surround as now the user bindings
are loaded later and overwrite possible clashes.
2020-12-23 19:26:05 +01:00
b6e92aef0e vim: Load 'easy' always-on plugins automatically
Load always-on plugins that do not need extra configuration
automatically through vim's pack/*/start directory.
2020-12-23 19:19:21 +01:00
ab53243db8 vim: Enable ftplugins at the very end
Fix error that the highlighting group 'zshOption' does not exist when
editing zsh files. I guess this is the case since ftplugins were loaded
before syntax was enabled.
2020-12-23 14:53:26 +01:00
b9f26d7482 vim: Split vimrc into vimrc.d/ 2020-12-23 01:42:42 +01:00
8de39de335 vim: Fix name clashing of backup, undo, swap files 2020-12-22 20:31:30 +01:00
51b79d0f15 vim: Fix binding conflict with ctags and terminal 2020-12-22 20:11:09 +01:00
a20b637ad6 vim: Sort plugin order 2020-12-22 20:06:24 +01:00
914e8a1992 repo: Update submodules & cleanup gitmodules
Update all submodules to the newest commit.
Change submodule names in `.gitmodules` from local path to repo names.
Sort and group `.gitmodules` by program that uses it.
Remove the clone of 'fzf-tab' as my pull request got merged.
2020-12-22 16:22:33 +01:00
c74cfa3901 vim,git: Integrate ctags 2020-12-21 13:55:49 +01:00
ee5086690e vim: Combine language related plugins with autocmd 2020-12-19 02:56:42 +01:00
da732648f8 vim: Add terminal related settings 2020-12-19 02:55:23 +01:00
fa2b792d38 vim: Write out 'autocmd' 2020-12-07 16:36:54 +01:00
b7d9bd6d9d vim: Add arm syntax highlighting 2020-12-05 01:18:47 +01:00
d68f6e4e34 vim:ftplugin:python: Maximum line length of 79 2020-11-29 13:53:41 +01:00
druckdev
40da536164 vim: Add bindings around spell check
Add a spell-toggle, spelllang-cycle and spelllang-set binding.
2020-11-25 02:16:18 +01:00
druckdev
90ab5eaf25 vim: Improve handling of German keybindings
Automatically map them when setting the spelllang to de and unmap them
when switching back to another language.
2020-11-25 02:14:22 +01:00
druckdev
0ff4ffd67d vim: Add scrolloffset and enable mouse 2020-11-23 02:23:45 +01:00
druckdev
a5b47adc0a vim: Get rid of ruler at 100 columns 2020-11-23 02:20:44 +01:00
druckdev
40617b11ff vim: Fix error on resourcing vimrc
Fixes error 'E174: Command already exists: add ! to replace it' that
occured when saving vim files and the config was resourced.
2020-11-23 02:17:28 +01:00
druckdev
423a786192 vim: Move ftplugins into after/
All of these are meant as additions and should not override vims default
ftplugins.
2020-11-23 02:07:38 +01:00
druckdev
d85607e143 vim,zathura: Setup LaTeX file development
LaTeX files can now be automatically compiled in vim and jumping into
the relevant lines from PDF to code or the other way around is possible
too.
Add the LaTeX coc-language server as well.

Thanks to @AurelWeinhold
2020-11-23 01:49:19 +01:00
druckdev
ee4f35b146 vim: Add diff command for unsaved file changes 2020-11-22 13:35:36 +01:00
druckdev
00bf2ffd37 vim:coc: Add python language server 2020-11-16 20:33:26 +01:00
druckdev
a1b988838c vim:coc: Add C and shell language servers 2020-11-08 03:22:45 +01:00
druckdev
51643beddf fzf: Add DEFAULT_COMMAND and vim :Files mapping
Add FZF_DEFAULT_COMMAND that displays hidden files as well, but ignores
.git directories.
Add :Files mapping in vim. Because it is bound to <leader>f, the leader
key mapping had to be moved to the top of the file.
2020-11-08 03:19:40 +01:00
druckdev
c468af1fc2 vim: Display tab characters 2020-11-08 03:18:54 +01:00
druckdev
2bebc2f9b5 vim: Fix plugin order 2020-11-07 03:21:10 +01:00
druckdev
00c6274d2d vim: Add fzf plugin
Symlink the fzf repo into the plugin directory and `packadd` it.
Add fzf.vim (that depends on the base fzf as plugin).
2020-11-07 03:19:33 +01:00
druckdev
d27b25c46d vim: Jump table bindings
Center cursor after jumping.
Add <S-Tab> binding to jump backwards to match the <Tab> binding (jump
forward).
2020-11-05 13:13:05 +01:00
druckdev
fdaa2dedb7 vim: Add surround and delimitMate plugins
These plugins add functionality to automatically close and surround text
with parantheses, brackets, quotes, etc.
Overwrite the vim-surround default bindings since they conflict with my
substitute bindings.
2020-11-05 13:08:04 +01:00
druckdev
2f198cdb2e vim:xdg: Fix bug that creates ~/~
Fix bug that when the XDG Base Directory variables are not set on
startup a directory "~" is created in $HOME instead of falling back to
the default values.
2020-11-03 14:12:16 +01:00
druckdev
fe5a65fa23 zsh: Make neovim the man pager
And disable vim's spell check in man pages.
2020-11-03 01:11:40 +01:00
druckdev
34219051e3 nvim: Fix coc.nvim and install it automatically
Fix bug introduced in c0f7b43 that stopped the sourcing of coc.nvim in
neovim.
Add command to the dotbot installation config to install coc.nvim
automatically after pulling its submodule.
2020-11-03 00:25:00 +01:00