35 | " Check whether there is an executable with a given name
36 | " If we are using standalone plugins we automatically return false
37 | function! HasExec(prog_name) abort
38 | let use_execs = empty($STANDALONE_VIM_PLUGINS)
39 | if a:prog_name == 'git'
40 | let use_execs = 1
41 | endif
42 |
43 | return use_execs && executable(a:prog_name)
44 | endfunction
172 | autocmd BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
@username
を付けます 239 | function! OpenScratchBuffer() abort
240 | new
241 | setlocal buftype=nofile
242 | setlocal noswapfile
243 | exec "nnoremap <buffer>q :bd\<CR\>"
244 | exec "resize " . (winheight(0) * 2 * 1/6)
245 | endfunction
34 | if executable("curl")
35 | silent exec '!curl -fLo ' . shellescape(expand(g:vimDirectory."/autoload/plug.vim")) .
36 | \ ' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
37 | " If all else fails we can just use git.
38 | elseif executable("git")
39 | silent exec '!git clone -q --depth=1 git@github.com:junegunn/vim-plug.git ' . shellescape(expand(g:vimDirectory."/temp"))
40 | if has('gui_win32')
41 | let s:mv="move "
42 | let s:rm="del "
43 | else
44 | let s:mv="mv "
45 | let s:rm="rm -rf "
46 | endif
47 | silent exec '!' . s:mv . shellescape(expand(g:vimDirectory."/temp/plug.vim")) .
48 | \ ' ' . shellescape(expand(g:vimDirectory."/autoload/plug.vim"))
49 | silent exec '!' . s:rm . shellescape(expand(g:vimDirectory."/temp/"))
50 | else
51 | echo "Couldn't find a way to download Vim-Plug. Not sure how you were planning" .
52 | \ " installing plugins without Git."
53 | endif
109 | nmap ]g <Plug>GitGutterNextHunk
110 | nmap [g <Plug>GitGutterPrevHunk
81 | " Games: {
82 | Plug 'vim-scripts/TeTrIs.vim'
83 | Plug 'johngrib/vim-game-code-break', { 'on': 'VimGameCodeBreak' }
<leader>cj
むずそう