123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- if version < 800
- echo "Vim 8.0 or higher is required for the config file to work! Please upgrade! ~Vitali64"
- sleep 2
- quit
- endif
- autocmd BufWritePost .vimrc source $MYVIMRC
- set incsearch
- call plug#begin()
- Plug 'tpope/vim-sensible'
- Plug 'preservim/nerdtree'
- Plug 'scrooloose/syntastic'
- Plug 'majutsushi/tagbar'
- Plug 'vim-scripts/indentpython.vim'
- Plug 'neoclide/coc.nvim', {'branch': 'release'}
- Plug 'pangloss/vim-javascript'
- Plug 'sheerun/vim-polyglot'
- Plug 'tpope/vim-fugitive'
- Plug 'mhinz/vim-startify'
- Plug 'sainnhe/everforest'
- call plug#end()
- filetype on
- filetype plugin indent on
- syntax on
- set number
- set numberwidth=4
- set relativenumber
- set fileformat=unix
- set encoding=utf-8
- set fileencoding=utf-8
- let g:startify_custom_header = [
- \ ' _ __ __ ',
- \ ' | | / / __ / / ',
- \ ' | |/ / /_/ _________ /_/ ',
- \ ' | V / / / / /--//-// __ ',
- \ ' |__/ /_/ /_/ // // /_/ ',
- \ ' Vim is open source and freely distributable',
- \ '',
- \ " Don't forget the basics !",
- \ " ------",
- \ " :q -> Quit buffer",
- \ " :q! -> Rage quit buffer (without saving)",
- \ " :qa -> Quit all buffers",
- \ " :qa! -> Rage quit all buffers (without saving)",
- \ " :w -> Save buffer",
- \ " :wa -> Save all buffers",
- \ " :wq -> Save and quit buffer",
- \ " :wqa -> Save and quit all buffers",
- \ " :wq! -> Save and rage quit buffer",
- \ " (Press <ESC> before typing these commands)",
- \]
- set tabstop=4
- set shiftwidth=4
- set softtabstop=4
- set noexpandtab
- set listchars=tab:»\ ,eol:¬
- set listchars+=trail:•
- set list
- nmap <Tab> >>
- imap <S-Tab> <Esc><<i
- nmap <S-tab> <<
- set background=dark
- if has('termguicolors')
- set termguicolors
- endif
- let g:everforest_background = 'hard'
- colorscheme slate
- hi Normal guibg=NONE ctermbg=NONE
- autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
- set statusline=%<%f\ %h%m%r%{FugitiveStatusline()}%=%-14.(%l,%c%V%)\ %P "HELLOOOO"
- function InstallCocPlugs()
- echo "Installing ConquerOfCompletion Extensions ..."
-
- CocInstall coc-python coc-vimlsp coc-utils coc-tsserver coc-terminal coc-template coc-snippets coc-sh coc-prettier coc-pairs coc-lit-html coc-json coc-html coc-eslint coc-css
- endfunction
- function InstallPlugDotVim()
- echo "Installation de vimplug ..."
- !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- endfunction
- vmap <C-c>
- vmap <C-x>
- vmap <C-v> c<ESC>
- imap <C-v> <ESC>
- let &t_SI .= "\<Esc>[?2004h"
- let &t_EI .= "\<Esc>[?2004l"
- function! XTermPasteBegin()
- set pastetoggle=<Esc>[201~
- set paste
- return ""
- endfunction
- inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
- iab cout std::cout
- iab endl std::endl
- iab ostream std::ostream
- iab vector std::vector
|