Last active
October 3, 2015 05:12
-
-
Save zaftzaft/10570135 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 number | |
set autoindent | |
set shiftwidth=2 | |
set softtabstop=2 | |
set tabstop=2 | |
set expandtab | |
set list | |
set listchars=tab:>-,trail:-,extends:> | |
set noundofile | |
set nobackup | |
set nomodeline | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/unite.vim' | |
NeoBundle 'Shougo/vimproc', { | |
\ 'build' : { | |
\ 'windows' : 'make -f make_mingw32.mak', | |
\ 'cygwin' : 'make -f make_cygwin.mak', | |
\ 'mac' : 'make -f make_mac.mak', | |
\ 'unix' : 'make -f make_unix.mak', | |
\ }, | |
\ } | |
NeoBundle 'Shougo/neomru.vim' | |
NeoBundle 'Shougo/vimfiler' | |
let g:vimfiler_as_default_explorer = 1 | |
let g:vimfiler_safe_mode_by_default = 0 | |
NeoBundle 'w0ng/vim-hybrid' | |
NeoBundle 'kmnk/vim-unite-giti' | |
"NeoBundle 'tpope/vim-fugitive' | |
NeoBundle 'jelera/vim-javascript-syntax' | |
NeoBundle 'jiangmiao/simple-javascript-indenter' | |
let g:SimpleJsIndenter_BriefMode = 1 | |
NeoBundle 'groenewege/vim-less' | |
NeoBundle 'hail2u/vim-css3-syntax' | |
NeoBundle 'kchmck/vim-coffee-script' | |
NeoBundle 'digitaltoad/vim-jade' | |
NeoBundle 'wavded/vim-stylus' | |
NeoBundle 'gist:zaftzaft/35f2c48d8595a2795764', {'script_type' : 'colors' } | |
NeoBundle 'gist:zaftzaft/10569599', { 'script_type' : 'syntax' } | |
NeoBundle 'gist:zaftzaft/7cdd5f5eceae66ab0cf3', { 'script_type' : 'syntax' } | |
NeoBundle 'zaftzaft/vim-less-wrapper' | |
call neobundle#end() | |
filetype plugin indent on | |
NeoBundleCheck | |
call unite#custom#default_action("source/bookmark/directory", "vimfiler") | |
nn <silent> fe :<C-u>VimFilerBufferDir -quit<CR> | |
nn <silent> fb :<C-u>Unite buffer<CR> | |
nn <silent> fm :<C-u>Unite file_mru<CR> | |
nn <silent> fk :<C-u>Unite bookmark<CR> | |
nn <silent> ff :<C-u>UniteWithCurrentDir -buffer-name=files buffer file_mru<CR> | |
"ino <silent> <C-S-v> <Esc>"*p<Insert><Right> | |
"vn <silent> <C-y> "*y | |
vmap <C-y> :w !xsel -ib<CR><CR> | |
vn <silent> < <gv | |
vn <silent> > >gv | |
nn <silent> <ESC><ESC> :nohl<CR> | |
nn <silent> <C-t> :tabedit<CR> | |
nn <silent> <S-TAB> gt | |
function! s:remove_space () | |
let pos = getpos(".") | |
%s/ \+$//ge | |
call setpos(".", pos) | |
unlet pos | |
endfunction | |
function! TabLine() | |
let s = '' | |
for i in range(1, tabpagenr('$')) | |
let buflist = tabpagebuflist(i) | |
let winnr = tabpagewinnr(i) | |
let bufnr = buflist[winnr - 1] | |
let title = bufname(bufnr) | |
let m = getbufvar(bufnr, "&mod") | |
let a = i == tabpagenr() | |
if m && a | |
let s .= '%#TabLineSelMod#' | |
elseif a | |
let s .= '%#TabLineSel#' | |
elseif m | |
let s .= '%#TabLineMod#' | |
else | |
let s .= '%#TabLine#' | |
endif | |
let s .= ' ' . (title == '' ? '#' : title) . ' ' | |
endfor | |
let s .= '%#TabLineFill#' | |
return s | |
endfunction | |
set tabline=%!TabLine() | |
augroup encode | |
au! | |
au BufWrite * call s:remove_space() | |
augroup END | |
colorscheme hybrid | |
syntax on | |
hi TabLine ctermbg=235 cterm=NONE | |
hi TabLineMod ctermfg=72 ctermbg=235 | |
hi TabLineSel ctermfg=111 cterm=NONE | |
hi TabLineSelMod ctermfg=114 cterm=NONE | |
hi TabLineFill ctermbg=236 cterm=NONE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment