set shell=/bin/zsh " colors set background=dark colorscheme default-cterm let g:vimtex_matchparen_enabled=0 let g:loaded_matchparen=1 set ruler " show the cursor position all the time set showcmd " display incomplete commands set number " show line numbers set laststatus=2 " show status bar set foldmethod=syntax set nocompatible " allow backspacing over everything in insert mode set backspace=indent,eol,start set backupdir=~/.vim/swaps// set viminfo+=n~/.vim/info set history=200 set hidden " allow switching buffers without saving set incsearch " do incremental searching set hlsearch filetype plugin indent on syntax on set list set listchars=tab:\|\ " show hard tabs set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab " tab settings let g:airline_powerline_fonts = 0 let g:airline_theme="term" " latex settings let g:tex_flavor = 'latex' let g:vimtex_view_method = 'zathura' let g:vimtex_compiler_latexmk = { \ 'options' : [ \ '-pdf', \ '-shell-escape', \ '-verbose', \ '-file-line-error', \ '-synctex=1', \ '-interaction=nonstopmode' \ ], \} " cpp coloraton settings let g:cpp_class_scope_highlight = 1 let g:cpp_member_variable_highlight = 1 let g:cpp_class_decl_highlight = 1 let g:cpp_experimental_template_highlight = 1 let g:cpp_concepts_highlight = 1 let g:cpp_named_requirements_highlight = 1 " map to cf in C++ code autocmd FileType c,cpp,objc nnoremap cf :ClangFormat autocmd FileType c,cpp,objc vnoremap cf :ClangFormat " if you install vim-operator-user autocmd FileType c,cpp,objc map x (operator-clang-format) " Toggle auto formatting: nmap C :ClangFormatAutoToggle autocmd BufNewFile,BufRead *.wl set syntax=wl autocmd BufNewFile,BufRead *.wls set syntax=wl autocmd BufNewFile,BufRead *.m set syntax=wl let g:mma_candy = 2 call plug#begin() Plug 'voldikss/vim-mma' Plug 'bfrg/vim-cpp-modern' Plug 'lervag/vimtex' Plug 'prabirshrestha/asyncomplete-lsp.vim' Plug 'mattn/vim-lsp-settings' Plug 'kana/vim-fakeclip' call plug#end() inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? asyncomplete#close_popup() : "\" let g:lsp_diagnostics_float_cursor = 1 let g:lsp_document_highlight_enabled = 1 let g:fakeclip_provide_clipboard_key_mappings = !empty($WAYLAND_DISPLAY)