Last active
December 21, 2015 22:29
-
-
Save krsmedlund/6375710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set t_Co=256 | |
set lazyredraw | |
set wildmode=list:longest | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set background=dark | |
set showcmd | |
set guioptions-=l | |
set guioptions-=r | |
set guioptions-=b | |
set guioptions-=T | |
set guiheadroom=0 | |
set guifont=PragmataPro | |
set guiheadroom=0 | |
set title | |
set shell=/bin/bash | |
set noerrorbells | |
set hidden | |
set dir=>/tmp | |
set fileformat=unix | |
set number | |
set splitright | |
set splitbelow | |
set virtualedit=onemore | |
set ignorecase | |
set smartcase | |
set incsearch | |
set encoding=utf-8 | |
set tabstop=4 | |
set backspace=2 | |
set autoindent | |
set laststatus=2 | |
set shiftwidth=4 | |
set expandtab | |
set showbreak=+ | |
set showmatch | |
let mapleader = ',' | |
if has ('unnamedplus') | |
set clipboard=unnamedplus | |
else | |
set clipboard=unnamed | |
endif | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
" UX plugins | |
NeoBundle 'mhinz/vim-startify' | |
NeoBundle 'Shougo/vimproc' | |
NeoBundle 'Shougo/vimshell.vim' | |
NeoBundle 'Shougo/unite.vim' | |
" NeoBundle 'h1mesuke/unite-outline' | |
NeoBundle 'Shougo/vimfiler.vim' | |
NeoBundle 'vimwiki/vimwiki' | |
NeoBundle 'scrooloose/syntastic' | |
NeoBundle 'Valloric/YouCompleteMe' | |
NeoBundle 'marijnh/tern_for_vim' | |
" NeoBundle 'ivanov/vim-ipython' | |
" NeoBundle 'Lokaltog/powerline' | |
NeoBundle 'itchyny/lightline.vim' | |
" NeoBundle 'bling/vim-airline' | |
NeoBundle 'majutsushi/tagbar' | |
NeoBundle 'tpope/vim-fugitive' | |
NeoBundle 'gregsexton/gitv' | |
NeoBundle 'terryma/vim-multiple-cursors' | |
" NeoBundle 'Lokaltog/vim-easymotion' | |
NeoBundle 'Raimondi/delimitMate' | |
NeoBundle 'tpope/vim-commentary' | |
" Syntax stuff | |
NeoBundle 'altercation/vim-colors-solarized' | |
NeoBundle 'tikhomirov/vim-glsl' | |
NeoBundle 'jelera/vim-javascript-syntax' | |
NeoBundle 'pangloss/vim-javascript' | |
NeoBundle 'nathanaelkane/vim-indent-guides' | |
NeoBundle 'ehamberg/vim-cute-python' | |
NeoBundleCheck | |
let g:vimwiki_list = [{'path': '~/wiki/', 'syntax': 'markdown', 'ext': '.md'}] | |
colorscheme solarized | |
syn on | |
let mapleader = "," | |
nmap :W :w | |
nmap :Q :q | |
nnoremap <space>a :Unite -no-split -toggle file_rec/async<cr> | |
nnoremap <space>r :Unite -vertical -winwidth=45 -toggle outline<cr> | |
nnoremap <space>w :Unite -toggle buffer<cr> | |
nnoremap <space>e :VimFiler -toggle<cr> | |
nnoremap <space>/ :Unite grep:.<cr> | |
nnoremap <space>y :Unite history/yank<cr> | |
nnoremap <leader>cc :SyntasticCheck<cr> | |
nnoremap <leader>jd :YcmCompleter GoToDefinitionElseDeclaration<CR> | |
python from powerline.vim import setup as pline_setup | |
python pline_setup() | |
python del pline_setup | |
nmap <F2> :set background=dark<cr> | |
nmap <F3> :set background=light<cr> | |
autocmd FileType python set commentstring=#\ %s | |
highlight SignColumn guibg=#073642 ctermbg=08 | |
highlight VertSplit guibg=#073642 ctermbg=08 | |
set fillchars+=vert:\ | |
let g:lightline = { | |
\ 'colorscheme': 'solarized', | |
\ 'component': { | |
\ 'readonly': '%{&readonly?"":""}', | |
\ }, | |
\ 'separator': { 'left': '', 'right': '' }, | |
\ 'subseparator': { 'left': '', 'right': '' } | |
\ } | |
let g:startify_custom_header = [ | |
\'█████████████████████████████████████████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓', | |
\'████░░░░░░░░░░░░▓█▓▓▓▓▒█░░░░░░░░░░░░░▓█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████████████████████████████████████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓', | |
\'██████▓░░░░░░░▓██▓▓▓▓▓▓▓██░░░░░░░░░▓██▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▓█▓▓▓██▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓', | |
\'██████▓░░░░░░░▓█▓▓▓▓▓▓██░░░░░░░░░▓██░▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓', | |
\'██████▓░░░░░░░▓█▓▓▓▓█▒░░░░░░░░░▓███░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒░░░░░░░░▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒', | |
\'██████▓░░░░░░░▓█▓▓█░░░░░░░░░▓▓█▒█░░░░░░░░░░░░░░░░▒▒▒▒▒░░░░░░░░▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒', | |
\'██████▓░░░░░░░▓██░▒░░░░░░░█▓█▓▓▓▓██░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒░░░', | |
\'██▒░▓█▓░░░░░░░▓░▒░░░░░░░▓██▓▓▓▓▓▓▓▓▓▒██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░▒░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒', | |
\'██▓▓▓█▓░░░░░░░░░░░░░░░███▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▒▒▒▒▒▒▒▒▓▓▓▓', | |
\'████▓█▓░░░░░░░░░░░░░▓░░░▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒▓▒', | |
\'██████▓░░░░░░░░░░░▓████▓███▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▒▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓█████████████████', | |
\'██████▓░░░░░░░░░▓█▓█░░█▓█░░░░░░░░░░░░░█▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░▒▒▒▒▓▓▓▓▓█████████████████████████▓▓▓▓▓▓▓▓▓█████████████████████', | |
\'██████▓░░░░░░▒▓█▓▓█░░█▓▓░░▓███░░███░░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░▒▒▒▒▓▒▒▓▓▓▓▓▓███████████████████████████████████████████████████████', | |
\'██████▓░░░░███▓▓▓▓░░░▓▓█░░███░░███░░█▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓█████████████████████ ✾ ✿ ❀ ✾ ✿ ❀ VIM 7.4 ✾ ✿ ❀ ✾ ✿ ❀ ████████', | |
\'██████░░░██████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██████████████████████████████████████████████████████████████████████████████████', | |
\'████████████████▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███████████████████████████████████████████████████████████████████████████████████', | |
\ '', | |
\ '', | |
\ ] | |
let g:lightline = { | |
\ 'colorscheme': 'solarized_dark', | |
\ 'mode_map': { 'c': 'NORMAL' }, | |
\ 'active': { | |
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ] | |
\ }, | |
\ 'component_function': { | |
\ 'modified': 'MyModified', | |
\ 'readonly': 'MyReadonly', | |
\ 'fugitive': 'MyFugitive', | |
\ 'filename': 'MyFilename', | |
\ 'fileformat': 'MyFileformat', | |
\ 'filetype': 'MyFiletype', | |
\ 'fileencoding': 'MyFileencoding', | |
\ 'mode': 'MyMode', | |
\ }, | |
\ 'separator': { 'left': '', 'right': '' }, | |
\ 'subseparator': { 'left': '', 'right': '' } | |
\ } | |
function! MyModified() | |
return &ft =~ 'help\|vimfiler\|gundo' ? '' : &modified ? '+' : &modifiable ? '' : '-' | |
endfunction | |
function! MyReadonly() | |
return &ft !~? 'help\|vimfiler\|gundo' && &ro ? 'X' : '' | |
endfunction | |
function! MyFilename() | |
return ('' != MyReadonly() ? MyReadonly() . ' ' : '') . | |
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() : | |
\ &ft == 'unite' ? unite#get_status_string() : | |
\ &ft == 'vimshell' ? substitute(b:vimshell.current_dir,expand('~'),'~','') : | |
\ '' != expand('%t') ? expand('%t') : '[No Name]') . | |
\ ('' != MyModified() ? ' ' . MyModified() : '') | |
endfunction | |
function! MyFugitive() | |
return &ft !~? 'vimfiler\|gundo' && exists('*fugitive#head') && strlen(fugitive#head()) ? 'b:'.fugitive#head() : '' | |
endfunction | |
function! MyFileformat() | |
return winwidth('.') > 70 ? &fileformat : '' | |
endfunction | |
function! MyFiletype() | |
return winwidth('.') > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : '' | |
endfunction | |
function! MyFileencoding() | |
return winwidth('.') > 70 ? (strlen(&fenc) ? &fenc : &enc) : '' | |
endfunction | |
function! MyMode() | |
return winwidth('.') > 60 ? lightline#mode() : '' | |
endfunction | |
call tern#Enable() | |
menu <silent> Tern.Jump\ To\ Defintion :TernDef<CR> | |
menu <silent> Tern.See\ Documentation :TernDoc<CR> | |
menu <silent> Tern.DataType :TernType <CR> | |
menu <silent> Tern.Show\ all\ References :TernRefs<CR> | |
menu <silent> Tern.Rename :TernRename <CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment