1. 19
    1. 4

      By biggest vim annoyance: having to do “:set paste” just to be able to paste stuff in without screwing up my indents.

      So then I found this: https://github.com/ConradIrwin/vim-bracketed-paste

      1. 2

        I have these three lines in my ~/.vimrc, which bind the normal Ctrl-C, Ctrl-X, and Ctrl-V to work with the clipboard as they do in other applications.

        vmap <C-c> y:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR>
        vmap <C-x> d:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR>
        nmap <C-v> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p
        

        Ctrl-V pastes text directly, bypassing any auto-formatting.

        Note that this relies on xclip being installed.

    2. 3

      I’m a big fan of Practical Vim from Prag Prog, has a lot of tips like these and more: https://pragprog.com/book/dnvim/practical-vim

    3. 2

      My vim annoyance is that it’s not emacs. (Trollface)

      1. 6

        my vim annoyance is that its non nvi

    4. 1

      I think the best tip in there is set backupdir=~/.vim/backup

    5. 1

      My gripe is that directory can use // to mangle the full path for the swapfile name and store it somewhere else, but for backupdir this is not implemented (and I edit a lot of files with the same basename…).

      1. 3

        That is a good point, I am actually going to put in a bug against neovim, maybe they can fix that – it should cause any harm and has an large upside.

        1. 2

          *should not – and it was already there but seems to have fallen into a weird state: https://github.com/neovim/neovim/issues/2501 – I might poke at it.