Started vim config optimizing

This commit is contained in:
2021-10-23 19:22:05 +02:00
parent 2d31f5393e
commit 0a72fc5ab5

View File

@@ -5,40 +5,45 @@ if empty(glob(data_dir . '/autoload/plug.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif endif
set nocompatible
" Specify a directory for plugins " Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged' " - For Neovim: stdpath('data') . '/plugged'
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
"Undo tree
Plug 'simnalamburt/vim-mundo' Plug 'simnalamburt/vim-mundo'
"""""REQUIRED LIBRARIES"""""
""For :RustPlay via polyglot/syntastic
Plug 'mattn/webapi-vim' Plug 'mattn/webapi-vim'
Plug 'junegunn/vim-github-dashboard' Plug 'junegunn/vim-github-dashboard'
Plug 'tpope/vim-fugitive'
Plug 'honza/vim-snippets' Plug 'honza/vim-snippets'
Plug 'pearofducks/ansible-vim'
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'liuchengxu/vim-which-key'
Plug 'vim-scripts/indentLine.vim' Plug 'vim-scripts/indentLine.vim'
Plug 'rhysd/git-messenger.vim' Plug 'rhysd/git-messenger.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'arcticicestudio/nord-vim' Plug 'arcticicestudio/nord-vim'
Plug 'junegunn/vim-easy-align' Plug 'junegunn/vim-easy-align'
"""""CLUTTER-FREE EDITING"""""
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
Plug 'mattn/emmet-vim'
Plug 'junegunn/limelight.vim' Plug 'junegunn/limelight.vim'
"""""COMMENTING WITH \c<space>"""""
Plug 'scrooloose/nerdcommenter'
Plug 'mg979/vim-visual-multi', {'branch': 'master'} Plug 'mg979/vim-visual-multi', {'branch': 'master'}
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'scrooloose/syntastic'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdcommenter'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'ctrlpvim/ctrlp.vim' Plug 'ctrlpvim/ctrlp.vim'
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
"Plug 'easymotion/vim-easymotion' "Plug 'easymotion/vim-easymotion'
Plug 'nathanaelkane/vim-indent-guides' Plug 'nathanaelkane/vim-indent-guides'
Plug 'xuyuanp/nerdtree-git-plugin' Plug 'xuyuanp/nerdtree-git-plugin'
Plug 'sheerun/vim-polyglot'
Plug 'mbbill/undotree'
Plug 'bronson/vim-trailing-whitespace' Plug 'bronson/vim-trailing-whitespace'
" I love you tpope <3 " I love you tpope <3
Plug 'tpope/vim-dadbod' Plug 'tpope/vim-dadbod'
@@ -49,14 +54,49 @@ Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-unimpaired' Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-abolish' Plug 'tpope/vim-abolish'
Plug 'tpope/vim-obsession' Plug 'tpope/vim-obsession'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
"""""COMMON SYNTAX CHECKER"""""
Plug 'scrooloose/syntastic'
Plug 'sheerun/vim-polyglot'
"""""HTML"""""
Plug 'mattn/emmet-vim'
" Initialize plugin system " Initialize plugin system
call plug#end() call plug#end()
"""""GOYO SETTINGS BLOCK"""""
" Color name (:help cterm-colors) or ANSI code
let g:limelight_conceal_ctermfg = 'DarkGray'
" Color name (:help gui-colors) or RGB color
let g:limelight_conceal_guifg = 'DarkGray'
let g:limelight_conceal_guifg = '#777777'
autocmd! User GoyoEnter Limelight autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight! autocmd! User GoyoLeave Limelight!
"""""
if has("persistent_undo")
let target_path = expand('~/.undodir')
" create the directory and any parent directories
" if the location does not exist.
if !isdirectory(target_path)
call mkdir(target_path, "p", 0700)
endif
let &undodir=target_path
set undofile
endif
let g:airline_powerline_fonts = 1
filetype plugin on filetype plugin on
colorscheme nord colorscheme nord
"Keybinds "Keybinds
nnoremap <F4> :Goyo<CR>
set pastetoggle=<F3> set pastetoggle=<F3>
nnoremap <F5> :MundoToggle<CR> nnoremap <F5> :MundoToggle<CR>