|
|
|
@ -17,6 +17,20 @@ set nocompatible
|
|
|
|
|
set background=dark
|
|
|
|
|
syntax enable
|
|
|
|
|
colorscheme hybrid
|
|
|
|
|
" default transparent bg
|
|
|
|
|
hi Normal guibg=NONE ctermbg=NONE
|
|
|
|
|
let t:is_transparent = 1
|
|
|
|
|
"toggle func
|
|
|
|
|
function! ToggleTransparent()
|
|
|
|
|
if t:is_transparent == 0
|
|
|
|
|
hi Normal guibg=NONE ctermbg=NONE
|
|
|
|
|
let t:is_transparent = 1
|
|
|
|
|
else
|
|
|
|
|
set background=dark
|
|
|
|
|
let t:is_transparent = 0
|
|
|
|
|
endif
|
|
|
|
|
endfunction
|
|
|
|
|
nnoremap <silent> <leader>b : call ToggleTransparent()<CR>
|
|
|
|
|
|
|
|
|
|
" syntax highlighting for go
|
|
|
|
|
let g:go_highlight_types=1
|
|
|
|
@ -30,6 +44,7 @@ let g:go_highlight_extra_types=1
|
|
|
|
|
let g:vim_markdown_folding_disabled = 1
|
|
|
|
|
let g:vim_markdown_math = 1
|
|
|
|
|
let g:vim_markdown_strikethrough = 1
|
|
|
|
|
let g:vim_markdown_new_list_item_indent = 4
|
|
|
|
|
|
|
|
|
|
" use md for vim wiki and disable global linking
|
|
|
|
|
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
|
|
|
@ -54,6 +69,11 @@ let g:airline_symbols.dirty = ''
|
|
|
|
|
" nerdtree settings
|
|
|
|
|
let NERDTreeHighlightCursorLine=1
|
|
|
|
|
let NERDTreeQuitOnOpen=1
|
|
|
|
|
" nerdtree tab settings
|
|
|
|
|
let g:nerdtree_tabs_open_on_console_startup=2
|
|
|
|
|
let g:nerdtree_tabs_autoclose=1
|
|
|
|
|
let g:nerdtree_tabs_smart_startup_focus=1
|
|
|
|
|
"let g:nerd
|
|
|
|
|
autocmd StdinReadPre * let s:std_in=1
|
|
|
|
|
" auto open on empty
|
|
|
|
|
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
|
|
|
@ -62,8 +82,8 @@ autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_
|
|
|
|
|
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
|
|
|
|
|
|
|
|
|
|
" nerdtree binds
|
|
|
|
|
nnoremap <silent> <leader>n :NERDTree<CR>
|
|
|
|
|
nnoremap <silent> <leader>t :NERDTreeMirror<CR>:NERDTreeToggle<CR>
|
|
|
|
|
nnoremap <silent> <leader>t :NERDTreeMirrorToggle<CR>
|
|
|
|
|
nnoremap <silent> <leader>n :NERDTreeFocusToggle<CR>
|
|
|
|
|
" nnoremap <C-f> :NERDTreeFocus<CR> going to conflict with fzf and I dont use
|
|
|
|
|
" this anyway
|
|
|
|
|
"
|
|
|
|
|