From 0a53b6937219d4442019e065c7767ed4f966054a Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 14 Apr 2022 09:22:55 +0430 Subject: update --- root/.vimrc | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/root/.vimrc b/root/.vimrc index c0d8088..f31ee0f 100644 --- a/root/.vimrc +++ b/root/.vimrc @@ -14,21 +14,35 @@ set expandtab set smarttab set autoindent set wildignorecase -set secure set hlsearch set incsearch set ignorecase set smartcase set noerrorbells set novisualbell +set dictionary+=/usr/share/dict/words set backspace=indent,eol,start set pastetoggle= +nnoremap :Vexplore nnoremap nn :bn nnoremap pp :bp map :q nnoremap :vsp nnoremap :sp map w :w +nmap Y y$ +vmap Y y$ +nnoremap :bd +nnoremap c :call clearmatches() +inoremap I +inoremap A +nnoremap t :bel term +nnoremap r :!%:p +nnoremap rl :.w !bash +set pastetoggle= +cnoremap +cnoremap +nmap m :make set laststatus=2 function! InsertStatuslineColor(mode) @@ -71,3 +85,67 @@ hi def InterestingWord7 ctermfg=16 ctermbg=99 guifg=#000000 guibg=#875fff hi def InterestingWord8 ctermfg=16 ctermbg=35 guifg=#000000 guibg=#00af5f hi def InterestingWord9 ctermfg=16 ctermbg=57 guifg=#000000 guibg=#5f00ff hi def InterestingWord0 ctermfg=16 ctermbg=39 guifg=#000000 guibg=#00afff +" +"typos +iab adn and +iab teh the +iab strign string +iab pritn print +iab retrun return +iab fucntion function +iab funciton function +iab tehn then +iab coutn count +iab accoutn account +iab applciation application +iab cosnt const +iab ehco echo + +"netrw +let g:netrw_sort_by = 'date' +let g:netrw_sort_direction = 'reverse' +let g:netrw_banner = 0 +let g:netrw_liststyle = 3 +let g:netrw_browse_split = 1 +let g:netrw_winsize = 15 +let g:netrw_fastbrowse = 1 +let g:netrw_sort_by = 'name' +let g:netrw_sort_direction = 'normal' + +inoremap " "" +inoremap ' '' +inoremap ` `` +inoremap ( () +inoremap [ [] +inoremap { {} +inoremap { {}O +inoremap {; {};O + +let g:camelchar = "A-Z0-9.,;:{([`'\"_" +nnoremap :call search('\C\<\\%(^\[^'.g:camelchar.']\@<=\)['.g:camelchar.']\['.g:camelchar.']\ze\%([^'.g:camelchar.']\&\>\@!\)\\%^','bW') +nnoremap :call search('\C\<\\%(^\[^'.g:camelchar.']\@<=\)['.g:camelchar.']\['.g:camelchar.']\ze\%([^'.g:camelchar.']\&\>\@!\)\\%$','W') +inoremap :call search('\C\<\\%(^\[^'.g:camelchar.']\@<=\)['.g:camelchar.']\['.g:camelchar.']\ze\%([^'.g:camelchar.']\&\>\@!\)\\%^','bW') +inoremap :call search('\C\<\\%(^\[^'.g:camelchar.']\@<=\)['.g:camelchar.']\['.g:camelchar.']\ze\%([^'.g:camelchar.']\&\>\@!\)\\%$','W') +vnoremap :call search('\C\<\\%(^\[^'.g:camelchar.']\@<=\)['.g:camelchar.']\['.g:camelchar.']\ze\%([^'.g:camelchar.']\&\>\@!\)\\%^','bW')v`>o +vnoremap `>:call search('\C\<\\%(^\[^'.g:camelchar.']\@<=\)['.g:camelchar.']\['.g:camelchar.']\ze\%([^'.g:camelchar.']\&\>\@!\)\\%$','W')v` > + nnoremap < + nnoremap - + nnoremap + +endif + +"copy and paste between different Vim instances +nmap _Y :!echo ""> ~/.vi_tmp:w! ~/.vi_tmp +vmap _Y :w! ~/.vi_tmp +nmap _P :r ~/.vi_tmp + +if has("gui") + " set guifont=DejaVu_Sans_Mono_for_Powerline:h10 + set guioptions-=m + set guioptions-=T + set guioptions-=L + set guioptions-=r +endif +set secure -- cgit v1.2.3