From 5d51384b593247ce1cef9a5e01e9af07beb50b2f Mon Sep 17 00:00:00 2001 From: gre-ilya Date: Thu, 13 Nov 2025 09:35:43 +0500 Subject: [PATCH] implementing various vimrcs --- vimrc-s/.vimrc | 38 +++++++++++ vimrc-s/.vimrc-latex | 38 +++++++++++ vimrc-s/.vimrc-pascal | 155 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 231 insertions(+) create mode 100644 vimrc-s/.vimrc create mode 100644 vimrc-s/.vimrc-latex create mode 100644 vimrc-s/.vimrc-pascal diff --git a/vimrc-s/.vimrc b/vimrc-s/.vimrc new file mode 100644 index 0000000..8199883 --- /dev/null +++ b/vimrc-s/.vimrc @@ -0,0 +1,38 @@ +"VIEW config +syntax off +filetype off +set number +"set textwidth=79 + +"INDENT config +filetype plugin indent on + +"" show existing tab with 8 spaces width +set tabstop=8 + +"" when indenting with '>', use 4 spaces width +set shiftwidth=4 + +"" On pressing tab, insert 4 spaces +set expandtab +set autoindent + + +"MACROS config +vnoremap "hy:%s/h//gc +nnoremap :w + +" Put braces +vnoremap a)gvoi(gvlol + +" Goto tag +nnoremap 22 ee*zz + +"PLUGIN config +let g:NERDTreeNodeDelimiter = "\u00a0" +execute "set =\en" +nnoremap :NERDTree + + +" Copy on ctrl-shift-c +vnoremap "+y diff --git a/vimrc-s/.vimrc-latex b/vimrc-s/.vimrc-latex new file mode 100644 index 0000000..c587810 --- /dev/null +++ b/vimrc-s/.vimrc-latex @@ -0,0 +1,38 @@ +"VIEW config +syntax off +filetype off +set number +"set textwidth=79 + +"INDENT config +filetype plugin indent on +"" show existing tab with 8 spaces width +set tabstop=8 +" +"" when indenting with '>', use 4 spaces width +set shiftwidth=4 +" +"" On pressing tab, insert 4 spaces +set expandtab +set autoindent + + +"MACROS config +vnoremap "hy:%s/h//gc +nnoremap :w + + +"LaTEX config +" vnoremap c{\bfseries "} + +" Put braces +vnoremap a)gvoi(gvlol + + +"PLUGIN config +let g:NERDTreeNodeDelimiter = "\u00a0" +execute "set =\en" +nnoremap :NERDTree + +" Copy on ctrl-shift-c +vnoremap "+y diff --git a/vimrc-s/.vimrc-pascal b/vimrc-s/.vimrc-pascal new file mode 100644 index 0000000..a8b355c --- /dev/null +++ b/vimrc-s/.vimrc-pascal @@ -0,0 +1,155 @@ +"VIEW config +syntax off +filetype off +set number +"set textwidth=79 + +"INDENT config +filetype plugin indent on +"" show existing tab with 8 spaces width +set tabstop=8 +" +"" when indenting with '>', use 4 spaces width +set shiftwidth=4 +" +"" On pressing tab, insert 4 spaces +set expandtab +set autoindent + + +"MACROS config +vnoremap "hy:%s/h//gc +nnoremap :w + +" Put braces +vnoremap a)gvoi(gvlol + +" Goto tag +nnoremap 22 ee*zz + +" Copy on ctrl-shift-c +vnoremap "+y + +"PLUGIN config +let g:NERDTreeNodeDelimiter = "\u00a0" +execute "set =\en" +nnoremap :NERDTree + + +"MACROS +"PASCAL_BEGIN +vnoremap oend;gvoObegingv>gvo$ + +:iab ifi ^ifunction eli(lxhea: integer): integer; + \var20xi + \begin + \end;O + + +:iab ifii ^ifunction eli(lxhea, + \ea: integer): integer; + \var20xi + \begin + \end;O + +:iab ifiii ^ifunction eli(lxhea, + \ea, + \ea: integer): integer; + \var20xi + \begin + \end;O + +:iab ifv ^ifunction eli(lxhea): integer; + \var20xi + \begin + \end;O + +:iab ifvv ^ifunction eli(lxhea, + \ea): integer; + \var20xi + \begin + \end;O + + +:iab tfv ^ifunction eli(lxhea): TYPE; + \var20xi + \begin + \end;O + +:iab tfvv ^ifunction eli(lxhea,ea): TYPE; + \var20xi + \begin + \end;O + +:iab tfvvv ^ifunction eli(lxhea, + \ea, + \ea): TYPE; + \var20xi + \begin + \end;O + +:iab tfvvvv ^ifunction eli(lxhea, + \ea, + \ea, + \ea): TYPE; + \var20xi + \begin + \end;O + +:iab tfvvvvv ^ifunction eli(lxhea, + \ea, + \ea, + \ea, + \ea): TYPE; + \var20xi + \begin + \end;O + +":iab pi ^iprocedure eli(lxhea: integer); +" \var20xi +" \begin +" \end;O + +":iab pii ^iprocedure eli(lxhea, +" \ea: integer); +" \var20xi +" \begin +" \end;O + +:iab piii ^iprocedure eli(lxhea, + \ea, + \ea: integer); + \var20xi + \begin + \end;O + +:iab pv ^iprocedure eli(lxhea); + \var20xi + \begin + \end;O + +:iab pvv ^iprocedure eli(lxhea,ea); + \var20xi + \begin + \end;O + +:iab pvvv ^iprocedure eli(lxhea,ea,ea); + \var20xi + \begin + \end;O + +:iab pvvvv ^iprocedure eli(lxhea,ea,ea,ea); + \var20xi + \begin + \end;O + +:iab pvvvvv ^iprocedure eli(lxhea, + \ea, + \ea, + \ea, + \ea); + \var20xi + \begin + \end;O + +"PASCAL_END