Improvements from Boom laptop
This commit is contained in:
@@ -434,8 +434,8 @@ endfunction
|
||||
|
||||
function! s:dobufread(names)
|
||||
for name in a:names
|
||||
let path = s:rtp(g:plugs[name]).'/**'
|
||||
for dir in ['ftdetect', 'ftplugin']
|
||||
let path = s:rtp(g:plugs[name])
|
||||
for dir in ['ftdetect', 'ftplugin', 'after/ftdetect', 'after/ftplugin']
|
||||
if len(finddir(dir, path))
|
||||
if exists('#BufRead')
|
||||
doautocmd BufRead
|
||||
@@ -794,9 +794,7 @@ endfunction
|
||||
|
||||
function! s:chsh(swap)
|
||||
let prev = [&shell, &shellcmdflag, &shellredir]
|
||||
if s:is_win
|
||||
set shell=cmd.exe shellcmdflag=/c shellredir=>%s\ 2>&1
|
||||
elseif a:swap
|
||||
if !s:is_win && a:swap
|
||||
set shell=sh shellredir=>%s\ 2>&1
|
||||
endif
|
||||
return prev
|
||||
@@ -811,7 +809,7 @@ function! s:bang(cmd, ...)
|
||||
if s:is_win
|
||||
let batchfile = tempname().'.bat'
|
||||
call writefile(["@echo off\r", cmd . "\r"], batchfile)
|
||||
let cmd = batchfile
|
||||
let cmd = s:shellesc(expand(batchfile))
|
||||
endif
|
||||
let g:_plug_bang = (s:is_win && has('gui_running') ? 'silent ' : '').'!'.escape(cmd, '#!%')
|
||||
execute "normal! :execute g:_plug_bang\<cr>\<cr>"
|
||||
@@ -1210,7 +1208,7 @@ function! s:spawn(name, cmd, opts)
|
||||
let cmd = has_key(a:opts, 'dir') ? s:with_cd(a:cmd, a:opts.dir) : a:cmd
|
||||
if !empty(job.batchfile)
|
||||
call writefile(["@echo off\r", cmd . "\r"], job.batchfile)
|
||||
let cmd = job.batchfile
|
||||
let cmd = s:shellesc(expand(job.batchfile))
|
||||
endif
|
||||
let argv = add(s:is_win ? ['cmd', '/c'] : ['sh', '-c'], cmd)
|
||||
|
||||
@@ -2037,9 +2035,9 @@ function! s:system(cmd, ...)
|
||||
if s:is_win
|
||||
let batchfile = tempname().'.bat'
|
||||
call writefile(["@echo off\r", cmd . "\r"], batchfile)
|
||||
let cmd = batchfile
|
||||
let cmd = s:shellesc(expand(batchfile))
|
||||
endif
|
||||
return system(s:is_win ? '('.cmd.')' : cmd)
|
||||
return system(cmd)
|
||||
finally
|
||||
let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd]
|
||||
if s:is_win
|
||||
@@ -2371,7 +2369,7 @@ function! s:preview_commit()
|
||||
if s:is_win
|
||||
let batchfile = tempname().'.bat'
|
||||
call writefile(["@echo off\r", cmd . "\r"], batchfile)
|
||||
let cmd = batchfile
|
||||
let cmd = expand(batchfile)
|
||||
endif
|
||||
execute 'silent %!' cmd
|
||||
finally
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+6
-2
@@ -81,7 +81,7 @@ set smarttab
|
||||
set statusline=%<%f\ %h%m%r%*%=%-14.(%l,%c%V%)\ %P
|
||||
set t_Co=256
|
||||
set tabstop=4
|
||||
set textwidth=0
|
||||
set textwidth=120
|
||||
set virtualedit=block
|
||||
set visualbell
|
||||
set wildignore+=node_modules,log,build,dist
|
||||
@@ -116,13 +116,17 @@ nmap =, :Tabularize /[^,]*:<CR>
|
||||
" nathanaelkane/vim-indent-guides
|
||||
let g:indent_guides_enable_on_vim_startup = 0
|
||||
|
||||
"plasticboy/vim-markdown
|
||||
let g:vim_markdown_conceal = 0
|
||||
let g:vim_markdown_conceal_code_blocks = 0
|
||||
|
||||
" scrooloose/nerdtree
|
||||
let NERDTreeIgnore = ['__pycache__', '\.pyc$']
|
||||
|
||||
" w0rp/ale
|
||||
let g:airline#extensions#ale#enabled = 1
|
||||
let g:ale_completion_delay = 500
|
||||
let g:ale_completion_enabled = 1
|
||||
let g:ale_completion_enabled = 0
|
||||
let g:ale_fix_on_save = 1
|
||||
let g:ale_lint_on_text_changed = 'never'
|
||||
let g:ale_open_list = 1
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
git log --oneline master..
|
||||
Reference in New Issue
Block a user