Skip to content

Instantly share code, notes, and snippets.

@spikedengineering
Created February 2, 2023 13:10
Show Gist options
  • Save spikedengineering/c50a7ea497dfa7b6e12ab6b1420a2d08 to your computer and use it in GitHub Desktop.
Save spikedengineering/c50a7ea497dfa7b6e12ab6b1420a2d08 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
syntax on
" general
set encoding=utf-8
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set nobackup
set scrolloff=5
set incsearch
set ignorecase
set smartcase
set hlsearch
hi Search ctermbg=LightYellow
hi Search ctermfg=Red
set showmatch
set showcmd
set showmode
set history=1000
set wildmenu
set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
" personal settings
set number
set relativenumber
set ruler
set clipboard=unnamed
" split navigations
set splitright
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
" PEP8
au BufNewFile,BufRead *.py set
\ tabstop=4
\ softtabstop=4
\ shiftwidth=4
\ textwidth=79
\ expandtab
\ autoindent
\ fileformat=unix
" Full Stack Development
au BufNewFile,BufRead *.js, *.html, *.css set
\ tabstop=4
\ softtabstop=4
\ shiftwidth=4
" Flagging Unnecessary Whitespace
highlight BadWhitespace ctermbg=red guibg=darkred
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
@spikedengineering
Copy link
Author

Basic .vimrc that I use on my standalone systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment