From b6f020fb79a8dec66387d7f63f1719c0736850b1 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 10 Feb 2020 20:42:07 +0100 Subject: nuvim --- .vimrc | 133 +++++++++++++++++++++++++++++++++++---------------------------- init.vim | 3 ++ 2 files changed, 78 insertions(+), 58 deletions(-) create mode 100644 init.vim diff --git a/.vimrc b/.vimrc index 480141e..1d9b3ad 100644 --- a/.vimrc +++ b/.vimrc @@ -2,8 +2,10 @@ let mapleader="," " Plugins call plug#begin('~/.vim/plugged') +Plug 'mbbill/undotree' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' +Plug 'jiangmiao/auto-pairs' call plug#end() " Some basics: @@ -20,8 +22,10 @@ call plug#end() filetype plugin indent on set encoding=utf-8 set number + set relativenumber set ruler syntax on + colo peachpuff set hidden " Enable autocompletion: @@ -39,7 +43,7 @@ call plug#end() let g:airline_detect_paste = 1 let g:airline_detect_crypt = 1 let g:airline_theme = 'term' - let g:airline_powerline_fonts = 1 + "let g:airline_powerline_fonts = 1 let g:airline_symbols_ascii = 1 let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]' @@ -97,17 +101,17 @@ call plug#end() autocmd FileType cpp noremap :w :!clear :!~/.vim/cpp/f10.sh % " === Comfy === " C - autocmd FileType c inoremap " "" - autocmd FileType c inoremap ' '' - autocmd FileType c inoremap ( () - autocmd FileType c inoremap [ [] - autocmd FileType c inoremap { {} - autocmd FileType c inoremap < <> - autocmd FileType c inoremap { {}O - autocmd FileType c inoremap {; {};O - autocmd FileType c inoremap < < - autocmd FileType c inoremap > > - autocmd FileType c inoremap <= <= + "autocmd FileType c inoremap " "" + "autocmd FileType c inoremap ' '' + "autocmd FileType c inoremap ( () + "autocmd FileType c inoremap [ [] + "autocmd FileType c inoremap { {} + "autocmd FileType c inoremap < <> + "autocmd FileType c inoremap { {}O + "autocmd FileType c inoremap {; {};O + "autocmd FileType c inoremap < < + "autocmd FileType c inoremap > > + "autocmd FileType c inoremap <= <= autocmd FileType c nnoremap m o#include#include#include#includeintmain(void){return0;}O autocmd FileType c nnoremap M o#include#include#include#includeintmain(intargc,char*argv[]){if(argc!=1){printf("NOTENOUGHARGS\n");return1;}return0;}Oprintf(); @@ -115,64 +119,77 @@ call plug#end() autocmd FileType cpp noremap :w:!g++-Wall-Wextra-Werror -O3 % autocmd FileType cpp noremap :w:!g++ -Wall -Wextra -Werror -O3 %; ./a.out ; echo "~>\n\n.vimrc 2.3.1-release Tilde Edition by Joe"; rm a.out autocmd FileType cpp noremap :w:!g++ -Wall -Wextra -Werror -O3 %; ./a.out; echo "~>\n\n.vimrc 2.3.1-release Tilde Edition by Joe"; rm a.out - autocmd FileType cpp inoremap " "" - autocmd FileType cpp inoremap ' '' - autocmd FileType cpp inoremap ( () - autocmd FileType cpp inoremap [ [] - autocmd FileType cpp inoremap { {} - autocmd FileType cpp inoremap < <> - autocmd FileType cpp inoremap { {}O - autocmd FileType cpp inoremap {; {};O - autocmd FileType cpp inoremap < < - autocmd FileType cpp inoremap << << - autocmd FileType cpp inoremap > > - autocmd FileType cpp inoremap >> >> - autocmd FileType cpp inoremap <= <= + ""autocmd FileType cpp inoremap " "" + ""autocmd FileType cpp inoremap ' '' + ""autocmd FileType cpp inoremap ( () + ""autocmd FileType cpp inoremap [ [] + ""autocmd FileType cpp inoremap { {} + ""autocmd FileType cpp inoremap < <> + ""autocmd FileType cpp inoremap { {}O + ""autocmd FileType cpp inoremap {; {};O + ""autocmd FileType cpp inoremap < < + ""autocmd FileType cpp inoremap << << + ""autocmd FileType cpp inoremap > > + ""autocmd FileType cpp inoremap >> >> + ""autocmd FileType cpp inoremap <= <= autocmd FileType cpp nnoremap m ointmain(void){return0;}O autocmd FileType cpp nnoremap M ointmain(intargc,char*argv[]){if(argc!=1)return0;if(argv[]){}return0;}O autocmd FileType cpp nnoremap M ointmain(intargc,char*argv[]){if(argc!=1){cout<<"NOTENOUGHARGS"<<endl;return1;}return0;}O +" Java + ""autocmd FileType java inoremap " "" + ""autocmd FileType java inoremap ' '' + ""autocmd FileType java inoremap ( () + ""autocmd FileType java inoremap [ [] + ""autocmd FileType java inoremap { {} + ""autocmd FileType java inoremap < <> + ""autocmd FileType java inoremap { {}O + ""autocmd FileType java inoremap {; {};O + ""autocmd FileType java inoremap < < + ""autocmd FileType java inoremap > > + ""autocmd FileType java inoremap <= <= + " = Web = " HTML - autocmd FileType html inoremap " "" - autocmd FileType html inoremap ' '' - autocmd FileType html inoremap ( () - autocmd FileType html inoremap [ [] - autocmd FileType html inoremap { {} - autocmd FileType html inoremap { {}O - autocmd FileType html inoremap < <> + "autocmd FileType html inoremap " "" + "autocmd FileType html inoremap ' '' + "autocmd FileType html inoremap ( () + "autocmd FileType html inoremap [ [] + "autocmd FileType html inoremap { {} + "autocmd FileType html inoremap { {}O + "autocmd FileType html inoremap < <> " PHP - autocmd FileType php inoremap " "" - autocmd FileType php inoremap ' '' - autocmd FileType php inoremap ( () - autocmd FileType php inoremap [ [] - autocmd FileType php inoremap { {} - autocmd FileType php inoremap { {}O - autocmd FileType php inoremap < <> - autocmd FileType php inoremap - autocmd FileType php inoremap ?>O + ""autocmd FileType php inoremap " "" + ""autocmd FileType php inoremap ' '' + ""autocmd FileType php inoremap ( () + ""autocmd FileType php inoremap [ [] + ""autocmd FileType php inoremap { {} + ""autocmd FileType php inoremap { {}O + ""autocmd FileType php inoremap < <> + ""autocmd FileType php inoremap + ""autocmd FileType php inoremap ?>O " CSS - autocmd FileType css inoremap " "" - autocmd FileType css inoremap ' '' - autocmd FileType css inoremap ( () - autocmd FileType css inoremap [ [] - autocmd FileType css inoremap { {} - autocmd FileType css inoremap { {}O + "autocmd FileType css inoremap " "" + "autocmd FileType css inoremap ' '' + "autocmd FileType css inoremap ( () + "autocmd FileType css inoremap [ [] + "autocmd FileType css inoremap { {} + "autocmd FileType css inoremap { {}O " Just in case - inoremap " "" - inoremap ' '' - inoremap ( () - inoremap [ [] - inoremap { {} - inoremap "" "" - inoremap '' '' - inoremap () () - inoremap [] [] - inoremap {} {} - inoremap <> <> + "inoremap " "" + "inoremap ' '' + "inoremap ( () + "inoremap [ [] + "inoremap { {} + "inoremap "" "" + "inoremap '' '' + "inoremap () () + "inoremap [] [] + "inoremap {} {} + "inoremap <> <> " .vimrc 2.4.1-release | Copyright Joe 2k19 diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..f182e5b --- /dev/null +++ b/init.vim @@ -0,0 +1,3 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath = &runtimepath +source ~/.vimrc -- cgit v1.2.3