5 ms·
Would you mind sharing it? Im just getting to grips with vim so any pointers towards some simple improvements would be much appreciated.
by majjam 3y ago
Would you mind sharing it? Im just getting to grips with vim so any pointers towards some simple improvements would be much appreciated.
- jstanley 3y agoSure: 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 3y agoOh 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.
- cempaka 3y agorelativenumber is essential too, unless you like typing something like d-638-<Shift>-G just to delete 15 or 20 lines of text.
- jstanley 3y agoI actually think lack of line numbering is essential, because I quite frequently want to select blocks of code with the mouse and yank into the clipboard.
- tambourine_man 3y agoThat is true, but you can integrate tmux and vim with the system's clipboard. Then again, :set nu! is easy to type.
- jstanley 3y agoI read that most people only use about 10% of vim's features, but everyone uses a different 10% :)
- majjam 3y agoThank you!
- gsinclair 3y agoTake a look at the vim-sensible plugin. No need to install it, just see what the generally agreed sensible settings are.
- DiabloD3 3y agoMost of vim-sensible is already default or equivalent on Neovim, fwiw.