Skip to content

Instantly share code, notes, and snippets.

@ytturi
Last active September 17, 2019 10:43
Show Gist options
  • Save ytturi/d68246265197cc01c4b55bb4f31c6f2b to your computer and use it in GitHub Desktop.
Save ytturi/d68246265197cc01c4b55bb4f31c6f2b to your computer and use it in GitHub Desktop.
My own configurations for VIM. Recommended for everyone :-)
" SETUP
" Copy this file into /etc/vim/
" Set the correct mode `chmod 0644 /etc/vim/vim.ytturi`
" Edit main config file (`vim /etc/vim/vimrc`) and add this line:
" source /etc/vim/vimrc.ytturi
" Mouse mode == command line
set mouse=c
" Press <F2> to toggle pastemode
set pastetoggle=<F2>
" ### TABS ###
" Spaces a TAB characters occupies
set tabstop=3
" Set spaces used with tabs
set softtabstop=4
" Make tab insert spaces
set expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment