Skip to content

Instantly share code, notes, and snippets.

@XenGi
Created April 24, 2018 19:10
Show Gist options
  • Save XenGi/691d32c49195ee16b6164afff3ba0081 to your computer and use it in GitHub Desktop.
Save XenGi/691d32c49195ee16b6164afff3ba0081 to your computer and use it in GitHub Desktop.
" __
" __ __ /\_\ ___ ___ _ __ ___
" /\ \/\ \ \/\ \ /' __` __`\ /\`'__\ /'___\
" __ \ \ \_/ | \ \ \ /\ \/\ \/\ \ \ \ \/ /\ \__/
" /\_\ \ \___/ \ \_\\ \_\ \_\ \_\ \ \_\ \ \____\
" \/_/ \/__/ \/_/ \/_/\/_/\/_/ \/_/ \/____/
"
" by XenGi <[email protected]>
"
" setup:
"
" mkdir -p ~/.vim/autoload ~/.vim/bundle ~/.vim/colors ~/.vim/ftplugin
" wget -O ~/.vim/colors/wombat256mod.vim "http://www.vim.org/scripts/download_script.php?src_id=13400"
" curl -so ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
" git clone git://github.com/Lokaltog/vim-powerline.git ~/.vim/bundle/vim-powerline
" git clone git://github.com/jtratner/vim-flavored-markdown.git ~/.vim/bundle/vim-flavored-markdown
" wget -O ~/.vim/ftplugin/python_editing.vim "http://www.vim.org/scripts/download_script.php?src_id=5492"
" enable pathogen
call pathogen#infect()
" compatibility with vi
set nocompatible
" shell
set shell=fish
" encoding
set encoding=utf-8
set fileencoding=utf-8
" show whitespace
" MUST be inserted BEFORE the colorscheme command
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
au InsertLeave * match ExtraWhitespace /\s\+$/
" transparent font
function! AdaptColorscheme()
highlight clear CursorLine
highlight Normal ctermbg=none
highlight LineNr ctermbg=none
highlight Folded ctermbg=none
highlight NonText ctermbg=none
highlight SpecialKey ctermbg=none
highlight VertSplit ctermbg=none
highlight SignColumn ctermbg=none
endfunction
autocmd ColorScheme * call AdaptColorscheme()
" syntax and colors
syntax on
filetype on
filetype indent on
filetype plugin on
set title
set wrap
set scrolloff=3
set number
set relativenumber
set showmode
set ruler
set background=dark
set laststatus=2 " needed for vim-powerline
set t_Co=256
colorscheme wombat256mod
color wombat256mod
set cmdheight=1
set hidden
set colorcolumn=120
highlight ColorColumn ctermbg=233
" search
set hlsearch
set incsearch
set ignorecase
set smartcase
set history=1000
set undolevels=1000
set wrapscan
" stuff
set backspace=indent,eol,start
set ffs=unix,dos,mac
set textwidth=120
" tabs and spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
set expandtab
" disable stupid backup and swap files - they trigger too many events for file system watchers
set nobackup
set nowritebackup
set noswapfile
" python folding
set nofoldenable
" disable visual mode on mouse click
set mouse-=a
" fix arrow keys
"map <ESC>d <C-Left>
"map <ESC>c <C-Right>
"map! <ESC>d <C-Left>
"map! <ESC>c <C-Right>
let g:powerline_pycmd = 'py3'
let g:powerline_pyeval = '"py3eval'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment