" Set the leader key before plugin initialization. let g:mapleader="\" " Make sure plugins cant use space as a keymapping. nnoremap xnoremap " "General vim config--------------------- " set number relativenumber " Pretty line numbers set mouse=a " I like the mouse set clipboard=unnamedplus " Use system clipboard " Enable persistent undo so that undo history persists across vim sessions set undofile set undodir=~/.vim/undo " Nice tabs set list lcs=tab:\|- set tabstop=4 set softtabstop=4 set noexpandtab set shiftwidth=4 set smarttab " Colors---------------------------------- syntax enable " Syntax highlighting colorscheme dracula " Use the dracula colorscheme set termguicolors " Enable full color support in terminal " vim-buffet function! g:BuffetSetCustomColors() hi! BuffetCurrentBuffer guibg=#2B899D guifg=#FFFFFF hi! BuffetActiveBuffer guibg=#191A21 guifg=#8BE9FD hi! BuffetBuffer guibg=#191A21 guifg=#FFFFFF hi! BuffetTrunc guibg=#21222C guifg=#FFFFFF hi! BuffetTab guibg=#7D53B9 guifg=#FFFFFF endfunction " "Plugin Config---------------------------- " let g:NERDCreateDefaultMappings = 0 let g:deoplete#enable_at_startup = 1 " Spaceline let g:spaceline_seperate_style= 'arrow' let g:spaceline_colorscheme = 'space' " vim-buffet let g:buffet_tab_icon = "" let g:buffet_powerline_separators = 1 let g:buffet_tab_icon = "\uf00a" let g:buffet_left_trunc_icon = "\uf0a8" let g:buffet_right_trunc_icon = "\uf0a9" " vim-which-key let g:which_key_map = {} let g:which_key_map.1 = 'Select window 1' let g:which_key_map.2 = 'Select window 2' let g:which_key_map.3 = 'Select window 3' let g:which_key_map.4 = 'Select window 4' let g:which_key_map.5 = 'Select window 5' let g:which_key_map.6 = 'Select window 6' let g:which_key_map.7 = 'Select window 7' let g:which_key_map.8 = 'Select window 8' let g:which_key_map.9 = 'Select window 9' let g:which_key_map.0 = 'Select window 10' let g:which_key_map.c = 'Toggle comment' let g:which_key_map.n = 'Open file tree' let g:which_key_map.j = "Open any jump" let g:which_key_map.w = "Close current tab" let g:which_key_map.f = "Clap" let g:which_key_map.r = "Toggle rainbow highlighting" let g:which_key_map.g = {'name': "+grammarous"} let g:which_key_map.g.c = "Check" let g:which_key_map.g.r = "Reset" " any-jump let g:any_jump_disable_default_keybindings = 1 " vim-markdown let g:vim_markdown_folding_level = 1 let g:vim_markdown_folding_style_pythonic = 1 let g:vim_markdown_frontmatter = 1 let g:vim_markdown_auto_insert_bullets = 1 let g:vim_markdown_new_list_item_indent = 0 let g:vim_markdown_conceal_code_blocks = 0 let g:vim_markdown_conceal = 0 let g:vim_markdown_strikethrough = 1 let g:vim_markdown_edit_url_in = 'vsplit' let g:vim_markdown_fenced_languages = [ \ 'c++=cpp', \ 'viml=vim', \ 'bash=sh', \ 'ini=dosini', \ 'js=javascript', \ 'json=javascript', \ 'jsx=javascriptreact', \ 'tsx=typescriptreact', \ 'docker=Dockerfile', \ 'makefile=make', \ 'py=python' \ ] " rainbow let g:rainbow_active = 1 " vimtex let g:tex_flavor = 'latex' let g:vimtex_compiler_latexmk = { \ 'build_dir' : 'build', \ 'options' : [ \ '-pdf', \ '-shell-escape', \ '-verbose', \ '-file-line-error', \ '-synctex=1', \ '-interaction=nonstopmode', \ ], \} "dein Scripts----------------------------- if &compatible set nocompatible " Be iMproved endif " Required: set runtimepath+=/home/kalle/.cache/dein/repos/github.com/Shougo/dein.vim " Required: if dein#load_state('/home/kalle/.local/share/dein') call dein#begin('/home/kalle/.local/share/dein') " Let dein manage dein Required: call dein#add('/home/kalle/.local/share/dein/repos/github.com/Shougo/dein.vim') " Add or remove your plugins here like this: call dein#add('Shougo/neosnippet.vim') call dein#add('Shougo/neosnippet-snippets') call dein#add('Shougo/deoplete.nvim') call dein#add('Shougo/neco-syntax') call dein#add('tbodt/deoplete-tabnine', { 'build': './install.sh' }) call dein#add('preservim/nerdcommenter') call dein#add('ryanoasis/vim-devicons') call dein#add('hardcoreplayers/spaceline.vim') call dein#add('bagrat/vim-buffet') call dein#add('liuchengxu/vim-which-key') call dein#add('editorconfig/editorconfig-vim') call dein#add('preservim/nerdtree') call dein#add('pechorin/any-jump.vim') call dein#add('liuchengxu/vim-clap') call dein#add('rhysd/accelerated-jk') call dein#add('t9md/vim-choosewin') call dein#add('junegunn/vim-easy-align') call dein#add('simnalamburt/vim-mundo') call dein#add('plasticboy/vim-markdown') call dein#add('luochen1990/rainbow') call dein#add('rhysd/vim-grammarous') call dein#add('dag/vim-fish') call dein#add('lervag/vimtex') call dein#add('calculuswhiz/vim-GAS-x86_64-highlighter') " Required: call dein#end() call dein#save_state() endif " Required: filetype plugin indent on filetype plugin on syntax enable " If you want to install not installed plugins on startup. if dein#check_install() call dein#install() endif "End dein Scripts------------------------- call which_key#register('', "g:which_key_map") call deoplete#custom#var('omni', 'input_patterns', { \ 'tex': g:vimtex#re#deoplete \}) "Auto commands --------------------------- au User VimtexEventInitPost call vimtex#compiler#start() " "Keymappings ----------------------------- " " General nnoremap w :b#bd# " NERDCommenter nnoremap c :call NERDComment("n", "Toggle") xnoremap c :call NERDComment("x", "Toggle") " vim-buffet nmap 1 BuffetSwitch(1) nmap 2 BuffetSwitch(2) nmap 3 BuffetSwitch(3) nmap 4 BuffetSwitch(4) nmap 5 BuffetSwitch(5) nmap 6 BuffetSwitch(6) nmap 7 BuffetSwitch(7) nmap 8 BuffetSwitch(8) nmap 9 BuffetSwitch(9) nmap 0 BuffetSwitch(10) " vim-which-key nnoremap :WhichKey '' " NERDTree nnoremap n :NERDTreeToggle " any-jump nnoremap j :AnyJump xnoremap j :AnyJumpVisual " clap nnoremap f :Clap " accelerated-jk nmap j (accelerated_jk_gj) nmap k (accelerated_jk_gk) " vim-choosewin nmap - (choosewin) " vim-easy-align xmap ga (EasyAlign) nmap ga (EasyAlign) " vim-mundo" nnoremap :MundoToggle " rainbow nnoremap r :RainbowToggle " grammarous nnoremap gc :GrammarousCheck nnoremap gr :GrammarousReset