Skip to content

Instantly share code, notes, and snippets.

@penguinjournals
Last active November 11, 2021 12:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguinjournals/6521c1fc72102c4c83768d756800e4de to your computer and use it in GitHub Desktop.
Save penguinjournals/6521c1fc72102c4c83768d756800e4de to your computer and use it in GitHub Desktop.
.vimrc
set background=dark
" shell selection
set shell=zsh
syntax on
set visualbell
set encoding=utf-8
" show when you are in insert or visual mode
set showmode
" highlight the line containing the cursor
set cursorline
" show unwanted whitespaces
set listchars=tab:-✈,trail:¶,extends:>,nbsp:◊
set list!
" show filename in title window
set title
" show line numbers
set number
" do not wrap lines
" set nowrap
" indentation
set tabstop=2
set softtabstop=2
set shiftwidth=2
set smarttab
set expandtab
set autoindent
" search
set incsearch
set hlsearch
" python indentation
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment