raa0121 12 gadi atpakaļ
vecāks
revīzija
45a8066ffd
3 mainītis faili ar 347 papildinājumiem un 19 dzēšanām
  1. 266 0
      #.vimrc#
  2. 1 1
      .gvimrc
  3. 80 18
      .vimrc

+ 266 - 0
#.vimrc#

@@ -0,0 +1,266 @@
+" coding:utf-8
+" ζ*'ヮ')ζ ζ(*'ヮ'リ+
+"
+set ignorecase
+set smartcase
+set tabstop=2
+set expandtab
+set autoindent
+set backspace=2
+set wrapscan
+set showmatch
+set wildmenu
+set formatoptions+=mM
+set softtabstop=2
+set shiftwidth=4
+set fileencodings=utf-8,cp932,euc-jp,default,latin
+set number
+set ruler
+set nolist
+set wrap
+set laststatus=2
+set cmdheight=2
+set showcmd
+set title
+syntax on
+
+" ファイル名に大文字小文字の区別がないシステム用の設定:
+"   (例: DOS/Windows/MacOS)
+"
+if filereadable($VIM . '/vimrc') && filereadable($VIM . '/ViMrC')
+  " tagsファイルの重複防止
+  set tags=./tags,tags
+endif
+
+" コンソールでのカラー表示のための設定(暫定的にUNIX専用)
+if has('unix') && !has('gui_running')
+  let uname = system('uname')
+  if uname =~? "linux"
+    set term=builtin_linux
+  elseif uname =~? "freebsd"
+    set term=builtin_cons25
+  elseif uname =~? "Darwin"
+    set term=beos-ansi
+  else
+    set term=builtin_xterm
+  endif
+  unlet uname
+endif
+
+" コンソール版で環境変数$DISPLAYが設定されていると起動が遅くなる件へ対応
+if !has('gui_running') && has('xterm_clipboard')
+  set clipboard=exclude:cons\\\|linux\\\|cygwin\\\|rxvt\\\|screen
+endif
+
+" タブページの切り替えをWindowsのように
+" CTRL+Tab SHIFT+Tabで行うように.
+if v:version >= 700
+  nnoremap <C-Tab>   gt
+  nnoremap <C-S-Tab> gT
+endif
+
+set nocompatible
+filetype off
+
+if has('vim_starting')
+  set runtimepath+=~/.vim/neobundle.vim.git
+
+endif
+call neobundle#rc(expand('~/.bundle'))
+
+NeoBundle 'Shougo/echodoc.git'
+NeoBundle 'Shougo/neocomplcache.git'
+NeoBundle 'Shougo/neocomplcache-rsense'
+NeoBundle 'Shougo/neobundle.vim.git'
+NeoBundle 'Shougo/unite.vim.git'
+NeoBundle 'Shougo/vimfiler.git'
+NeoBundle 'Shougo/vimshell.git'
+NeoBundle 'Shougo/vimproc'
+NeoBundle 'thinca/vim-quickrun'
+NeoBundle 'tsukkee/lingr-vim'
+NeoBundle 'Shougo/neosnippet'
+NeoBundle 'browser.vim'
+NeoBundle 'synmark.vim'
+NeoBundle 'tyru/open-browser.vim'
+NeoBundle 'mattn/gist-vim'
+NeoBundle 'mattn/webapi-vim'
+NeoBundle 'mru.vim'
+NeoBundle 'thinca/vim-ft-clojure'
+NeoBundle 'ujihisa/neco-ghc'
+NeoBundle 'sudo.vim'
+NeoBundle 'ujihisa/vimshell-ssh'
+NeoBundle 'Shougo/unite-ssh'
+NeoBundle 'ujihisa/neco-look'
+NeoBundle 'vim-jp/vital.vim'
+NeoBundle 'dag/vim2hs'
+NeoBundle 'eagletmt/ghcmod-vim'
+NeoBundle 'git://vim-latex.git.sourceforge.net/gitroot/vim-latex/vim-latex'
+
+NeoBundle 'thinca/vim-singleton'
+NeoBundle 'mattn/benchvimrc-vim'
+NeoBundle 'ryutorion/vim-itunes'
+NeoBundle 'git@github.com:raa0121/vim-ulilith'
+NeoBundle 'mattn/libcallex-vim'
+NeoBundle 'thinca/vim-splash'
+NeoBundle 'mattn/sonictemplate-vim'
+NeoBundle 'raa0121/vim-eclim'
+NeoBundle 'thinca/vim-github'
+NeoBundle 'nosami/Omnisharp'
+
+filetype plugin indent on
+if has('clientserver')
+  call singleton#enable()
+end
+
+set ww+=h,l,>,<,[,]
+set mouse=a
+set ttymouse=xterm2
+set clipboard=unnamedplus
+
+" ,is: シェルを起動
+nnoremap <silent> ,is :VimShell<CR>
+" ,ipy: pythonを非同期で起動
+nnoremap <silent> ,ipy :VimShellInteractive python<CR>
+" ,irb: irbを非同期で起動
+nnoremap <silent> ,irb :VimShellInteractive irb<CR>
+" ,ss: 非同期で開いたインタプリタに現在の行を評価させる
+vmap <silent> ,ss :VimShellSendString<CR>
+" 選択中に,ss: 非同期で開いたインタプリタに選択行を評価させる
+nnoremap <silent> ,ss <S-v>:VimShellSendString<CR>
+" ,vs: vimshell
+nnoremap <silent> ,vs :tabnew +VimShell<CR>
+" ,vr: .vimrc
+nnoremap <silent> ,vr :tabnew ~/.vimrc<CR>
+nnoremap <silent> ,so :so ~/.vimrc<CR>
+nnoremap <silent> ,nu :tabnew +Unite\ neobundle/update<CR>
+nnoremap <silent> ,ll :tabnew +LingrLaunch
+
+" Disable AutoComplPop. Comment out this line if AutoComplPop is not
+" installed.
+let g:acp_enableAtStartup = 0
+" Launches neocomplcache automatically on vim startup.
+let g:neocomplcache_enable_at_startup = 1
+" Use smartcase.
+let g:neocomplcache_enable_smart_case = 1
+" Use camel case completion.
+let g:neocomplcache_enable_camel_case_completion = 1
+" Use underscore completion.
+let g:neocomplcache_enable_underbar_completion = 1
+" Sets minimum char length of syntax keyword.
+let g:neocomplcache_min_syntax_length = 3
+
+let g:vimfiler_as_default_explorer = 1
+
+let g:neocomplcache#sources#rsense#home_directory = '/opt/rsense-0.3/'
+
+let g:neocomplcache_text_mode_filetypes = {
+\  'tex': 1,
+\  'plaintex': 1,
+\} 
+
+"tabで補完候補の選択を行う
+inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<TAB>"
+inoremap <expr><S-TAB> pumvisible() ? "\<Up>" : "\<S-TAB>"
+
+let g:OmniSharp_host = "http://localhost:2000"
+let g:OmniSharp_typeLookupInPreview = 1
+setlocal omnifunc=OmniSharp#Complete
+set noshowmatch
+
+
+let g:netrw_nogx = 1
+nmap gx <Plug>(openbrowser-smart-search)
+vmap gx <Plug>(openbrowser-smart-search)
+
+let g:quickrun_config = {}
+let g:quickrun_config['markdown'] = {
+      \ 'outputter': 'browser'
+      \ }
+let g:lingr_vim_footer = ' [vim]'
+augroup plugin-lingr-vim
+  autocmd!
+  autocmd FileType lingr-messages nmap <silent> <buffer> t <Plug>(lingr-messages-show-say-buffer)
+  autocmd FileType lingr-say let &syntax='clojure'
+augroup END
+
+augroup vimrc
+    autocmd!
+augroup END
+
+function! s:SID_PREFIX()
+    return matchstr(expand('<sfile>'), '<SNR>\d\+_')
+endfunction
+
+set titlelen=100
+set guioptions-=e
+
+autocmd vimrc BufEnter * let &titlestring = '%{' . s:SID_PREFIX() . 'titlestring()}'
+autocmd vimrc User plugin-lingr-unread let &titlestring = '%{' . s:SID_PREFIX() . 'titlestring()}'
+
+if exists('$TMUX') || exists('$WINDOW')
+    set t_ts=k
+    set t_fs=\
+endif
+
+function! s:titlestring()
+    if &filetype =~ '^lingr'
+        let &titlestring = 'lingr: ' . lingr#unread_count()
+    else
+        let &titlestring = bufname('')
+    endif
+endfunction
+
+" tabline
+set showtabline=2 " always show tabline
+let &tabline = '%!' . s:SID_PREFIX() . 'tabline()'
+
+function! s:tabline()
+    " show each tab
+    let s = ''
+    for i in range(1, tabpagenr('$'))
+        let list = tabpagebuflist(i)
+        let nr = tabpagewinnr(i)
+        let current_tabnr = tabpagenr()
+
+        "let title = bufname('') 
+        if i == current_tabnr
+            let title = fnamemodify(getcwd(), ':t') . '/'
+            "let title = bufname('')
+        else
+            let title = fnamemodify(gettabvar(i, 'cwd'), ':t') . '/'
+        endif
+        let title = empty(title) ? '[No Name]' : title
+        let s .= i == current_tabnr ? '%#TabLineSel#' : '%#TabLine#'
+        let s .= '%' . i . 'T[' . i . '] ' . title
+        let s .= '  '
+    endfor
+
+    " show lingr unread count
+    let lingr_unread = ""
+    if exists('*lingr#unread_count')
+        let lingr_unread_count = lingr#unread_count()
+        if lingr_unread_count > 0
+            let lingr_unread = "%#ErrorMsg#(" . lingr_unread_count . ")"
+        elseif lingr_unread_count == 0
+            let lingr_unread = "()"
+        endif
+    endif
+    " build tabline
+    let s .= '%#TabLineFill#%T%=%<[' . getcwd() . ']' . lingr_unread
+    return s
+endfunction
+
+let g:github_user = 'raa0121'
+let g:github_token = 'e3ded9cf6669cc31dbca'
+
+let g:github#user = 'raa0121'
+
+set shellslash
+set grepprg=grep\ -nH\ $*
+let g:tex_flavor='tex'
+let g:Tex_CompileRule_div = 'platex --interaction=nonstopmode $*'
+let g:Tex_BibtexFlavor = 'jbibtex'
+let g:Tex_ViewRule_dvi = '/cygdrive/c/texlive/2012/bin/win32/dviout.exe'
+let g:Tex_FormatDependency_pdf = 'dvi,pdf'
+let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi'
+let g:Tex_ViewRule_pdf = '/cygdrive/d/Program/SumatraPDF/SumatraPDF.exe'

+ 1 - 1
.gvimrc

@@ -10,7 +10,7 @@ nnoremap <silent> <C-F2> :if &guioptions =~# 'T' <Bar>
 if has('win32') || has('win64')
   set guifont=Aicty:h12
 elseif has('unix')
-  set guifont=Ricty\ 12
+  set guifont=RictyforPowerline\ 12
 endif
 colorscheme evening
 if has('multi_byte_ime') || has('xim')

+ 80 - 18
.vimrc

@@ -56,7 +56,13 @@ endif
 " CTRL+Tab SHIFT+Tabで行うように.
 if v:version >= 700
   nnoremap <C-Tab>   gt
+  inoremap <C-Tab>   gt
   nnoremap <C-S-Tab> gT
+  inoremap <C-S-Tab> gT
+endif
+
+if has('+regexpengine')
+  set re=0
 endif
 
 set nocompatible
@@ -105,6 +111,16 @@ NeoBundle 'thinca/vim-splash'
 NeoBundle 'mattn/sonictemplate-vim'
 NeoBundle 'raa0121/vim-eclim'
 NeoBundle 'thinca/vim-github'
+NeoBundle 'nosami/Omnisharp'
+NeoBundle 'jceb/vim-orgmode'
+
+"NeoBundle 'Lokaltog/powerline', { 'rtp' : 'powerline/bindings/vim'}
+"NeoBundle 'taichouchou2/alpaca_powertabline'
+"NeoBundle 'zhaocai/linepower.vim'
+
+NeoBundle 'osyo-manga/quickrun-hook-u-nya-'
+NeoBundle 'osyo-manga/unite-quickfix'
+NeoBundle 'basyura/J6uil.vim'
 
 filetype plugin indent on
 if has('clientserver')
@@ -132,38 +148,80 @@ nnoremap <silent> ,vs :tabnew +VimShell<CR>
 nnoremap <silent> ,vr :tabnew ~/.vimrc<CR>
 nnoremap <silent> ,so :so ~/.vimrc<CR>
 nnoremap <silent> ,nu :tabnew +Unite\ neobundle/update<CR>
-nnoremap <silent> ,ll :tabnew +LingrLaunch
+nnoremap <silent> ,ll :tabnew +LingrLaunch<CR>
 
 " Disable AutoComplPop. Comment out this line if AutoComplPop is not
 " installed.
 let g:acp_enableAtStartup = 0
-" " Launches neocomplcache automatically on vim startup.
+" Launches neocomplcache automatically on vim startup.
 let g:neocomplcache_enable_at_startup = 1
-" " Use smartcase.
+" Use smartcase.
 let g:neocomplcache_enable_smart_case = 1
-" " Use camel case completion.
+" Use camel case completion.
 let g:neocomplcache_enable_camel_case_completion = 1
-" " Use underscore completion.
+" Use underscore completion.
 let g:neocomplcache_enable_underbar_completion = 1
-" " Sets minimum char length of syntax keyword.
+" Sets minimum char length of syntax keyword.
 let g:neocomplcache_min_syntax_length = 3
 
 let g:vimfiler_as_default_explorer = 1
 
 let g:neocomplcache#sources#rsense#home_directory = '/opt/rsense-0.3/'
+
+let g:neocomplcache_text_mode_filetypes = {
+\  'tex': 1,
+\  'plaintex': 1,
+\} 
+
 "tabで補完候補の選択を行う
 inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<TAB>"
 inoremap <expr><S-TAB> pumvisible() ? "\<Up>" : "\<S-TAB>"
 
+let g:OmniSharp_host = 'http://localhost:2020'
+let g:OmniSharp_typeLookupInPreview = 1
+setlocal omnifunc=OmniSharp#Complete
+set noshowmatch
+
+
 let g:netrw_nogx = 1
 nmap gx <Plug>(openbrowser-smart-search)
 vmap gx <Plug>(openbrowser-smart-search)
 
 let g:quickrun_config = {}
 let g:quickrun_config['markdown'] = {
-      \ 'outputter': 'browser'
-      \ }
-let g:lingr_vim_footer = ' [vim]'
+  \ 'outputter': 'browser'
+\ }
+let g:quickrun_config.ruby = {
+  \ 'command': 'ruby',
+  \ 'exec': '/usr/bin/env ruby %s',
+  \ 'tempfile': '{tempname()}.rb'
+\ }
+let g:quickrun_config = {
+  \ '_' : {
+    \ 'hook/close_unite_quickfix/enable_hook_loaded' : 1,
+    \ 'hook/unite_quickfix/enable_failure' : 1,
+    \ 'hook/close_quickfix/enable_exit' : 1,
+    \ 'hook/close_buffer/enable_failure' : 1,
+    \ 'hook/close_buffer/enable_empty_data' : 1,
+    \ 'outputter' : 'multi:buffer:quickfix',
+    \ 'hook/u_nya_/enable' : 1,
+    \ 'hook/sweep/enable' : 0,
+    \ 'outputter/buffer/split' : ':botright 15sp',
+    \ 'outputter/buffer/running_mark' : 'バン(∩`・ω・)バンバンバンバン゙ン',
+    \ 'runner' : 'vimproc',
+    \ 'runner/vimproc/updatetime' : 40,
+    \ 'runner/vimproc/sleep' : 0,
+  \ }
+\ }
+
+let g:lingr_vim_user = 'raa0121'
+let g:J6uil_display_offline  = 0
+let g:J6uil_display_online   = 0
+let g:J6uil_echo_presence    = 1
+let g:J6uil_display_icon     = 0
+let g:J6uil_display_interval = 0
+let g:J6uil_updatetime       = 1000
+
 augroup plugin-lingr-vim
   autocmd!
   autocmd FileType lingr-messages nmap <silent> <buffer> t <Plug>(lingr-messages-show-say-buffer)
@@ -240,12 +298,16 @@ endfunction
 let g:github_user = 'raa0121'
 let g:github_token = 'e3ded9cf6669cc31dbca'
 
-set shellslash
-set grepprg=grep\ -nH\ $*
-let g:tex_flavor='tex'
-let g:Tex_CompileRule_div = 'platex --interaction=nonstopmode $*'
-let g:Tex_BibtexFlavor = 'jbibtex'
-let g:Tex_ViewRule_dvi = '/cygdrive/c/texlive/2012/bin/win32/dviout.exe'
-let g:Tex_FormatDependency_pdf = 'dvi,pdf'
-let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi'
-let g:Tex_ViewRule_pdf = '/cygdrive/d/Program/SumatraPDF/SumatraPDF.exe'
+let g:github#user = 'raa0121'
+
+if has('win32') || has('win64') || has('win32unix')
+  set shellslash
+  set grepprg=grep\ -nH\ $*
+  let g:tex_flavor='tex'
+  let g:Tex_CompileRule_div = 'platex --interaction=nonstopmode $*'
+  let g:Tex_BibtexFlavor = 'jbibtex'
+  let g:Tex_ViewRule_dvi = '/cygdrive/c/texlive/2012/bin/win32/dviout.exe'
+  let g:Tex_FormatDependency_pdf = 'dvi,pdf'
+  let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi'
+  let g:Tex_ViewRule_pdf = '/cygdrive/d/Program/SumatraPDF/SumatraPDF.exe'
+endif