From 46c3abd48f7ea5b493e857a0db0f7a3960b3fcd2 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 1 May 2023 19:42:50 +0200 Subject: [PATCH] Aggiunta nuova versione di Vimrc, basata su vim-plug. --- vimrc.new | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 vimrc.new diff --git a/vimrc.new b/vimrc.new new file mode 100644 index 0000000..799baf5 --- /dev/null +++ b/vimrc.new @@ -0,0 +1,105 @@ +" Gestione plugin con vim-plug +call plug#begin() +Plug 'junegunn/vim-plug' + +Plug 'tpope/vim-sensible' +Plug 'tpope/vim-commentary' + +" Git wrapper +Plug 'tpope/vim-fugitive' + +" File explorer +Plug 'scrooloose/nerdtree' + +" Ansible syntax highlight +Plug 'chase/vim-ansible-yaml' + +" Blade syntax highlight +Plug 'xsbeats/vim-blade' + +" Solarized theme +Plug 'altercation/vim-colors-solarized' + +" HTML 5 template +Plug 'othree/html5.vim' + +" Vim Airline +Plug 'vim-airline/vim-airline' + +" Vim Airline +Plug 'vim-airline/vim-airline-themes' + +" Vim-latexsuite +Plug 'vim-latex/vim-latex' + +" nerdtree git plugin +Plug 'Xuyuanp/nerdtree-git-plugin' + +" Devicons +Plug 'ryanoasis/vim-devicons' + +Plug 'hashivim/vim-terraform' + +" ALE - linting, fixing and completion +Plug 'dense-analysis/ale' + +" Rust +Plug 'rust-lang/rust.vim' + +" Conqueror of Completion +Plug 'neoclide/coc.nvim', {'branch': 'release'} + +" Vim-plug configuration end +call plug#end() + +" Impostazioni di base +syntax on +set background=dark +set modelines=5 +set modeline +set showcmd +set laststatus=2 + +" Riattivo i plugin per i tipi di file +filetype plugin indent on + +" Override grep +set grepprg=grep\ -nH\ $* + +" Cambio il tex flavor +let g:tex_flavor='latex' + +" Set up airline-theme +let g:airline_powerline_fonts = 1 +let g:airline_theme='dark' + +" Configurations for GVim +if has('gui_running') + "set guifont=Ubuntu\ Mono\ derivative\ Powerline\ 14 + "set guifont = Droid Sans Mono Slashed for Powerline Regular 16,Ubuntu Mono derivative Powerline 14 + set guifont=Fira\ Code\ Nerd\ Font\ 11,Ubuntu\ Mono\ derivative\ Powerline\ 14 + + colorscheme solarized + let g:airline_theme='base16' +endif + +" ALE configurations +nmap (ale_next_wrap) +let g:ale_sign_error = '⬥' +let g:ale_sign_warning = '⬦' + +" Configurazioni addizionali +let g:NERDTreeNodeDelimiter = "\u00a0" +map :NERDTreeToggle + +" Completion with Conqueror of Code +" use to trigger completion and navigate to the next complete item +function! CheckBackspace() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction + +inoremap + \ coc#pum#visible() ? coc#pum#next(1) : + \ CheckBackspace() ? "\" : + \ coc#refresh()