mirror of https://github.com/fredrikekre/.dotfiles
3 changed files with 77 additions and 0 deletions
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after |
||||
let &packpath = &runtimepath |
||||
source ~/.vimrc |
||||
@ -0,0 +1,34 @@
@@ -0,0 +1,34 @@
|
||||
" VIM color file |
||||
" |
||||
" Note: Based on the Monokai theme for Sublime Text |
||||
|
||||
hi clear |
||||
set background=dark |
||||
if version > 580 |
||||
if exists("syntax_on") |
||||
syntax reset |
||||
endif |
||||
endif |
||||
set t_Co=256 |
||||
let g:colors_name="Monokai" |
||||
hi Character guifg=#AE81FF guibg=NONE guisp=NONE gui=NONE ctermfg=141 ctermbg=NONE cterm=NONE |
||||
hi Comment guifg=#75715E guibg=NONE guisp=NONE gui=NONE ctermfg=242 ctermbg=NONE cterm=NONE |
||||
hi Constant guifg=#AE81FF guibg=NONE guisp=NONE gui=NONE ctermfg=141 ctermbg=NONE cterm=NONE |
||||
hi Cursor guifg=NONE guibg=#F8F8F0 guisp=NONE gui=NONE ctermfg=NONE ctermbg=255 cterm=NONE |
||||
hi CursorLine guifg=NONE guibg=#3E3D32 guisp=NONE gui=NONE ctermfg=NONE ctermbg=237 cterm=NONE |
||||
hi Function guifg=#A6E22E guibg=NONE guisp=NONE gui=NONE ctermfg=148 ctermbg=NONE cterm=NONE |
||||
hi Identifier guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE |
||||
hi Keyword guifg=#F92672 guibg=NONE guisp=NONE gui=NONE ctermfg=197 ctermbg=NONE cterm=NONE |
||||
hi LineNr guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE |
||||
hi Normal guifg=#F8F8F2 guibg=#0D0D0B guisp=NONE gui=NONE ctermfg=255 ctermbg=232 cterm=NONE |
||||
hi Number guifg=#AE81FF guibg=NONE guisp=NONE gui=NONE ctermfg=141 ctermbg=NONE cterm=NONE |
||||
hi StorageClass guifg=#F92672 guibg=NONE guisp=NONE gui=NONE ctermfg=197 ctermbg=NONE cterm=NONE |
||||
hi String guifg=#E6DB74 guibg=NONE guisp=NONE gui=NONE ctermfg=186 ctermbg=NONE cterm=NONE |
||||
hi Type guifg=#A6E22E guibg=NONE guisp=NONE gui=underline ctermfg=148 ctermbg=NONE cterm=underline |
||||
hi Visual guifg=NONE guibg=#49483E guisp=NONE gui=NONE ctermfg=NONE ctermbg=238 cterm=NONE |
||||
|
||||
hi link Conditional Keyword |
||||
hi link Repeat Keyword |
||||
|
||||
hi link cType Keyword |
||||
|
||||
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
call plug#begin('~/.vim/plugged') |
||||
|
||||
"Julia support |
||||
Plug 'JuliaEditorSupport/julia-vim' |
||||
"TOML syntax highlighting |
||||
Plug 'cespare/vim-toml' |
||||
"LaTeX |
||||
Plug 'lervag/vimtex' |
||||
|
||||
call plug#end() |
||||
|
||||
"Need to specify latex flavor for the lervag/vimtex plugin |
||||
:let g:tex_flavor = 'latex' |
||||
|
||||
"Enable colors and set color scheme |
||||
"if has('nvim') |
||||
if exists('+termguicolors') |
||||
:set termguicolors |
||||
endif |
||||
:colorscheme monokai-black |
||||
|
||||
"Line numbers |
||||
:set number |
||||
|
||||
"Misc keymappings and configurations |
||||
:imap jk <Esc> |"use jk for exiting insert mode |
||||
:set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent "Nicer tab actions |
||||
|
||||
"Move aroung splits without the C-W prefix |
||||
:nnoremap <C-J> <C-W><C-J> |
||||
:nnoremap <C-K> <C-W><C-K> |
||||
:nnoremap <C-L> <C-W><C-L> |
||||
:nnoremap <C-H> <C-W><C-H> |
||||
"More natural split directions |
||||
:set splitbelow |
||||
:set splitright |
||||
"Auto-resize splits when terminal window changes size (e.g. when splitting or |
||||
"zooming with tmux |
||||
:autocmd VimResized * wincmd = |
||||
|
||||
Loading…
Reference in new issue