Commit Graph

387 Commits

Author SHA1 Message Date
dc76a341a0 vim:ftplugin: Adjust to new colorcolumn settings
Since
a98457e66b ("vim:autocmd: Adjust colorcolumn with &textwidth")
or correctly sine
fc0969abba ("vim: Drop textwidth autocmd for native way")
it is not necessary to add the `textwidth` manually to `colorcolumn`.
The colorcolumns are now also placed *behind* textwidth.
2022-03-28 23:42:22 +02:00
fc0969abba vim: Drop textwidth autocmd for native way
Instead of needing a manual autocmd that triggers on textwidth changes,
colorcolumn supports offsets to textwidth natively.
2022-03-22 16:18:58 +01:00
94271371dc vim:autocmd: Fix typo in OptionSet textwidth
The old `textwidth` value is meant to be subtracted from colorcolumn, to
then add the new one.

Fixes: 41656d28d6 ("vim:autocmd: Reset textwidth value in colorcolumn")
2022-03-21 15:24:31 +01:00
41656d28d6 vim:autocmd: Reset textwidth value in colorcolumn
Instead of overwriting the entire colorcolumn value, reset only the
textwidth value, by subtracting it first and then readding it.
2022-03-18 17:33:56 +01:00
a4760b7518 vim:plugins: Source optional plugins directly
When adding the `!` only the paths are added to the `runtimepath` and
nothing is sourced (yet). As `keys.vim` for example checks if gutentags
is loaded before creating a binding to :Tags this has to change and the
plugins need to be sourced directly.
2022-03-03 01:19:14 +01:00
0369218114 vim:settings: Include - in &iskeyword 2022-02-24 17:39:48 +01:00
fafc7e1bef vim: Deactivate cursorline
With the highlighting of the word under the cursor this kind of gets in
the way as both are using the same color to highlight.
2022-02-17 15:22:32 +01:00
9796992737 vim:autocmd: Highlight word under cursor 2022-02-17 15:21:51 +01:00
f994d8bf69 vim:keys: Use <Esc> to set nohlsearch
Use <Esc> to set `nohlsearch` instead of <CR>.
<Esc> has no purpose in normal mode and has the benefit, that the cursor
is not moved.
2022-02-16 00:55:03 +01:00
a98457e66b vim:autocmd: Adjust colorcolumn with &textwidth 2022-02-16 00:54:19 +01:00
2cd147cc32 vim: Set colorcolumn to textwidth
Set &colorcolumn to &textwidth instead of hardcoding it to the same
value.
2022-02-12 13:11:44 +01:00
cb7263e77d *: Update plugins and other submodules 2022-01-29 22:42:33 +01:00
8526727cc5 vim:plugins: Add cocci-syntax 2022-01-27 10:47:24 +01:00
951707e2a5 vim:plugins: Add markdown-preview 2022-01-27 10:41:07 +01:00
5155cbbed1 vim:keys: Bind <leader><Esc> to exit terminal
Bind `<leader><Esc>` to exit terminal-mode.
2022-01-21 19:13:24 +01:00
c2e21d23c0 vim:plugins: Only add gutentags with ctags
Only add gutentags with `ctags` as valid executable. Otherwise vim will
complain.
2022-01-21 16:42:25 +01:00
8ffd4df1fa vim:keys: Add insert mappings for better undo
The bigger `inoremap <expr> ...` binding is taken from the help page
`:help i_ctrl-g_u`.
2022-01-20 16:05:47 +01:00
dcea7c9531 vim:keys: Add git bindings for add and commit
Also add `g` as prefix to the already existing `:Gcd` binding.
2022-01-20 15:59:45 +01:00
cdd727382c vim:ftplugin:python: Use indent as foldmethod 2022-01-03 01:23:56 +01:00
0015f2a223 vim:plugins: Enable vim-syntax-extra 2021-12-27 01:31:01 +01:00
b283587690 vim:plugins: Add vim-syntax-extra
Add vim-syntax-extra for enhanced C syntax highlighting as well as for
bison and flex.
2021-12-27 01:28:00 +01:00
a42155a64b vim:keys: Improve bindings to move lines
The old bindings had problems when trying to move further than BOF, EOF.
2021-09-30 10:38:58 +02:00
39de8e4094 vim:keys: Fix & command to also use last flags 2021-09-16 04:41:18 +02:00
985ff8cd26 vim:keys: Use *, # for visual selection search 2021-09-09 05:23:43 +02:00
03ae2655a8 vim: Rename keybindings.vim to keys.vim 2021-07-22 16:01:09 +02:00
4364625bf5 vim:keys: Add binds to move lines and reindent 2021-07-22 15:59:16 +02:00
5f255769f6 vim:pack: Add Colorizer 2021-07-16 14:52:30 +02:00
b89c170192 vim:keys: Disable indentation jump maps for now
As they clash and are overwritten by the split navigation maps just
below.
2021-07-16 00:53:16 +02:00
b7fb36061b vim:keys: Add Y that acts like C & D 2021-07-16 00:51:26 +02:00
dc27577109 vim:keys: Only need one / for search in visual 2021-07-16 00:50:15 +02:00
a26abe821f vim:keys: Add <leader>/ for :Lines 2021-07-16 00:37:52 +02:00
1fff0c584c vim:xdg: Fix whitespace error in indentation 2021-07-14 12:53:42 +02:00
8c66e1cf68 vim:autocmd: Add bindings when sourcing termdebug 2021-07-13 16:54:55 +02:00
8c37dc2316 vim:vimrc.d:*: Use " instead of # in header lines 2021-07-13 16:52:42 +02:00
d4a5edab1a vim: Disable gutentags when editing git-rebase
I do not want the tags file to generate when doing simple git operations
that will not modify the project in itself.
2021-07-01 13:23:23 +02:00
6e3f5a96b3 vim: Disable gutentags when editing git-commits
Disable gutentags as it seems to regenerate the entire tags file when
editing git-commits, leading to a delay when exiting and a message from
git:
"Waiting for your editor to close the file..."
2021-06-30 12:35:57 +02:00
ca219a3a1d vim:keybindings: Add <leader>cd - cd to git root 2021-05-22 19:13:36 +02:00
af30da1b3b vim:plugins: Add vim-fugitive 2021-05-22 19:05:08 +02:00
28385a0a1e vim: Set termdebug_wide 2021-05-21 10:18:02 +02:00
45a2ab8a20 vim:keybindings: Add gp to reselect last paste 2021-05-15 04:07:22 +02:00
724a6a455d vim:keybindings: Add // to search for selection 2021-05-15 04:06:20 +02:00
3aa722842d vim: Use tree style listing in netrw 2021-04-28 01:37:42 +02:00
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