This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update @ Mon 4 Oct 22:28:50 EEST 2021
- Loading branch information
Ari Archer
committed
Oct 4, 2021
1 parent
feee2e6
commit a801db8
Showing
11 changed files
with
261 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
dotfiles/editors/vim/.vim/pack/plugins/start/vimrc/plugin/functions.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
" Trim trailing white-space in files | ||
fun! TrimWhitespace() | ||
let l:save = winsaveview() | ||
keeppatterns %s/\s\+$//e | ||
call winrestview(l:save) | ||
endfun | ||
|
||
augroup whitespace_trim | ||
autocmd! | ||
autocmd BufWritePre * :call TrimWhitespace() | ||
augroup END | ||
|
||
|
||
" Show diff in a better way | ||
function! s:DiffWithSaved() | ||
let filetype=&ft | ||
diffthis | ||
vnew | r # | normal! 1Gdd | ||
diffthis | ||
exe "setlocal bt=nofile bh=wipe nobl noswf ro ft=" . filetype | ||
endfunction | ||
com! Diff call s:DiffWithSaved() | ||
cabbrev diff Diff | ||
|
9 changes: 9 additions & 0 deletions
9
dotfiles/editors/vim/.vim/pack/plugins/start/vimrc/plugin/hide.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
" Hide the background | ||
hi Normal guibg=NONE ctermbg=NONE | ||
hi LineNr guibg=NONE ctermbg=NONE | ||
hi SignColumn guibg=NONE ctermbg=NONE | ||
hi EndOfBuffer guibg=NONE ctermbg=NONE | ||
|
||
" Hide cursorline background | ||
hi CursorLine cterm=NONE term=underline ctermbg=NONE guibg=NONE | ||
|
21 changes: 21 additions & 0 deletions
21
dotfiles/editors/vim/.vim/pack/plugins/start/vimrc/plugin/key_mapping.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
" Remap ; -> : | ||
map ; : | ||
" Remap lj -> escape | ||
map lj <Esc> | ||
inoremap lj <Esc> | ||
" h, l <=> b, w | ||
nnoremap h b | ||
nnoremap l w | ||
nnoremap b h | ||
nnoremap w l | ||
" Disable arrows keys because I keep using them :( | ||
for key in ['<Up>', '<Down>', '<Left>', '<Right>'] | ||
exec 'map' key '<Nop>' | ||
exec 'inoremap' key '<Nop>' | ||
endfor | ||
|
||
let mapleader = "," " , = leader | ||
|
15 changes: 15 additions & 0 deletions
15
dotfiles/editors/vim/.vim/pack/plugins/start/vimrc/plugin/plugin_config.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
" laTeX config | ||
let g:tex_flavor='latex' | ||
|
||
" Bar's configuration | ||
let g:lightline = {} | ||
let g:lightline.colorscheme = 'apprentice' " Set the bar's theme | ||
|
||
" Remove bar's background | ||
let s:palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette | ||
let s:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ] | ||
let s:palette.inactive.middle = s:palette.normal.middle | ||
let s:palette.tabline.middle = s:palette.normal.middle | ||
|
||
set noshowmode " Don't show what mode vim is in | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.