home.social

#viw — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #viw, aggregated by home.social.

fetched live
  1. 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

    #Vimovember #viw

  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

    #Vimovember #viw

  3. 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

    #Vimovember #viw

  4. 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

    #Vimovember #viw

  5. 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

    #Vimovember #viw