Skip to content

Instantly share code, notes, and snippets.

@loivis
Last active December 4, 2018 20:44
Show Gist options
  • Save loivis/5f734a1eafe9cc03b1e62a879e422dcf to your computer and use it in GitHub Desktop.
Save loivis/5f734a1eafe9cc03b1e62a879e422dcf to your computer and use it in GitHub Desktop.
  • .gitignore_global
  • .vimrc
# secrets #
###########
*.pem
# vim #
#######
*.swp
*.netrwhist
# go #
######
gin-bin
# node.js #
###########
node/
node_modules/
npm-debug.log.*
# ide #
#######
*.iml
.elixir_ls/
.idea/
.classpath
.settings/
.project
.vscode/
# compiled source #
###################
__pycache__/
*.pyc
*.com
*.class
*.dll
*.exe
*.o
*.so
# binary #
##########
*.7z
*.dmg
*.gz
*.tgz
*.iso
*.jar
*.rar
*.tar
*.zip
bin/
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Flutter #
###########
Podfile*
.symlinks/
" https://github.com/amix/vimrc
" https://github.com/jsageryd/.config.d/blob/master/vim/.vimrc
execute pathogen#infect()
execute pathogen#helptags()
syntax on
filetype plugin on
"filetype indent on
" Set to auto read when a file is changed from the outside
set autoread
" :W sudo saves the file
" (useful for handling the permission-denied error)
command W w !sudo tee % > /dev/null
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" highlight search pattern
set hls
" Makes search act like search in modern browsers
set incsearch
" No annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500
" Add a bit extra margin to the left
"set foldcolumn=1
" bright forecolor"
set background=dark
" tab and space
" et: expandtab
" sta: smarttab
" sts: softtabstop
" ts: tabstop
" sw: shiftwidth
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
"autocmd FileType yaml setlocal et sta sw=2 sts=2 ts=2
"autocmd FileType python setlocal et sta sw=4 sts=4 ts=4
" Enable syntax highlighting
syntax enable
try
colorscheme desert
catch
endtry
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
" Use Unix as the standard file type
set ffs=unix,dos,mac
" Turn backup off, since most stuff is in SVN, git et.c anyway...
" set nobackup
" set nowb
set noswapfile
set laststatus=2
"set statusline=%F%m%r%h%w\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ %l:%v[%2p%%\ of\ %L]
"set statusline=%F%m%r%h%w\ %l:%v[%2p%%\ of\ %L]
set statusline=%F%m%r%h%w\ %l/%L[%2p%%]:%v
set statusline+=%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\"}
set statusline+=[%{&ff}][%Y]\ \|\ %-16{strftime(\"%Y-%m-%d\ %H:%M\")}
au VimLeave * if filereadable("[path here]/.netrwhist")|call delete("[path here]/.netrwhist")|endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment