|
|
|
@ -6,40 +6,43 @@ call plug#begin('~/.vim/plugged') |
|
|
|
Plug 'cespare/vim-toml' |
|
|
|
Plug 'cespare/vim-toml' |
|
|
|
"LaTeX |
|
|
|
"LaTeX |
|
|
|
Plug 'lervag/vimtex' |
|
|
|
Plug 'lervag/vimtex' |
|
|
|
|
|
|
|
|
|
|
|
Plug 'junegunn/fzf' |
|
|
|
Plug 'junegunn/fzf' |
|
|
|
Plug 'junegunn/fzf.vim' |
|
|
|
Plug 'junegunn/fzf.vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plug 'morhetz/gruvbox' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plug 'vim-airline/vim-airline' |
|
|
|
|
|
|
|
Plug 'vim-airline/vim-airline-themes' |
|
|
|
|
|
|
|
|
|
|
|
call plug#end() |
|
|
|
call plug#end() |
|
|
|
|
|
|
|
|
|
|
|
"Need to specify latex flavor for the lervag/vimtex plugin |
|
|
|
"Need to specify latex flavor for the lervag/vimtex plugin |
|
|
|
:let g:tex_flavor = 'latex' |
|
|
|
:let g:tex_flavor = 'latex' |
|
|
|
|
|
|
|
"Color scheme |
|
|
|
"Enable colors and set color scheme |
|
|
|
:let g:gruvbox_contrast_dark='hard' |
|
|
|
"if has('nvim') |
|
|
|
:colorscheme gruvbox |
|
|
|
if exists('+termguicolors') |
|
|
|
:highlight Normal ctermbg=NONE |
|
|
|
:set termguicolors |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
:colorscheme monokai-black |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"Line numbers |
|
|
|
"Line numbers |
|
|
|
:set number |
|
|
|
:set number |
|
|
|
"Column guide |
|
|
|
"Column guide |
|
|
|
:set colorcolumn=93 |
|
|
|
:set colorcolumn=93 |
|
|
|
:highlight ColorColumn ctermbg=darkgrey |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"Misc keymappings and configurations |
|
|
|
"Misc keymappings and configurations |
|
|
|
:imap jk <Esc> |"use jk for exiting insert mode |
|
|
|
:imap jk <Esc> |"use jk for exiting insert mode |
|
|
|
:set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent "Nicer tab actions |
|
|
|
:set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent "Nicer tab actions |
|
|
|
|
|
|
|
|
|
|
|
"Move aroung splits without the C-W prefix |
|
|
|
"Move aroung splits without the C-W prefix |
|
|
|
:nnoremap <C-J> <C-W><C-J> |
|
|
|
:nnoremap <C-J> <C-W><C-J> |
|
|
|
:nnoremap <C-K> <C-W><C-K> |
|
|
|
:nnoremap <C-K> <C-W><C-K> |
|
|
|
:nnoremap <C-L> <C-W><C-L> |
|
|
|
:nnoremap <C-L> <C-W><C-L> |
|
|
|
:nnoremap <C-H> <C-W><C-H> |
|
|
|
:nnoremap <C-H> <C-W><C-H> |
|
|
|
|
|
|
|
"Easier fzf keybindings |
|
|
|
|
|
|
|
:nnoremap <C-F> :Rg!<CR> |
|
|
|
|
|
|
|
:nnoremap <C-O> :Files!<CR> |
|
|
|
"More natural split directions |
|
|
|
"More natural split directions |
|
|
|
:set splitbelow |
|
|
|
:set splitbelow |
|
|
|
:set splitright |
|
|
|
:set splitright |
|
|
|
"Auto-resize splits when terminal window changes size (e.g. when splitting or |
|
|
|
"Auto-resize splits when terminal window changes size (e.g. when splitting or |
|
|
|
"zooming with tmux |
|
|
|
"zooming with tmux |
|
|
|
:autocmd VimResized * wincmd = |
|
|
|
:autocmd VimResized * wincmd = |
|
|
|
|
|
|
|
"Airline status bar |
|
|
|
|
|
|
|
:let g:airline_theme='bubblegum' |
|
|
|
|