Skip to content

Instantly share code, notes, and snippets.

@sph432
Created August 19, 2016 13:48
Show Gist options
  • Select an option

  • Save sph432/2a34bd63e49eae8341c8aa95b467d59f to your computer and use it in GitHub Desktop.

Select an option

Save sph432/2a34bd63e49eae8341c8aa95b467d59f to your computer and use it in GitHub Desktop.
so /etc/vimrc
set whichwrap="b,s,<,>,[,]"
set directory=$XDG_CACHE_HOME/vim,/tmp
set backupdir=$XDG_CACHE_HOME/vim,/tmp
set runtimepath=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM/vimfiles,$VIMRUNTIME
call vundle#begin("$HOME/.config/vim/bundle")
Plugin 'VundleVim/Vundle.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'vim-scripts/Txtfmt-The-Vim-Highlighter'
Plugin 'groenewege/vim-less'
call vundle#end()
let $PYTHONPATH='/usr/lib/python3.5/site-packages'
filetype plugin indent on
"basic behavior
set nocompatible
set whichwrap=b,s,h,l
set viminfo='100,<50,s100,:0,r/tmp,n$XDG_CACHE_HOME/vim/viminfo
"indent rules
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
"appearance
set number
set ruler
set colorcolumn=80
set showcmd
set showtabline=2
set laststatus=2
"colors base16-custom
highlight Comment ctermbg=0 ctermfg=8
highlight ColorColumn ctermbg=1 ctermfg=6
highlight VertSplit ctermbg=3 ctermfg=0
highlight Todo ctermbg=15 ctermfg=0 cterm=italic
"search
set hlsearch
set ignorecase
set smartcase
"mouse support
set mouse=a
set ttymouse=xterm
"syntax
syntax on
set conceallevel=2
"javacomplete
autocmd Filetype java setlocal omnifunc=javacomplete#Complete
setlocal completefunc=javacomplete#CompleteParamsInfo
inoremap <buffer> <C-X><C-U> <C-X><C-U><C-P>
inoremap <buffer> <C-S-Space> <C-X><C-U><C-P>
"aliases
command W wq
command Wsu w ! sudo zsh -c '>%'
command Q qa!
"autocmds
autocmd BufWinleave *.* mkview
autocmd BufWinEnter *.* silent loadview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment