Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

いろいろ

  • Loading branch information...
commit 5839d20cb4b7176390859f9ffaef523dc948fa5c 1 parent 1d1dd3e
UCHIDA Masaru authored
View
17 .bashrc
@@ -13,21 +13,24 @@ export LC_ALL=ja_JP.utf-8
#$B%V%m%C%/%5%$%:$NC10L(B
export BLOCKSIZE=k
-
-export EDITOR=vim
-#alias vi='env LANG=ja_JP.UTF-8 /Applications/MacVim.app/Contents/MacOS/Vim "$@"'
-#alias vim='env LANG=ja_JP.UTF-8 /Applications/MacVim.app/Contents/MacOS/Vim "$@"'
-alias vi='/usr/bin/vim'
-alias vim='/usr/bin/vim'
+export EDITOR=/opt/local/bin/vim
export NEXINIT=set exrc
# git commit EDITOR
-GIT_EDITOR=/usr/bin/vim
+GIT_EDITOR=vim
export GIT_EDITOR
# $B%Z!<%8Aw$j$K(Bless
export PAGER=less
+# ls$B$r%+%i!<%j%s%0(B
+# export LS_OPTIONS='--color=auto'
+# export CLICOLOR='Yes'
+# export LSCOLORS=''
+
+# grep$B<B9T;~$KI,$:IUM?(B
+export GREP_OPTIONS="--color=auto"
+
# less$B$N%9%F!<%?%99T$K%U%!%$%kL>!"9T?t!"%Q!<%;%s%F!<%8I=<((B
export LESS='-X -i -P ?f%f:(stdin). ?lb%lb?L/%L.. [?eEOF:?pb%pb\%..]'
View
170 .vim/plugin_/acp.vim
@@ -1,170 +0,0 @@
-"=============================================================================
-" Copyright (c) 2007-2009 Takeshi NISHIDA
-"
-" GetLatestVimScripts: 1879 1 :AutoInstall: AutoComplPop
-"=============================================================================
-" LOAD GUARD {{{1
-
-if exists('g:loaded_acp')
- finish
-elseif v:version < 702
- echoerr 'AutoComplPop does not support this version of vim (' . v:version . ').'
- finish
-endif
-let g:loaded_acp = 1
-
-" }}}1
-"=============================================================================
-" FUNCTION: {{{1
-
-"
-function s:defineOption(name, default)
- if !exists(a:name)
- let {a:name} = a:default
- endif
-endfunction
-
-"
-function s:makeDefaultBehavior()
- let behavs = {
- \ '*' : [],
- \ 'ruby' : [],
- \ 'python' : [],
- \ 'perl' : [],
- \ 'xml' : [],
- \ 'html' : [],
- \ 'xhtml' : [],
- \ 'css' : [],
- \ }
- "---------------------------------------------------------------------------
- if !empty(g:acp_behaviorUserDefinedFunction) &&
- \ !empty(g:acp_behaviorUserDefinedMeets)
- for key in keys(behavs)
- call add(behavs[key], {
- \ 'command' : "\<C-x>\<C-u>",
- \ 'completefunc' : g:acp_behaviorUserDefinedFunction,
- \ 'meets' : g:acp_behaviorUserDefinedMeets,
- \ 'repeat' : 0,
- \ })
- endfor
- endif
- "---------------------------------------------------------------------------
- for key in keys(behavs)
- call add(behavs[key], {
- \ 'command' : "\<C-x>\<C-u>",
- \ 'completefunc' : 'acp#completeSnipmate',
- \ 'meets' : 'acp#meetsForSnipmate',
- \ 'onPopupClose' : 'acp#onPopupCloseSnipmate',
- \ 'repeat' : 0,
- \ })
- endfor
- "---------------------------------------------------------------------------
- for key in keys(behavs)
- call add(behavs[key], {
- \ 'command' : g:acp_behaviorKeywordCommand,
- \ 'meets' : 'acp#meetsForKeyword',
- \ 'repeat' : 0,
- \ })
- endfor
- "---------------------------------------------------------------------------
- for key in keys(behavs)
- call add(behavs[key], {
- \ 'command' : "\<C-x>\<C-f>",
- \ 'meets' : 'acp#meetsForFile',
- \ 'repeat' : 1,
- \ })
- endfor
- "---------------------------------------------------------------------------
- call add(behavs.ruby, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForRubyOmni',
- \ 'repeat' : 0,
- \ })
- "---------------------------------------------------------------------------
- call add(behavs.python, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForPythonOmni',
- \ 'repeat' : 0,
- \ })
- "---------------------------------------------------------------------------
- call add(behavs.perl, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForPerlOmni',
- \ 'repeat' : 0,
- \ })
- "---------------------------------------------------------------------------
- call add(behavs.xml, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForXmlOmni',
- \ 'repeat' : 1,
- \ })
- "---------------------------------------------------------------------------
- call add(behavs.html, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForHtmlOmni',
- \ 'repeat' : 1,
- \ })
- "---------------------------------------------------------------------------
- call add(behavs.xhtml, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForHtmlOmni',
- \ 'repeat' : 1,
- \ })
- "---------------------------------------------------------------------------
- call add(behavs.css, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'meets' : 'acp#meetsForCssOmni',
- \ 'repeat' : 0,
- \ })
- "---------------------------------------------------------------------------
- return behavs
-endfunction
-
-" }}}1
-"=============================================================================
-" INITIALIZATION {{{1
-
-"-----------------------------------------------------------------------------
-call s:defineOption('g:acp_enableAtStartup', 1)
-call s:defineOption('g:acp_mappingDriven', 0)
-call s:defineOption('g:acp_ignorecaseOption', 1)
-call s:defineOption('g:acp_completeOption', '.,w,b,k')
-call s:defineOption('g:acp_completeoptPreview', 0)
-call s:defineOption('g:acp_behaviorUserDefinedFunction', '')
-call s:defineOption('g:acp_behaviorUserDefinedMeets', '')
-call s:defineOption('g:acp_behaviorSnipmateLength', -1)
-call s:defineOption('g:acp_behaviorKeywordCommand', "\<C-n>")
-call s:defineOption('g:acp_behaviorKeywordLength', 2)
-call s:defineOption('g:acp_behaviorKeywordIgnores', [])
-call s:defineOption('g:acp_behaviorFileLength', 0)
-call s:defineOption('g:acp_behaviorRubyOmniMethodLength', 0)
-call s:defineOption('g:acp_behaviorRubyOmniSymbolLength', 1)
-call s:defineOption('g:acp_behaviorPythonOmniLength', 0)
-call s:defineOption('g:acp_behaviorPerlOmniLength', -1)
-call s:defineOption('g:acp_behaviorXmlOmniLength', 0)
-call s:defineOption('g:acp_behaviorHtmlOmniLength', 0)
-call s:defineOption('g:acp_behaviorCssOmniPropertyLength', 1)
-call s:defineOption('g:acp_behaviorCssOmniValueLength', 0)
-call s:defineOption('g:acp_behavior', {})
-"-----------------------------------------------------------------------------
-call extend(g:acp_behavior, s:makeDefaultBehavior(), 'keep')
-"-----------------------------------------------------------------------------
-command! -bar -narg=0 AcpEnable call acp#enable()
-command! -bar -narg=0 AcpDisable call acp#disable()
-command! -bar -narg=0 AcpLock call acp#lock()
-command! -bar -narg=0 AcpUnlock call acp#unlock()
-"-----------------------------------------------------------------------------
-" legacy commands
-command! -bar -narg=0 AutoComplPopEnable AcpEnable
-command! -bar -narg=0 AutoComplPopDisable AcpDisable
-command! -bar -narg=0 AutoComplPopLock AcpLock
-command! -bar -narg=0 AutoComplPopUnlock AcpUnlock
-"-----------------------------------------------------------------------------
-if g:acp_enableAtStartup
- AcpEnable
-endif
-"-----------------------------------------------------------------------------
-
-" }}}1
-"=============================================================================
-" vim: set fdm=marker:
View
12 .vim/plugin_/copenShortCut.vim
@@ -1,12 +0,0 @@
-" copen,ccloseをワンタッチで切り替え
-let s:quickfixwindow = "close"
-function! b:openCloseQuickfix()
- if "open" ==? s:quickfixwindow
- let s:quickfixwindos = "close"
- close
- else
- let s:quickfixwindow = "open"
- copen
- endif
-endfunction
-
View
158 .vim/plugin_/fuf.vim
@@ -1,158 +0,0 @@
-"=============================================================================
-" Copyright (c) 2007-2010 Takeshi NISHIDA
-"
-" GetLatestVimScripts: 1984 1 :AutoInstall: FuzzyFinder
-"=============================================================================
-" LOAD GUARD {{{1
-
-try
- if !l9#guardScriptLoading(expand('<sfile>:p'), 702, 101, [])
- finish
- endif
-catch /E117/
- echoerr '***** L9 library must be installed! *****'
- finish
-endtry
-
-" }}}1
-"=============================================================================
-" LOCAL FUNCTIONS {{{1
-
-"
-function s:initialize()
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_modesDisable' , [ 'mrufile', 'mrucmd', ])
- call l9#defineVariableDefault('g:fuf_keyOpen' , '<CR>')
- call l9#defineVariableDefault('g:fuf_keyOpenSplit' , '<C-j>')
- call l9#defineVariableDefault('g:fuf_keyOpenVsplit' , '<C-k>')
- call l9#defineVariableDefault('g:fuf_keyOpenTabpage' , '<C-l>')
- call l9#defineVariableDefault('g:fuf_keyPreview' , '<C-@>')
- call l9#defineVariableDefault('g:fuf_keyNextMode' , '<C-t>')
- call l9#defineVariableDefault('g:fuf_keyPrevMode' , '<C-y>')
- call l9#defineVariableDefault('g:fuf_keyPrevPattern' , '<C-s>')
- call l9#defineVariableDefault('g:fuf_keyNextPattern' , '<C-_>')
- call l9#defineVariableDefault('g:fuf_keySwitchMatching', '<C-\><C-\>')
- call l9#defineVariableDefault('g:fuf_dataDir' , '~/.vim-fuf-data')
- call l9#defineVariableDefault('g:fuf_abbrevMap' , {})
- call l9#defineVariableDefault('g:fuf_patternSeparator' , ';')
- call l9#defineVariableDefault('g:fuf_promptHighlight' , 'Question')
- call l9#defineVariableDefault('g:fuf_ignoreCase' , 1)
- call l9#defineVariableDefault('g:fuf_splitPathMatching', 1)
- call l9#defineVariableDefault('g:fuf_fuzzyRefining' , 0)
- call l9#defineVariableDefault('g:fuf_smartBs' , 1)
- call l9#defineVariableDefault('g:fuf_reuseWindow' , 1)
- call l9#defineVariableDefault('g:fuf_timeFormat' , '(%Y-%m-%d %H:%M:%S)')
- call l9#defineVariableDefault('g:fuf_learningLimit' , 100)
- call l9#defineVariableDefault('g:fuf_enumeratingLimit' , 50)
- call l9#defineVariableDefault('g:fuf_maxMenuWidth' , 78)
- call l9#defineVariableDefault('g:fuf_previewHeight' , 0)
- call l9#defineVariableDefault('g:fuf_autoPreview' , 0)
- call l9#defineVariableDefault('g:fuf_useMigemo' , 0)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_buffer_prompt' , '>Buffer[]>')
- call l9#defineVariableDefault('g:fuf_buffer_switchOrder', 10)
- call l9#defineVariableDefault('g:fuf_buffer_mruOrder' , 1)
- call l9#defineVariableDefault('g:fuf_buffer_keyDelete' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_file_prompt' , '>File[]>')
- call l9#defineVariableDefault('g:fuf_file_switchOrder', 20)
- call l9#defineVariableDefault('g:fuf_file_exclude' , '\v\~$|\.(o|exe|dll|bak|orig|sw[po])$|(^|[/\\])\.(hg|git|bzr)($|[/\\])')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_coveragefile_prompt' , '>CoverageFile[]>')
- call l9#defineVariableDefault('g:fuf_coveragefile_switchOrder', 30)
- call l9#defineVariableDefault('g:fuf_coveragefile_exclude' , '\v\~$|\.(o|exe|dll|bak|orig|sw[po])$|(^|[/\\])\.(hg|git|bzr)($|[/\\])')
- call l9#defineVariableDefault('g:fuf_coveragefile_globPatterns', ['**/.*', '**/*'])
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_dir_prompt' , '>Dir[]>')
- call l9#defineVariableDefault('g:fuf_dir_switchOrder', 40)
- call l9#defineVariableDefault('g:fuf_dir_exclude' , '\v(^|[/\\])\.(hg|git|bzr)($|[/\\])')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_mrufile_prompt' , '>MRU-File[]>')
- call l9#defineVariableDefault('g:fuf_mrufile_switchOrder', 50)
- call l9#defineVariableDefault('g:fuf_mrufile_exclude' , '\v\~$|\.(o|exe|dll|bak|orig|sw[po])$|^(\/\/|\\\\|\/mnt\/|\/media\/)')
- call l9#defineVariableDefault('g:fuf_mrufile_maxItem' , 200)
- call l9#defineVariableDefault('g:fuf_mrufile_maxItemDir' , 50)
- call l9#defineVariableDefault('g:fuf_mrufile_keyExpand' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_mrucmd_prompt' , '>MRU-Cmd[]>')
- call l9#defineVariableDefault('g:fuf_mrucmd_switchOrder', 60)
- call l9#defineVariableDefault('g:fuf_mrucmd_exclude' , '^$')
- call l9#defineVariableDefault('g:fuf_mrucmd_maxItem' , 200)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_bookmarkfile_prompt' , '>Bookmark-File[]>')
- call l9#defineVariableDefault('g:fuf_bookmarkfile_switchOrder', 70)
- call l9#defineVariableDefault('g:fuf_bookmarkfile_searchRange', 400)
- call l9#defineVariableDefault('g:fuf_bookmarkfile_keyDelete' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_bookmarkdir_prompt' , '>Bookmark-Dir[]>')
- call l9#defineVariableDefault('g:fuf_bookmarkdir_switchOrder', 80)
- call l9#defineVariableDefault('g:fuf_bookmarkdir_keyDelete' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_tag_prompt' , '>Tag[]>')
- call l9#defineVariableDefault('g:fuf_tag_switchOrder', 90)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_buffertag_prompt' , '>Buffer-Tag[]>')
- call l9#defineVariableDefault('g:fuf_buffertag_switchOrder', 100)
- call l9#defineVariableDefault('g:fuf_buffertag_ctagsPath' , 'ctags')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_taggedfile_prompt' , '>Tagged-File[]>')
- call l9#defineVariableDefault('g:fuf_taggedfile_switchOrder', 110)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_jumplist_prompt' , '>Jump-List[]>')
- call l9#defineVariableDefault('g:fuf_jumplist_switchOrder', 120)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_changelist_prompt' , '>Change-List[]>')
- call l9#defineVariableDefault('g:fuf_changelist_switchOrder', 130)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_quickfix_prompt' , '>Quickfix[]>')
- call l9#defineVariableDefault('g:fuf_quickfix_switchOrder', 140)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_line_prompt' , '>Line[]>')
- call l9#defineVariableDefault('g:fuf_line_switchOrder', 150)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_help_prompt' , '>Help[]>')
- call l9#defineVariableDefault('g:fuf_help_switchOrder', 160)
- "---------------------------------------------------------------------------
- command! -bang -narg=0 FufEditDataFile call fuf#editDataFile()
- command! -bang -narg=0 FufRenewCache call s:renewCachesOfAllModes()
- "---------------------------------------------------------------------------
- call fuf#addMode('buffer')
- call fuf#addMode('file')
- call fuf#addMode('coveragefile')
- call fuf#addMode('dir')
- call fuf#addMode('mrufile')
- call fuf#addMode('mrucmd')
- call fuf#addMode('bookmarkfile')
- call fuf#addMode('bookmarkdir')
- call fuf#addMode('tag')
- call fuf#addMode('buffertag')
- call fuf#addMode('taggedfile')
- call fuf#addMode('jumplist')
- call fuf#addMode('changelist')
- call fuf#addMode('quickfix')
- call fuf#addMode('line')
- call fuf#addMode('help')
- call fuf#addMode('givenfile')
- call fuf#addMode('givendir')
- call fuf#addMode('givencmd')
- call fuf#addMode('callbackfile')
- call fuf#addMode('callbackitem')
- "---------------------------------------------------------------------------
-endfunction
-
-"
-function s:renewCachesOfAllModes()
- for m in fuf#getModeNames()
- call fuf#{m}#renewCache()
- endfor
-endfunction
-
-" }}}1
-"=============================================================================
-" INITIALIZATION {{{1
-
-call s:initialize()
-
-" }}}1
-"=============================================================================
-" vim: set fdm=marker:
View
108 .vim/plugin_/l9.vim
@@ -1,108 +0,0 @@
-"=============================================================================
-" Copyright (C) 2009-2010 Takeshi NISHIDA
-"
-" GetLatestVimScripts: 3252 1 :AutoInstall: L9
-"=============================================================================
-" LOAD GUARD {{{1
-
-if !l9#guardScriptLoading(expand('<sfile>:p'), 702, 0, [])
- finish
-endif
-
-" }}}1
-"=============================================================================
-" OPTIONS: {{{1
-
-call l9#defineVariableDefault('g:l9_balloonly', 'balloonly.exe')
-
-" }}}1
-"=============================================================================
-" ASSERTION: {{{1
-
-" This command has effect only if $L9_DEBUG is non-zero.
-" Used as follows:
-" L9Assert a:i > 0
-" This command can't interpret script-local variables directly.
-" NG: L9Assert s:a == 1
-" OK: execute 'L9Assert ' . s:a . ' == 1'
-"
-if $L9_DEBUG
- command -nargs=* L9Assert call eval((<args>) ? 0 : s:handleFailedAssersion(<q-args>))
-
- function s:handleFailedAssersion(expr)
- echoerr '[L9Assert] Assersion failure: ' . a:expr
- if input('[L9Assert] Continue? (Y/N) ', 'Y') !=? 'Y'
- throw 'L9Assert ' . a:expr
- endif
- endfunction
-
-else
- command -nargs=* L9Assert :
-endif
-
-" }}}1
-"=============================================================================
-" TIMER: {{{1
-
-" These commands have effect only if $L9_TIMER is non-zero.
-" Used as follows:
-" L9Timer foo
-" ... (1)
-" L9Timer bar
-" ... (2)
-" L9TimerStop
-" ...
-" L9TimerDump <- shows each elapsed time of (1) and (2)
-"
-if $L9_TIMER
- command -nargs=1 L9Timer call s:timerBegin(<q-args>)
- command -nargs=0 L9TimerStop call s:timerStop()
- command -nargs=0 L9TimerDump call s:timerDump()
-
- let s:timerData = []
- let s:timerTagMaxLen = 0
-
- function s:timerBegin(tag)
- L9TimerStop
- let s:timerCurrent = {'tag': strftime('%c ') . a:tag . ' ', 'time': reltime()}
- let s:timerTagMaxLen = max([len(s:timerCurrent.tag), s:timerTagMaxLen])
- endfunction
-
- function s:timerStop()
- if !exists('s:timerCurrent')
- return
- endif
- let s:timerCurrent.time = reltimestr(reltime(s:timerCurrent.time))
- call add(s:timerData, s:timerCurrent)
- unlet s:timerCurrent
- endfunction
-
- function s:timerDump()
- L9TimerStop
- let lines = map(s:timerData, 'v:val.tag . repeat(" ", s:timerTagMaxLen - len(v:val.tag)) . v:val.time')
- call l9#tempbuffer#openReadOnly('[l9-timer]', '', lines, 0, 0, 0, {})
- let s:timerData = []
- let s:timerTagMaxLen = 0
- endfunction
-
-else
- command -nargs=1 L9Timer :
- command -nargs=0 L9TimerStop :
- command -nargs=0 L9TimerDump :
-endif
-
-" }}}1
-"=============================================================================
-" GREP BUFFER: {{{1
-
-" Grep for current buffer by l9#grepBuffers()
-" Used as :L9GrepBuffer/pattern
-command -nargs=? L9GrepBuffer call l9#grepBuffers(<q-args>, [bufnr('%')])
-
-" Grep for all buffers by l9#grepBuffers()
-" Used as :L9GrepBufferAll/pattern
-command -nargs=? L9GrepBufferAll call l9#grepBuffers(<q-args>, range(1, bufnr('$')))
-
-" }}}1
-"=============================================================================
-" vim: set fdm=marker:
View
84 .vim/plugin_/quicklaunch.vim
@@ -1,84 +0,0 @@
-" Launch the registered command in quickly.
-" Version: 0.1.1
-" Author : thinca <thinca+vim@gmail.com>
-" License: Creative Commons Attribution 2.1 Japan License
-" <http://creativecommons.org/licenses/by/2.1/jp/deed.en>
-
-if exists('g:loaded_quicklaunch') || v:version < 702
- finish
-endif
-let g:loaded_quicklaunch = 1
-
-let s:save_cpo = &cpo
-set cpo&vim
-
-
-
-function! s:quicklaunch(no)
- if !exists(':QuickRun')
- echoerr ':QuickRun command is not defined.'
- endif
-
- if !exists('g:quicklaunch_commands[a:no]')
- \ || type(g:quicklaunch_commands[a:no]) != type('')
- \ || g:quicklaunch_commands[a:no] == ''
- echoerr 'quicklaunch has no such command:' a:no
- return
- endif
-
- execute 'QuickRun' '-exec' '"' . substitute(
- \ g:quicklaunch_commands[a:no], '"', '\\"', 'g') . '"' '>'
-endfunction
-
-
-
-function! s:quicklaunch_list()
- if !exists('g:quicklaunch_commands')
- echo 'no command registered'
- return
- endif
- for i in range(10)
- echo i . ': ' . (exists('g:quicklaunch_commands[i]') ? g:quicklaunch_commands[i] : '<Nop>')
- endfor
-endfunction
-
-
-
-function! s:define_interface_key_mappings()
- for i in range(10)
- execute 'nnoremap <silent> <Plug>(quicklaunch-' . i . ')'
- \ ':<C-u>call <SID>quicklaunch(' . i . ')<CR>'
- endfor
-
- nnoremap <silent> <Plug>(quicklaunch-list)
- \ :<C-u>QuickRun -exec ':call <SID>quicklaunch_list()' ><CR>
-endfunction
-
-
-
-function! s:define_default_key_mappings()
- for i in range(10)
- if !hasmapto('<Plug>(quicklaunch-' . i . ')', 'n')
- execute 'silent! nmap <unique> <Leader>' . i
- \ '<Plug>(quicklaunch-' . i . ')'
- endif
- endfor
-
- if !hasmapto('<Plug>(quicklaunch-list)', 'n')
- silent! nmap <unique> <Leader>l <Plug>(quicklaunch-list)
- endif
-endfunction
-
-
-
-call s:define_interface_key_mappings()
-
-if !exists('g:quicklaunch_no_default_key_mappings')
-\ || !g:quicklaunch_no_default_key_mappings
- call s:define_default_key_mappings()
-endif
-
-
-
-let &cpo = s:save_cpo
-unlet s:save_cpo
View
40 .vim/plugin_/quickrun.vim
@@ -1,40 +0,0 @@
-" Run commands quickly.
-" Version: 0.4.6
-" Author : thinca <thinca+vim@gmail.com>
-" License: Creative Commons Attribution 2.1 Japan License
-" <http://creativecommons.org/licenses/by/2.1/jp/deed.en>
-
-if exists('g:loaded_quickrun')
- finish
-endif
-let g:loaded_quickrun = 1
-
-let s:save_cpo = &cpo
-set cpo&vim
-
-" MISC Functions. {{{1
-" ----------------------------------------------------------------------------
-" Function for |g@|.
-function! QuickRun(mode) " {{{2
- execute 'QuickRun -mode o -visualmode' a:mode
-endfunction
-
-
-command! -nargs=* -range=% -complete=customlist,quickrun#complete QuickRun
-\ call quickrun#run('-start <line1> -end <line2> ' . <q-args>)
-
-
-nnoremap <silent> <Plug>(quickrun-op) :<C-u>set operatorfunc=QuickRun<CR>g@
-
-nnoremap <silent> <Plug>(quickrun) :<C-u>QuickRun -mode n<CR>
-vnoremap <silent> <Plug>(quickrun) :<C-u>QuickRun -mode v<CR>
-
-" Default key mappings.
-if !hasmapto('<Plug>(quickrun)')
-\ && (!exists('g:quickrun_no_default_key_mappings')
-\ || !g:quickrun_no_default_key_mappings)
- silent! map <unique> <Leader>r <Plug>(quickrun)
-endif
-
-let &cpo = s:save_cpo
-unlet s:save_cpo
View
31 .vimrc
@@ -6,16 +6,21 @@ else
:let $VIMFILE_DIR = '.vim'
endif
+"
+" 環境変数など
+"
+" ファイル作成時などに日付を入れられるように
+:let $TODAY = strftime('%Y%m%d')
+
" 自動的にファイルを読み込むパスを設定 ~/$VIMFILE_DIR/userautoload/*.vim
set runtimepath+=~/$VIMFILE_DIR/
runtime! userautoload/*.vim
-
" swapファイル、backupファイルは複数マシンでの共有のためにローカルに退避させる
-" set swapfile
-" set directory=$HOME./tmp/.vimswap
-" set backup
-" set backupdir=$HOME./tmp/.vimbackup
+set noswapfile
+"set directory=~/tmp/.vimswap
+set nobackup
+" set backupdir=~/tmp/.vimbackup
" 文字コードを設定
" 既存ファイルの判定は.vim\userautoload\autoencording.vim内で
@@ -63,7 +68,7 @@ nnoremap <silent> <cr> :silent exe 'Utl'<cr><cr>
syntax on
" カラースキーム
-colorscheme torte
+colorscheme pyte
" 検索キーワードをハイライトから除外
set nohlsearch
@@ -73,18 +78,14 @@ set cursorline
set number
" ルーラー表示
set ruler
-" 空白文字を表示
-" set list
" カーソルを常にウィンドウの中央に
set scrolloff=999
" view inputting command
set showcmd
-
-
" 空白文字の表示
set list
" 空白文字の記号
-set listchars=tab:>-,eol:,trail:_,extends:\
+set listchars=tab:>-,eol:,trail:_,extends:\
" 全角スペースのハイライト
highlight zenkakuda cterm=underline ctermfg=black guibg=black
@@ -105,7 +106,7 @@ set statusline=[%1(%M%r%)][%F]%l/%L(%p%%)
set showmode
" クリップボードをOSと共有
-set clipboard=unnamed
+set clipboard+=unnamed,autoselect
" インクリメンタル検索を有効化
set incsearch
@@ -146,7 +147,11 @@ let g:SrcExpl_RefreshTime = 1
" tagsをsrcexpl起動時に自動で作成(更新)するかどうか(# vimrcに追加。する場合のみ)
let g:SrcExpl_UpdateTags = 1
+" neocomplcache
+" 起動時に有効化"
+let g:neocomplcache_enable_at_startup = 1
+imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
+
" gitのSSL証明書をチェックしない(BundleInstallでエラーがでるため)
let $GIT_SSL_NO_VERIFY = 'true'
-
Please sign in to comment.
Something went wrong with that request. Please try again.