Commit graph

22 commits

Author SHA1 Message Date
b31dcac34e vim: use API for setting keymaps 2021-11-11 15:27:58 +01:00
cc343b91c4 vim: disable unused builtin plugins 2021-11-11 10:05:29 +01:00
e8d8eed462 vim: remove old VimL files 2021-11-11 10:04:30 +01:00
aaf0527c4d vim: quick and dirty move keymaps to lua (with vim.cmd) 2021-11-11 10:02:59 +01:00
d9ae564153 vim: port autocmd to lua using wrapper function
Wrapper is needed until this PR is merged into neovim:

    https://github.com/neovim/neovim/pull/14661
2021-11-11 09:43:17 +01:00
e3c0dac924 vim: move vim-plug invocation to a lua file 2021-11-11 09:20:27 +01:00
6946addc61 vim: port options to lua 2021-11-11 09:18:19 +01:00
4ad4ee81f8 vim: split up init to ease porting 2021-11-11 09:06:52 +01:00
4aaf6ebb36 vim: init.vim -> init.lua
For sanity, let's start small. Just keep the old one around for now and
source it from init.lua.
2021-11-11 08:36:34 +01:00
c018c96859 vim: fix formatlistpat
The previous format for some reason was causing problems when wrapping
comments in files with ft=sh. This new pattern seems to fix the issue
while keeping the old functionality.
2021-11-08 14:51:54 +01:00
5805ab5e5f vim: better listchars and highlights 2021-11-08 12:27:21 +01:00
f5dd2bd54b vim: improve formatoptions 2021-11-08 12:26:58 +01:00
231bce970a vim: disable bells and window auto-resize 2021-11-08 12:25:55 +01:00
e3c0bd323b vim: always use dark background
The reason for this is that in some servers the automatic detection (see
:help background) is guessing it wrong and using a light background,
consequently burning my eyeballs every time I open vim.

Hard coding the dark background seems fine for now, as I seem to never
really have a need for the light version. If the needs arises in the
future, then I'll have to come up with a better solution, but KISS for
now.
2021-10-27 10:13:41 +02:00
7d3659e2f3 vim: remove local configs
I actually don't have a use case for this at the moment and removing it
avoids running arbitrary vimscript unintentionally. I can always add it
back later if a real world use case arises...
2021-10-27 10:11:32 +02:00
492c5ccfa7 vim: status line tweaks 2021-08-30 11:43:01 +02:00
648b339ae1 vim: better line number mappings 2021-08-30 11:33:12 +02:00
20c3128b11 vim: add mapping to lisr buffers and switch 2021-08-30 11:27:12 +02:00
58f3e5621e vim: use relative line numbers on startup 2021-08-16 13:21:43 +02:00
18f36d9061 vim: use unnamedplus register to sync with clipboard 2021-08-16 13:05:35 +02:00
1f5cfe8de7 vim: <leader>h toggles search highlight 2021-08-16 12:43:33 +02:00
1622e4abde Organize config files by program 2021-08-10 13:06:48 +02:00