top | item 36756085

(no title)

majjam | 2 years ago

Would you mind sharing it? Im just getting to grips with vim so any pointers towards some simple improvements would be much appreciated.

discuss

order

jstanley|2 years ago

Sure:

  set ts=4
  set sw=4
  set softtabstop=4
  set expandtab
  set hlsearch
  set incsearch
  set wildmode=longest,list
OK, only 7 lines then :)

Basically: tabs are 4 spaces, searching works better, and tab completion works like bash.

tambourine_man|2 years ago

Oh no, I need at the very least timeoutlen, visualbell and line number. I type that manually when I SSH if I must. Don't want to wait for ESC, no beeps at all and I wanna know where I am on the document.

And lots more is needed for decent Vim IMO. smartcase, set hidden, etc.

majjam|2 years ago

Thank you!

gsinclair|2 years ago

Take a look at the vim-sensible plugin. No need to install it, just see what the generally agreed sensible settings are.

DiabloD3|2 years ago

Most of vim-sensible is already default or equivalent on Neovim, fwiw.