Update dots
This commit is contained in:
committed by
Marco Thomas
parent
acd10383de
commit
90d6443b27
@@ -1,20 +1,27 @@
|
||||
" ▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄
|
||||
" █ █▄█ █ █ ▄ █ █ █ ██ █ █ █ █ █ █ █▄█ █ ▄ █ █ █
|
||||
" █ █ ▄ █ █ █ █ █ █▄▄██ ▄▄▄▄▄█ █ █▄█ █ █ █ █ █ █ █ █
|
||||
" █ █ █▄█ █ █▄▄█▄█ ▄▄█ █ █▄▄▄▄▄ █ █ █ █ █▄▄█▄█ ▄▄█
|
||||
" █ █ █ ▄▄ █ █ █▄▄▄▄▄ █ █ █ █ █ ▄▄ █ █
|
||||
" █ ██▄██ █ ▄ █ █ █ █ █▄▄ ▄▄▄▄▄█ █ █ ██ █ ██▄██ █ █ █ █ █▄▄
|
||||
" █▄█ █▄█▄█ █▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█ █▄▄▄▄▄▄▄█ █▄▄▄█ █▄▄▄█▄█ █▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||
"
|
||||
|
||||
let mapleader = "\<Space>"
|
||||
" ------------------------------------- Vundle Setup ---------------------------
|
||||
|
||||
" ============================== Plugins
|
||||
set nocompatible
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Show git changes
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Automatic intendations
|
||||
Plugin 'tpope/vim-sleuth'
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Match parents
|
||||
Plugin 'tmsvg/pear-tree'
|
||||
|
||||
@@ -31,13 +38,13 @@ let g:pear_tree_pairs = {
|
||||
\ '<': {'closer': '>'}
|
||||
\ }
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Helper for latex
|
||||
Plugin 'lervag/vimtex'
|
||||
|
||||
let g:vimtex_view_general_viewer = 'zathura'
|
||||
nmap <C-c> :VimtexCompile <CR>
|
||||
nmap <C-t> :VimtexTocToggle <CR>
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" fzf
|
||||
if executable("fzf")
|
||||
Plugin 'junegunn/fzf'
|
||||
@@ -46,70 +53,58 @@ if executable("fzf")
|
||||
nmap <C-f> :Files<CR>
|
||||
endif
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Colors
|
||||
Plugin 'arcticicestudio/nord-vim'
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
|
||||
let g:airline_theme='nord'
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:bufferline_echo = 0
|
||||
set guifont="FiraCode Nerd Font Mono"
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
call vundle#end()
|
||||
filetype plugin indent on
|
||||
|
||||
" ------------------------------------- Colors ---------------------------------
|
||||
" ============================== Colors
|
||||
syntax on
|
||||
colorscheme nord
|
||||
set colorcolumn=81
|
||||
filetype indent plugin on
|
||||
|
||||
" ------------------------------------- General --------------------------------
|
||||
" ============================== General
|
||||
set number
|
||||
set relativenumber
|
||||
":highlight LineNr ctermfg=white "color
|
||||
set showmatch " Highlights paranthesis
|
||||
|
||||
set showmatch " highlights paranthesis
|
||||
set mat=5
|
||||
set noswapfile
|
||||
set noswapfile " can be problamatic on some systems
|
||||
set confirm " can't quit without saving
|
||||
set noshowmode " don't show mode in status
|
||||
set noshowcmd " don't show command in status
|
||||
"set cursorline " highlight cursorline
|
||||
set encoding=utf-8
|
||||
set mouse=c
|
||||
set undolevels=1337
|
||||
set undolevels=1337 " memegods can make mistakes
|
||||
set backspace=indent,eol,start
|
||||
set wildmenu " autocomplete :e
|
||||
|
||||
" ------------------------------------- Indents & Whitespaces ------------------
|
||||
" ============================== Indents and Whitespaces
|
||||
set list
|
||||
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
||||
|
||||
" ------------------------------------- Search ---------------------------------
|
||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||
match ExtraWhitespace /\s\+\%#\@<!$/
|
||||
|
||||
" ============================== Search
|
||||
set incsearch
|
||||
set ignorecase
|
||||
set smartcase " case sensitive with capital letters
|
||||
set smartcase " case sensitive when capital letters are used
|
||||
set hlsearch " highlight all results
|
||||
nnoremap<leader><space> :nohlsearch<CR>
|
||||
|
||||
" ------------------------------------- Cursor ---------------------------------
|
||||
" ============================== Cursor Thiccness
|
||||
let &t_SI = "\<Esc>[6 q"
|
||||
let &t_SR = "\<Esc>[4 q"
|
||||
let &t_EI = "\<Esc>[2 q"
|
||||
|
||||
" ------------------------------------- vimtex ---------------------------------
|
||||
nmap <C-c> :VimtexCompile <CR>
|
||||
nmap <C-t> :VimtexTocToggle <CR>
|
||||
|
||||
" ------------------------------------- netrw ----------------------------------
|
||||
" ============================== netrw
|
||||
let g:netrw_winsize = 25
|
||||
let g:netrw_liststyle = 3 " Tree-like structure
|
||||
let g:netrw_banner = 0 " Remove useless banner at the top of netrw
|
||||
|
||||
" ------------------------------------- Macros & Mappings ----------------------
|
||||
" ============================== Macros and Mappings
|
||||
cmap Wq wq
|
||||
cmap Q q
|
||||
cmap W w
|
||||
|
||||
Reference in New Issue
Block a user