Commit Graph

432 Commits

Author SHA1 Message Date
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
druckdev
1b783875ba Let nvim show the effect of a command while typing
For example when typing a substitute command: live highlight the pattern
and show the result to which it would be substituted.
2020-09-13 17:32:55 +02:00
druckdev
93e6a3ee93 Fix issues with vanilla vim
When TERM is not xterm-256color (for example in st or tmux) t_8f and
t_8b have to be set manually for colors to work.
Add XDG_CONFIG_HOME/vim to packpath so that plugins work.
2020-09-13 16:26:20 +02:00
druckdev
076a383505 Remove vim plugin submodule added by accident 2020-09-13 04:43:18 +02:00
druckdev
a74723fea6 Add glog keybindings 2020-08-29 23:23:12 +02:00
druckdev
c951c69165 Enable spell check in vim 2020-08-28 02:44:03 +02:00
druckdev
420bcf6be5 Switch to native vim plugin management
Since the vim plugins are stored in submodules and vim-plug is not a big
fan of that when installing (Needs PlugClean and PlugInstall again
although the repos of the plugins were already pulled) it makes more
sense to me to use vim8s native plugin management.
2020-08-24 03:08:13 +02:00
druckdev
2c457b3276 Put theme below enabling 256 colors 2020-08-22 17:10:36 +02:00
druckdev
ed6d6bc75e Load onedark theme through vim-plug
Use vim-plug to load onedark instead of the two files in
vim/{autoload,colors}. This enables to update the theme and have it as a
submodule in the rep.
2020-08-22 16:52:55 +02:00
druckdev
4f1e97664c Update vim plugins
Update vim vim-plug and the plugins.
2020-08-22 16:42:51 +02:00
druckdev
d44f488b30 Added credit 2020-08-04 06:08:19 +02:00
druckdev
0c5738896b Add vim plugins
Add vim-plug.
Add vim-gitgutter and coc.nvim.
Shorten some lines to 80 chars.
2020-08-02 16:24:08 +02:00
druckdev
780dcce32c Vim keybindings
Set leader key.
Add bindings for jumping on the same indentation level.
Add bindings for more comfortable split view navigation.
2020-07-31 18:02:13 +02:00
druckdev
2d2ca2dc6a Rulers and spellcheck in commits 2020-06-30 02:47:47 +02:00
druckdev
a53271be46 Different cursor styles also in TMUX
Set cursor style depending on the current mode also in TMUX.
2020-06-28 17:45:11 +02:00
druckdev
161ee66f2c highlight trailing whitespace 2020-04-28 01:42:21 +02:00
druckdev
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00