vimrc (3462B)
1syntax on 2set background=dark 3"colorscheme solarized 4"let g:solarized_termcolors=256 5set number 6autocmd BufReadPost * 7 \ if line("'\"") > 0 && line("'\"") <= line("$") | 8 \ exe "normal! g`\"" | 9 \ endif 10 11 12 13set nocompatible " be iMproved, required 14filetype off " required 15 16" set the runtime path to include Vundle and initialize 17set rtp+=~/.vim/bundle/Vundle.vim 18call vundle#begin() 19" alternatively, pass a path where Vundle should install plugins 20"call vundle#begin('~/some/path/here') 21 22" let Vundle manage Vundle, required 23Plugin 'VundleVim/Vundle.vim' 24 25Plugin 'arcticicestudio/nord-vim' 26Plugin 'itchyny/lightline.vim' 27Plugin 'wakatime/vim-wakatime' 28Plugin 'joshdick/onedark.vim' 29Plugin 'ledger/vim-ledger' 30"Plugin 'xuhdev/vim-latex-live-preview' 31" The following are examples of different formats supported. 32" Keep Plugin commands between vundle#begin/end. 33" plugin on GitHub repo 34"Plugin 'tpope/vim-fugitive' 35" plugin from http://vim-scripts.org/vim/scripts.html 36" Plugin 'L9' 37" Git plugin not hosted on GitHub 38"Plugin 'git://git.wincent.com/command-t.git' 39" git repos on your local machine (i.e. when working on your own plugin) 40"Plugin 'file:///home/gmarik/path/to/plugin' 41" The sparkup vim script is in a subdirectory of this repo called vim. 42" Pass the path to set the runtimepath properly. 43"Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} 44" Install L9 and avoid a Naming conflict if you've already installed a 45" different version somewhere else. 46" Plugin 'ascenator/L9', {'name': 'newL9'} 47 48" All of your Plugins must be added before the following line 49call vundle#end() " required 50filetype plugin indent on " required 51" To ignore plugin indent changes, instead use: 52"filetype plugin on 53" 54" Brief help 55" :PluginList - lists configured plugins 56" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate 57" :PluginSearch foo - searches for foo; append `!` to refresh local cache 58" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal 59" 60" see :h vundle for more details or wiki for FAQ 61" Put your non-Plugin stuff after this line 62 63 64"if ! has("gui_running") 65"if $DISPLAY == ':0' 66 "let g:airline_powerline_fonts = 1 67 "let g:airline_theme='solarized_flood' 68"else 69 "au VimEnter * AirlineToggle 70 "let g:loaded_airline = 1 71"endif 72 73if $DISPLAY == ':0' 74 let g:lightline = { 75 \ 'colorscheme': 'nord', 76 \ 'component': { 77 \ 'lineinfo': ' %3l:%-2v', 78 \ }, 79 \ 'component_function': { 80 \ 'readonly': 'LightlineReadonly', 81 \ 'fugitive': 'LightlineFugitive' 82 \ }, 83 \ 'separator': { 'left': '', 'right': '' }, 84 \ 'subseparator': { 'left': '', 'right': '' } 85 \ } 86 function! LightlineReadonly() 87 return &readonly ? '' : '' 88 endfunction 89 function! LightlineFugitive() 90 if exists('*FugitiveHead') 91 let branch = FugitiveHead() 92 return branch !=# '' ? ''.branch : '' 93 endif 94 return '' 95 endfunction 96endif 97 98 99colorscheme nord 100set laststatus=2 101set noshowmode 102 103"filetype 104autocmd BufNewFile,BufRead *.gradle set syntax=groovy 105autocmd BufNewFile,BufRead *.gradle.kts set syntax=groovy 106autocmd BufNewFile,BufRead *.kt set syntax=groovy 107 108"autocmd Filetype yaml setlocal tabstop=2 ai colorcolumn=1,3,5,7,9,80 109 110set grepprg=grep\ -nH\ $* 111let g:tex_flavor='latex' 112"let g:livepreview_previewer = 'zathura' 113let g:Tex_DefaultTargetFormat = 'pdf' 114"let g:Tex_CompileRule_pdf = 'pdflatex' 115let g:Tex_ViewRule_pdf = 'zathura'