multiple cursors

This commit is contained in:
Kopatz
2025-09-23 23:19:28 +02:00
parent 6a2456cb86
commit 7379e9d9fc
2 changed files with 25 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ set notimeout
set easymotion " install easymotion and acejump plugin
set surround
set multiple-cursors " https://github.com/JetBrains/ideavim/wiki/IdeaVim%20Plugins#multiple-cursors-extends-multicursor-support
nnoremap <leader>, :action IdeaVim.ReloadVimRc.reload<CR>
@@ -34,4 +36,20 @@ nnoremap S ht lr<cr>k$
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv
map <leader>l V<Action>(ReformatCode)
" --------------- multiple cursors ---------------
"map <leader>l V<Action>(ReformatCode)" Remap multiple-cursors shortcuts to match terryma/vim-multiple-cursors
nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nmap g<C-n> <Plug>NextOccurrence
xmap g<C-n> <Plug>NextOccurrence
xmap <C-x> <Plug>SkipOccurrence
xmap <C-p> <Plug>RemoveOccurrence
" Note that the default <A-n> and g<A-n> shortcuts don't work on Mac due to dead keys.
" <A-n> is used to enter accented text e.g. ñ
" Feel free to pick your own mappings that are not affected. I like to use <leader>
nmap <leader><C-n> <Plug>AllWholeOccurrences
xmap <leader><C-n> <Plug>AllWholeOccurrences
nmap <leader>g<C-n> <Plug>AllOccurrences
xmap <leader>g<C-n> <Plug>AllOccurrences
" --------------- end multiple cursors ---------------

View File

@@ -120,7 +120,12 @@ in
render = {
new_render_scheduling = true;
};
misc = { vfr = true; middle_click_paste = false; enable_anr_dialog = false; };
misc = {
vfr = true;
middle_click_paste = false;
enable_anr_dialog = false;
disable_hyprland_logo = true;
};
xwayland = lib.mkIf isPc { force_zero_scaling = true; };
decoration = {