jonsmithers / dotfiles

My actual dotfiles
5 stars 1 forks source link

Add these things #2

Closed jonsmithers closed 1 year ago

jonsmithers commented 6 years ago

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

" Change Cursor Style Dependent On Mode: https://github.com/mhinz/vim-galore#change-cursor-style-dependent-on-mode {{{
  " https://stackoverflow.com/a/42118416/1480704
  if empty($ITERM_PROFILE)
    " works on linux, macos kitty, and macos Terminal.app
    let &t_SI = "\e[6 q"
    let &t_EI = "\e[2 q"
    let &t_SR = "\e[3 q"
  elseif
    if empty($TMUX)
      let &t_SI = "\<Esc>]50;CursorShape=1\x7"
      let &t_EI = "\<Esc>]50;CursorShape=0\x7"
      let &t_SR = "\<Esc>]50;CursorShape=2\x7"
    else
      let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
      let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
      let &t_SR = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=2\x7\<Esc>\\"
    end
  end
" }}}

" GUI Settings {{{
  let g:neovide_cursor_vfx_mode = "railgun"
  let g:neovide_cursor_vfx_opacity=200.0
  let g:neovide_cursor_vfx_particle_lifetime=0.4
  let g:neovide_cursor_vfx_particle_density=7.0
  let g:neovide_cursor_vfx_particle_speed=10.0
  let g:neovide_cursor_vfx_particle_phase=1.5
  let g:neovide_cursor_vfx_particle_curl=1.0
  let g:neovide_remember_window_size = v:true
  let g:neovide_cursor_antialiasing=v:false
  let g:neovide_cursor_trail_length=0.4
  let g:neovide_cursor_animation_length=0.04
if (has('nvim'))
  let $GIT_EDITOR='nvim'
  " neovim sets environment vars causing vim to have runtime errors on startup
endif
    autocmd Filetype * if (getfsize(@%) > 500000 && &filetype != "git") | setlocal syntax=OFF | endif
jonsmithers commented 5 years 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