From 72718d517e1b76e8eadc39552863adfea803a27a Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 22 Aug 2019 07:37:46 +0200 Subject: [PATCH] init: remove what is unused * BETTER Cleans unused or duplicate settings. * BETTER Cleans unused plugins. Co-Authored-by: Igor Milhit --- init.vim | 66 ++++++++++++-------------------------------------------- 1 file changed, 14 insertions(+), 52 deletions(-) diff --git a/init.vim b/init.vim index 6947a11..3862f2d 100644 --- a/init.vim +++ b/init.vim @@ -15,38 +15,27 @@ endif :let g:html_indent_inctags = "html,body,head,tbody" set smartindent -set autoindent set tabstop=4 set expandtab set softtabstop=4 set shiftwidth=4 -" autocmd FileType json setlocal shiftwidth=2 tabstop=2 - set showcmd " Show (partial) command in status line. set showmode " Show indication of having changed modes set showmatch " Show matching brackets. - set ignorecase " Do case insensitive matching set smartcase " Do smart case matching -set incsearch " Incremental search set hlsearch " Highlight search - +nnoremap :nohlsearch " set C-l to :nohlsearch set autowrite " Automatically save before commands like :next and :make set hidden " Hide buffers when they are abandoned set mouse=a " Enable mouse usage (all modes) - set linebreak " Line wrap set tw=79 " Lines longer than 79 chars will be wrapped set colorcolumn=+1 " Colors the tw+1 column - set number " Line numbering set cursorline -set ruler set modeline -" Markdown -autocmd FileType markdown set nocursorline - " Consider `.jsonld` as JSON autocmd BufNewFile,BufRead *.jsonld set filetype=json " tabstop to 2 for JSON @@ -61,8 +50,6 @@ autocmd FileType json setlocal foldmethod=syntax autocmd FileType json set foldlevel=2 autocmd FileType json set tabstop=2 autocmd FileType json set softtabstop=2 -" Détermine le niveau de fold par défaut pour le md -autocmd FileType markdown set foldlevel=0 " Détermine l'indentation par défaut pour le html autocmd FileType html set tabstop=2 autocmd FileType html set softtabstop=2 @@ -76,13 +63,10 @@ autocmd FileType xml set foldlevel=1 " default languages grammar check :let g:pandoc#spell#default_langs = ['fr', 'en'] " formatting module mode hard wrap -:let g:pandoc#formatting#colorcolumn = +1 :let g:pandoc#formatting#textwidth = 79 +:let g:pandoc#formatting#colorcolumn = +1 :let g:pandoc#formatting#mode = "hA" -" set C-l to :nohlsearch -nnoremap :nohlsearch - " copy to clipboard with `"+y` set clipboard+=unnamedplus @@ -93,20 +77,10 @@ let g:airline#extensions#wordcount#filetypes = 'pandoc\|text\|' "Add support whe " vim-table-mode :let g:table_mode_corner='|' -" netrw, instead of NERDTree -let g:netrw_liststyle = 3 -let g:netrw_banner = 0 -let g:netrw_browse_split = 4 -let g:netrw_altv = 1 -let g:netrw_winsize = 20 -" augroup ProjectDrawer -" autocmd! -" autocmd VimEnter * :Vexplore -" augroup END - " NERDTree autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +let g:NERDTreeWinSize=40 " vim-json, don't conceal let g:vim_json_syntax_conceal = 0 @@ -119,41 +93,29 @@ let g:ctrlp_working_path_mode = 'ra' " enable caching let g:ctrlp_use_caching = 1 let g:ctrlp_clear_cache_on_exit = 0 -" enable autocomplete -autocmd BufEnter * call ncm2#enable_for_buffer() -set completeopt=noinsert,menuone,noselect " plugins (vim-plug) call plug#begin('~/.config/nvim/plugged') +Plug 'tpope/vim-sensible' " default settings +Plug 'vim-pandoc/vim-pandoc' " pandoc +Plug 'vim-pandoc/vim-pandoc-syntax' " support md syntax +Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } " distraction free Plug 'altercation/vim-colors-solarized' -Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' -Plug 'vim-pandoc/vim-pandoc' -Plug 'vim-pandoc/vim-pandoc-syntax' -Plug 'jiangmiao/auto-pairs' -Plug 'tpope/vim-surround' -Plug 'tpope/vim-unimpaired' -Plug 'tpope/vim-fugitive' -Plug 'tpope/vim-commentary' -Plug 'tpope/vim-sensible' -Plug 'vim-syntastic/syntastic' -Plug 'godlygeek/tabular' +Plug 'jiangmiao/auto-pairs' " pairs autocomplete +Plug 'tpope/vim-surround' " to manipulate surroundings +Plug 'tpope/vim-unimpaired' " toggle shortcut +Plug 'tpope/vim-commentary' " easy commenting +Plug 'tpope/vim-fugitive' " git Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' } Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' } Plug 'elzr/vim-json' Plug 'osyo-manga/vim-over', { 'on': 'OverCommandLine' } -Plug 'Rykka/riv.vim' -Plug 'Rykka/InstantRst' -Plug 'davidhalter/jedi-vim' " warning, may conflicts with python-mode -Plug 'nvie/vim-flake8' +Plug 'Rykka/riv.vim' " rst syntax support +Plug 'Rykka/InstantRst' " rst preview Plug 'kien/ctrlp.vim' Plug 'scrooloose/nerdtree' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'https://github.com/editorconfig/editorconfig-vim' -Plug 'ncm2/ncm2' -Plug 'roxma/nvim-yarp' -Plug 'ncm2/ncm2-bufword' -Plug 'Shougo/neco-syntax' -Plug 'ncm2/ncm2-syntax' call plug#end()