guest@dotshare [~/groups/vim/rc] $ ls vimrc/ | cat

vimrc (raw, dl)

XenGi Aug 11, 2016 (vim/rc)
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
"               __
"      __  __  /\_\     ___ ___     _ __    ___
"     /\ \/\ \ \/\ \  /' __` __`\  /\`'__\ /'___\
"  __ \ \ \_/ | \ \ \ /\ \/\ \/\ \ \ \ \/ /\ \__/
" /\_\ \ \___/   \ \_\\ \_\ \_\ \_\ \ \_\ \ \____\
" \/_/  \/__/     \/_/ \/_/\/_/\/_/  \/_/  \/____/
"
" by XenGi <xengi@mailbox.org>
" (c) 2016
"
" 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

" github flavored markdown
augroup markdown
    au!
    au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown
augroup END

" python folding
set nofoldenable

" fix arrow keys
"map <ESC>d <C-Left>
"map <ESC>c <C-Right>
"map! <ESC>d <C-Left>
"map! <ESC>c <C-Right>

CLICK TO VIEW

x