Closed jonsmithers closed 1 year ago
if (s:os ==# 'Windows')
function! DownloadWindowsVimrc(overwrite)
set shell=C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe
let l:destinationFile = $MYVIMRC
if (!a:overwrite)
let l:destinationFile .= '_LATEST'
endif
exec ":!(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/jonsmithers/dotfiles/master/vim/vimrc', $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath('" . l:destinationFile . "'))"
if (!a:overwrite)
:tabnew $MYVIMRC
:exec ':vertical diffsplit ' . l:destinationFile
" ^ THIS IS SUPPOSED TO WORK
endif
endfunction
command! DownloadWindowsVimrc call DownloadWindowsVimrc(<bang>0)
endif
I need to add these things
https://github.com/jonsmithers/EnvFile/blob/e12e78b942e91cbda41798c90bec06c5351b6813/modules/core/src/main/java/net/ashald/envfile/providers/direnv/DirEnvProvider.java#L21-L33
[X] MakeEslint
[X] concourse
[X] pivotal tracker
[X] fix annoying spelling color
[X] tweak font
[X] this can already be done in macvim preferences
[x] set up an augroup to hide the "~" characters after end of file while in ProseMode. CodeMode will delete this augroup.
[x] disable annoying auto local history save
[x] delete CodeMode until it's needed?
[x] figure out why vim doesn't correctly auto-format "-" bullet paragraphs in a git commit
[x] add a ":QuitToIdea" command to close vim and open its place in intellij
[x] try out eclipse language server with coc.vim
[x] disable Coc.vim in most cases
[x] add
- [ ]
as a comment in markdown[x] diffoptions
algorithm:patience
andindent-heuristic
are not available in reasonably-recent versions of vim.[x] set gdefault
[X] cross platform backup diff:
\ '--preview', "git diff --color=always {1} '" . escape(expand('%'), "'") . "' | tail -n +5",
[X] python-based xml formatting
command! FormatXML :%!python -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"
[X] gitlab integration https://github.com/shumphrey/fugitive-gitlab.vim
[x] keybinding for
:ALEHover
[X] Press
'
,"
,`
,)
, etc to surround current selection.[ ]
nnoremap <leader>jt :exec ':e ' . system('alt ' . expand('%'))<cr>
[x] install yats.vim
[x]
cnoremap <c-d> <c-r>=strftime('%Y-%m-%d')<cr>
[x] beancount plugin