set nocompatible filetype on filetype plugin on filetype indent on syntax on set number set cursorcolumn set shiftwidth=4 set tabstop=4 set incsearch set history=1000 set scrolloff=5 let g:airline_powerline_fonts = 1 call plug#begin() "Plug 'vim-airline/vim-airline' "Plug 'ayu-theme/ayu-vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'dense-analysis/ale' Plug 'ziglang/zig.vim' Plug 'itchyny/lightline.vim' Plug 'morhetz/gruvbox' Plug 'https://github.com/preservim/tagbar.git' call plug#end() set termguicolors " enable true colors support "let ayucolor="mirage" " for dark version of theme "colorscheme molokai" colorscheme gruvbox set background=dark set number relativenumber set nu rnu set colorcolumn=120 nmap e CocCommand explorer inoremap pumvisible() ? coc#_select_confirm() : "\u\" inoremap "\u\" set undodir=~/.vim/undo-dir set undofile set laststatus=2 set encoding=utf-8 set fileencoding=utf-8 let g:go_highlight_functions = 1 let g:go_highlight_function_calls = 1 nnoremap K :call show_documentation() function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) execute 'h '.expand('') else call CocAction('doHover') endif endfunction let g:rustfmt_autosave = 1 nmap :TagbarToggle