Skip to content

Instantly share code, notes, and snippets.

@valetarton
Created September 12, 2022 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valetarton/35aefb7be6e9e90720179c3a0c305258 to your computer and use it in GitHub Desktop.
Save valetarton/35aefb7be6e9e90720179c3a0c305258 to your computer and use it in GitHub Desktop.
Vim Config
"set background=light
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
"Rust Stuff
nnoremap ;c <Esc>:!rustc %<Cr>
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
"" Don't try to be vi compatible
"set nocompatible
"
"" Helps force plugins to load correctly when it is turned back on below
"filetype off
"
"" TODO: Load plugins here (pathogen or vundle)
"
"" Turn on syntax highlighting
"syntax on
"
"" For plugins to load correctly
"filetype plugin indent on
"set wrap
"set textwidth=79
"set formatoptions=tcqrn1
"set tabstop=2
"set shiftwidth=2
"set softtabstop=2
"set expandtab
"set noshiftround
"set autoindent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment