filetype plugin indent on " show existing tab with 4 spaces width " editing to be more usual " set tabstop=4 " set shiftwidth=4 " set expandtab " set backspace=indent,eol,start set ts=4 sts=4 sw=4 expandtab set backspace=indent,eol,start " basics set number let mapleader=' ' set nocompatible " setting color theme stuff set background=dark syntax enable colorscheme hybrid " syntax highlighting let g:go_highlight_types=1 let g:go_highlight_fields=1 let g:go_highlight_functions=1 let g:go_highlight_function_calls=1 let g:go_highlight_operators=1 let g:go_highlight_extra_types=1 " use md for vim wiki and disable global linking let g:vimwiki_list = [{'path': '~/vimwiki/', \ 'syntax': 'markdown', 'ext': '.md'}] let g:vimwiki_global_ext = 0 " airline settings let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif " setting nf symbols let g:airline_symbols.linenr = '' let g:airline_symbols.maxlinenr = '' let g:airline_symbols.dirty = '' " nerdtree settings let NERDTreeHighlightCursorLine=1 let NERDTreeQuitOnOpen=1 autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif " nerdtree binds nnoremap n :NERDTree nnoremap t :NERDTreeToggle " nnoremap :NERDTreeFocus going to conflict with fzf and I dont use " this anyway " " vimtex configuration let g:vimtex_view_method = 'zathura' let g:tex_flavor='latex' let g:vimtex_quickfix_mode=0 " fzf settings set rtp+=~/.fzf " let g:fzf_preview_window = ['right:50%', 'ctrl-/'] " let g:fzf_buffers_jump = 1 " " Customize fzf colors to match your color scheme " " " - fzf#wrap translates this to a set of `--color` options " TMUX support if exists('$TMUX') let g:fzf_layout = { 'tmux': '-p60%,70%' } else let g:fzf_layout = { 'window': { 'width': 0.6, 'height': 0.7} } endif " " fzf functions and keybinds " command! -bang -nargs=? -complete=dir Find " \ call fzf#vim#files(, fzf#vim#with_preview({'options': ['--layout=reverse', '--info=inline']}), 0) nnoremap f :FZF nnoremap F :FZF $HOME " nnoremap g :GFiles " nnoremap s :GFiles? " tweaking timeout to quit instatnly via esc set ttimeout set ttimeoutlen=100 " time to learn vim noremap :echoerr "Umm, use k instead" noremap :echoerr "Umm,use j instead" noremap :echoerr "Umm,use h instead" noremap :echoerr "Umm,use l instead" inoremap inoremap inoremap inoremap " jq formating noremap gj :%!gojq .