Commit Graph

66 Commits

Author SHA1 Message Date
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
druckdev
0fe0679276 all: Update submodules 2020-11-03 00:21:46 +01:00
druckdev
f8485e03e3 vim: Add Umlaute + sz and merge redundant bindings
Add bindings for typing Umlaute and sz.
Merge redundant bindings that are bound in multiple modes.
2020-11-02 01:59:28 +01:00
druckdev
7a5c898621 vim: Autoindent new lines
This option is not set in vanilla vim by default.
2020-10-26 13:38:09 +01:00
druckdev
e8d1ae12c7 vim:ftplugin: Add python and xdefaults 2020-10-26 13:36:27 +01:00
druckdev
5a238e165c vim: Unset joinspaces 2020-10-13 00:46:57 +02:00
druckdev
164af2e500 vim: Automatic formatting 2020-10-10 00:30:09 +02:00
druckdev
5f4a6862ab vim: Add binding to correct with first suggestion 2020-10-10 00:28:37 +02:00
druckdev
d14a84fb9c vim: Turn on showcmd in vim like in neovim 2020-10-10 00:27:46 +02:00
druckdev
4fafd8a99a vim: Improve command-line completion
Turn on wildmenu (Default in neovim).
Let vim first complete the longest common string between matches before
seleting full matches. (Similar to completion done by bash or zsh)
2020-10-10 00:22:24 +02:00
druckdev
646d1bc7c4 vim: Bind Ctrl-Backspace also on command-line 2020-10-10 00:05:22 +02:00
druckdev
c0f7b43dac vim: Load coc.nvim only with vim >= 8.1.1719 2020-10-10 00:03:48 +02:00
druckdev
027204615b vim: Use EN instead of EN_US dict for spell check
I do not care about color/colour etc.
2020-10-10 00:01:19 +02:00
druckdev
11819cc359 vim: Add more binds for split view navigation 2020-09-28 04:13:45 +02:00
druckdev
f36c83254b vim: Modify pane switching keybindings
Control hjkl is faster to type, especially when changing more than once.
2020-09-25 02:17:07 +02:00
druckdev
b301cb5045 vim: Add substitution binding for visual mode too 2020-09-25 00:58:21 +02:00
druckdev
0a2d70412e vim: Move autosource of config into ftplugin
Instead of only sourcing the vim config when vimrc or $MYVIMRC (xdg.vim)
is edited, reload always when saving a vim file.
This is a test. But I think it makes sense since I never edit a vim file
that is not sourced by my config in any way. Thus reloading should be
always appropriate.
2020-09-23 02:25:04 +02:00
druckdev
1c2035f458 vim: Add bind for deleting into system clipboard 2020-09-23 02:07:23 +02:00
druckdev
7d121cae18 vim: Source edited vim config upon saving 2020-09-23 02:04:21 +02:00
druckdev
2789836743 vim: Explicitly load filetype plugins and indent
My system installation did that automatically but apparently that is not
the norm.
2020-09-23 01:45:31 +02:00
druckdev
d5e8135cac vim: Move language specific bits into ftplugin/
Move stuff for specific languages executed by autocommands into own
filetype plugins to keep the vimrc cleaner.
2020-09-23 01:16:17 +02:00
druckdev
97260306fb vim: Reorder config and create autocommand section
Move everything that is not strictly part of "Aesthetics" out of there.
2020-09-22 13:34:43 +02:00
druckdev
9c16d0f3aa Set copyindent in vim 2020-09-21 17:39:41 +02:00
druckdev
ab67bd553e Add vim keybindings
Add binding for the substitute command.
Add bindings for interacting with the system clipboard with y/p.
Change the keybindings header to use the full word.
2020-09-15 00:37:02 +02:00
druckdev
efd5df4f24 Change meaning of cw in vim to act like dw
This is an inconsistency that bothers me. And getting into the habit of
using ce seems to not hurt since it is still 'backwards' compatible to
other configs.
2020-09-15 00:31:52 +02:00
druckdev
746dc36c07 Put vim keybindings below settings 2020-09-13 19:26:50 +02:00
druckdev
54214d09d7 Split vim to the right/bottom 2020-09-13 19:23:56 +02:00
druckdev
923c0c0648 Cleanup vims XDG config
Add exact commit to reference link.
Merge deleting and then readding different paths to options onto a
single line.
2020-09-13 17:56:13 +02:00
druckdev
1442cf9fca Disable gdefault in vim
Since this option is deprecated because it may break stuff in plugins
that do not expect this option to be set.
Also inccommand still highlights globally as soon as the flag is added.
2020-09-13 17:39:46 +02:00
druckdev
d6b3ebbe7d Re-enable arrow keys in vim
I'm comfortable with hjkl now and thus this is not useful anymore since
it also disables them in command mode where I actually need them from
time to time.
2020-09-13 17:35:19 +02:00