-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from PrashanthaTP/v2.0.0
Version 2.0.0
- Loading branch information
Showing
13 changed files
with
291 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
""" | ||
"Auto Commands | ||
""" | ||
" trim trailing whitespace ----- {{{ | ||
"https://vi.stackexchange.com/a/456 | ||
fun! TrimWhitespace() | ||
let l:save = winsaveview() | ||
keeppatterns %s/\s\+$//e | ||
call winrestview(l:save) | ||
endfun | ||
|
||
augroup TRIM_WHITESPACE | ||
autocmd! | ||
autocmd BufWritePre * if !&binary && &ft !=# 'mail' | ||
\| call TrimWhitespace() | ||
\| endif | ||
augroup END | ||
" }}} | ||
|
||
" persistent folding state --- {{{ | ||
augroup REMEMBER_FOLDS | ||
autocmd! | ||
autocmd BufWinLeave *.* mkview | ||
autocmd BufWinEnter *.* silent! loadview | ||
augroup END | ||
" --- }}} | ||
|
||
" Cursor management --- {{{ | ||
"https://github.com/microsoft/terminal/issues/4335 | ||
" | ||
" https//vim.fandom.com/wiki/Configuring_the_cursor | ||
" 1 or 0 -> blinking block | ||
" 2 solid block | ||
" 3 -> blinking underscore | ||
" 4 solid underscore | ||
" Recent versions of xterm (282 or above) also support | ||
" 5 -> blinking vertical bar | ||
" 6 -> solid vertical bar | ||
" | ||
augroup CURSOR_MANAGEMENT | ||
autocmd! | ||
|
||
" powershell requires different format for escape codes | ||
" see : | ||
" (i) https://docs.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-5.1#example-6--use-vimodechangehandler-to-display-vi-mode-changes | ||
" (ii) https://github.com/microsoft/terminal/issues/1604 | ||
if has('win32') | ||
"https://github.com/neovim/neovim/issues/4867#issuecomment-291249173" | ||
autocmd VimEnter * silent !echo -ne "\e[2 q" | ||
autocmd VimLeave * set guicursor=a:ver25 | ||
|
||
else | ||
autocmd VimEnter * silent !echo -ne "\e[2 q" | ||
autocmd VimLeave * silent !echo -ne "\e[6 q" | ||
" autocmd VimLeave * let &t_me="\<Esc>]50;CursorShape=1\x7" | ||
" autocmd VimLeave * let &t_SI.="\<Esc>[6 q" | ||
endif | ||
augroup END | ||
" }} |
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,25 @@ | ||
let g:colorscheme='default' | ||
" gruvbox ----- {{{ | ||
if (has("termguicolors")) | ||
set termguicolors | ||
endif | ||
set background=dark | ||
" colorscheme gruvbox | ||
" au Colorscheme gruvbox :hi Keyword gui=italic cterm=italic | ||
"https://github.com/sainnhe/gruvbox-material/blob/master/doc/gruvbox-material.txt | ||
"soft,medium,hard | ||
"let g:gruvbox_material_background = 'medium' | ||
let g:gruvbox_material_transparent_background = 1 | ||
let g:gruvbox_material_enable_bold = 1 | ||
let g:gruvbox_material_enable_italic = 1 | ||
"let g:gruvbox_material_statusline_style = 'original' | ||
let g:gruvbox_material_diagnostic_virtual_text = 'colored' | ||
let g:gruvbox_material_better_performance = 1 | ||
"configuration must be dont before applying colorscheme | ||
" | ||
"if &filetype!='gitcommit' | ||
colorscheme gruvbox-material | ||
"endif | ||
|
||
" }}} | ||
|
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,23 @@ | ||
" also see augroups.vim | ||
" cursor ----- {{{ | ||
" Cursor in terminal | ||
" https//vim.fandom.com/wiki/Configuring_the_cursor | ||
" 1 or 0 -> blinking block | ||
" 2 solid block | ||
" 3 -> blinking underscore | ||
" 4 solid underscore | ||
" Recent versions of xterm (282 or above) also support | ||
" 5 -> blinking vertical bar | ||
" 6 -> solid vertical bar | ||
if &term =~ '^xterm' | ||
" normal mode || | ||
" .= means shorthand for appending : see help .= | ||
let &t_EI .= "\<Esc>[1 q" | ||
" replace mode _ | ||
let &t_SR .= "\e[4 q" | ||
" insert mode | | ||
let &t_SI .= "\<Esc>[6 q" | ||
endif | ||
" | ||
" }}} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function Set_git_settings() | ||
"colorscheme gruvbox | ||
"below line is important : gruvbox-material doesn't work | ||
let g:lightline.colorscheme='gruvbox' | ||
endfunction | ||
|
||
if &diff | ||
set nornu | ||
"https://stackoverflow.com/questions/2019281/load-different-colorscheme-when-using-vimdiff | ||
" highlight! DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red | ||
" highlight! DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red | ||
" highlight! DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red | ||
" highlight! DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red | ||
" Fix the difficult-to-read default setting for diff text highlighting. The | ||
" bang (!) is required since we are overwriting the DiffText setting. The highlighting | ||
" for \"Todo" also looks nice (yellow) if you don't like the \"MatchParen" colors. | ||
highlight! link DiffText MatchParen | ||
|
||
:call Set_git_settings() | ||
endif | ||
|
||
|
||
augroup GITCOMMIT_SETTINGS | ||
"https://vi.stackexchange.com/questions/4343/can-i-detect-whether-current-vim-instance-is-launched-by-git | ||
autocmd! | ||
autocmd FileType gitcommit silent :call Set_git_settings() | ||
augroup END |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
let mapleader = "\<Space>" | ||
|
||
source $LOCALAPPDATA/nvim/general/augroups.vim | ||
source $LOCALAPPDATA/nvim/plugs/plugins.vim | ||
source $LOCALAPPDATA/nvim/general/colorscheme_settings.vim | ||
source $LOCALAPPDATA/nvim/plugs/coc.vim | ||
source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim | ||
source $LOCALAPPDATA/nvim/plugs/telescope_plug.vim | ||
source $LOCALAPPDATA/nvim/plugs/firenvim.vim | ||
source $LOCALAPPDATA/nvim/plugs/markdown.vim | ||
|
||
source $LOCALAPPDATA/nvim/general/cursor.vim | ||
source $LOCALAPPDATA/nvim/general/general.vim | ||
source $LOCALAPPDATA/nvim/general/leader.vim | ||
source $LOCALAPPDATA/nvim/general/keybindings.vim | ||
|
||
source $LOCALAPPDATA/nvim/languages/languages.vim | ||
"set path+=* | ||
|
||
source $LOCALAPPDATA/nvim/general/git.vim | ||
|
||
"set path+=** | ||
hi Normal ctermbg=none guibg=none | ||
"wrap backspace | ||
set backspace=indent,eol,start | ||
hi Comment gui=italic cterm=italic | ||
hi htmlArg gui=italic cterm=italic | ||
|
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.