#viw — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #viw, aggregated by home.social.
-
Day 22: mappings
I have many mappings, often found in someone’s configuration, and being not used.
Some are useful though:
# Normal
# dont move my cursor when I join lines
keymap("n", "J", "mzJ`z", opts)# removes spaces at the end of the line with confirmation
keymap("n", "<leader>t", [[:%s/\s\+$//gce<CR>]], opts)# leaves the cursor in the middle of the screen when you do a next/prev search
keymap("n", "n", "nzzzv", opts) and keymap("n", "N", "Nzzzv", opts) "1/2
-
Day 22: mappings
I have many mappings, often found in someone’s configuration, and being not used.
Some are useful though:
# Normal
# dont move my cursor when I join lines
keymap("n", "J", "mzJ`z", opts)# removes spaces at the end of the line with confirmation
keymap("n", "<leader>t", [[:%s/\s\+$//gce<CR>]], opts)# leaves the cursor in the middle of the screen when you do a next/prev search
keymap("n", "n", "nzzzv", opts) and keymap("n", "N", "Nzzzv", opts) "1/2
-
Day 22: mappings
I have many mappings, often found in someone’s configuration, and being not used.
Some are useful though:
# Normal
# dont move my cursor when I join lines
keymap("n", "J", "mzJ`z", opts)# removes spaces at the end of the line with confirmation
keymap("n", "<leader>t", [[:%s/\s\+$//gce<CR>]], opts)# leaves the cursor in the middle of the screen when you do a next/prev search
keymap("n", "n", "nzzzv", opts) and keymap("n", "N", "Nzzzv", opts) "1/2
-
Day 22: mappings
I have many mappings, often found in someone’s configuration, and being not used.
Some are useful though:
# Normal
# dont move my cursor when I join lines
keymap("n", "J", "mzJ`z", opts)# removes spaces at the end of the line with confirmation
keymap("n", "<leader>t", [[:%s/\s\+$//gce<CR>]], opts)# leaves the cursor in the middle of the screen when you do a next/prev search
keymap("n", "n", "nzzzv", opts) and keymap("n", "N", "Nzzzv", opts) "1/2
-
Day 22: mappings
I have many mappings, often found in someone’s configuration, and being not used.
Some are useful though:
# Normal
# dont move my cursor when I join lines
keymap("n", "J", "mzJ`z", opts)# removes spaces at the end of the line with confirmation
keymap("n", "<leader>t", [[:%s/\s\+$//gce<CR>]], opts)# leaves the cursor in the middle of the screen when you do a next/prev search
keymap("n", "n", "nzzzv", opts) and keymap("n", "N", "Nzzzv", opts) "1/2