Browse Source

Fixed vim errors

master
Micah Halter 1 year ago
parent
commit
8b927ee00b
Signed by: mehalter GPG Key ID: 4224A6EA9A8CAAA8
  1. 50
      vim/vimrc

50
vim/vimrc

@ -72,34 +72,12 @@ map <leader>d :GitGutterToggle<CR>
let g:latex_to_unicode_auto = 1
let g:default_julia_version = "1.0"
" netrw
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 20
map <leader>nn :call ToggleNetrw()<CR>
let g:NetrwIsOpen=0
function! ToggleNetrw() abort
if g:NetrwIsOpen
let i = bufnr("$")
while (i >= 1)
if (getbufvar(i, "&filetype") == "netrw")
silent exe "bwipeout " . i
endif
let i-=1
endwhile
let g:NetrwIsOpen=0
else
let g:NetrwIsOpen=1
silent Vexplore
endif
endfunction
"==plugins-end
""""""""""""""""""""""""""""
" => General
""""""""""""""""""""""""""""
" fix vim-plug and vim7 compatibility
let g:plug_threads=1
set scrolloff=7
set fileformats=unix,dos,mac
set path+=**
@ -195,6 +173,30 @@ function! HasPaste() abort
return ''
endfunction
" netrw
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 20
map <leader>nn :call ToggleNetrw()<CR>
let g:NetrwIsOpen=0
function! ToggleNetrw() abort
if g:NetrwIsOpen
let i = bufnr("$")
while (i >= 1)
if (getbufvar(i, "&filetype") == "netrw")
silent exe "bwipeout " . i
endif
let i-=1
endwhile
let g:NetrwIsOpen=0
else
let g:NetrwIsOpen=1
silent Vexplore
endif
endfunction
""""""""""""""""""""""""""""
" => Remaps
""""""""""""""""""""""""""""

Loading…
Cancel
Save