Skip to content

Instantly share code, notes, and snippets.

@giner
Last active January 24, 2024 09:47
Show Gist options
  • Save giner/e7d7313dc678937f3b5f618843462d96 to your computer and use it in GitHub Desktop.
Save giner/e7d7313dc678937f3b5f618843462d96 to your computer and use it in GitHub Desktop.
VIM: make vim useful
## VIM: Unbound copy/paste buffer (default is 50 lines or 10 Kbyte)
echo "set viminfo='100,h" >> ~/.vimrc
## VIM: Increase max tabs limit (useful with `vim -p`, default is 10)
echo "set tabpagemax=100" >> ~/.vimrc
## VIM: Remember more commands and search patterns in history (default is 50)
echo "set history=1000" >> ~/.vimrc
## VIM: Highlight trailing witespaces
echo 'augroup highlight-whitespaces | autocmd! | autocmd BufEnter * match Error /\s\+$/ | augroup END' >> ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment