Ask HN: Share your .vimrc file and what plug-ins you use

14 points by mrburton ↗ HN

4 comments

[ 2.7 ms ] story [ 17.8 ms ] thread
Plugins:

yuttie/comfortable-motion.vim - Gives you nice smooth scrolling to the bottom junegunn/fzf - Great fuzzy searching for files scrooloose/nerdtree - A file system navigator itchyny/lightline.vim - nice fancy status bar.

Below are some various things I actually use... and not all of the junk in my vimrc I don't actually use.

Plugins:

https://github.com/tmhedberg/matchit

https://github.com/tpope/vim-sleuth

https://github.com/tpope/vim-repeat

https://github.com/tpope/vim-surround

https://github.com/junegunn/fzf.vim

(also see https://jesseleite.com/posts/2/its-dangerous-to-vim-alone-ta... )

Some snippets:

https://github.com/mhinz/vim-galore#change-cursor-style-depe...

https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-...

and a similar snippet:

    " consistent direction regardless of initial charsearch direction for ; and ,
    nnoremap <expr> ; ',;'[getcharsearch().forward]
    nnoremap <expr> , ';,'[getcharsearch().forward]
I use my arrow keys for buffer navigation in normal mode:

    nnoremap <up> :Buffers<cr>
    nnoremap <down> :b#<cr>
    nnoremap <left> :bp<cr>
    nnoremap <right> :bn<cr>
...and disable them in insert mode:

    inoremap <down> <nop>
    inoremap <left> <nop>
    inoremap <right> <nop>
    inoremap <up> <nop>
I had a meeting with Bill Joy some time ago. He typed on his laptop the whole time (presumably taking notes). I wanted to ask him what he had in his (or if even still uses VI/vi derivatives)

But of course I didn’t.