init: remove what is unused

* BETTER Cleans unused or duplicate settings.
* BETTER Cleans unused plugins.

Co-Authored-by: Igor Milhit <igor.milhit@rero.ch>
server
iGor milhit 2019-08-22 07:37:46 +02:00
parent e81af331a6
commit 72718d517e
No known key found for this signature in database
GPG Key ID: 3B5043D919E99ED2
1 changed files with 14 additions and 52 deletions

View File

@ -15,38 +15,27 @@ endif
:let g:html_indent_inctags = "html,body,head,tbody" :let g:html_indent_inctags = "html,body,head,tbody"
set smartindent set smartindent
set autoindent
set tabstop=4 set tabstop=4
set expandtab set expandtab
set softtabstop=4 set softtabstop=4
set shiftwidth=4 set shiftwidth=4
" autocmd FileType json setlocal shiftwidth=2 tabstop=2
set showcmd " Show (partial) command in status line. set showcmd " Show (partial) command in status line.
set showmode " Show indication of having changed modes set showmode " Show indication of having changed modes
set showmatch " Show matching brackets. set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching set smartcase " Do smart case matching
set incsearch " Incremental search
set hlsearch " Highlight search set hlsearch " Highlight search
nnoremap <silent> <C-l> :nohlsearch<CR><C-l> " set C-l to :nohlsearch
set autowrite " Automatically save before commands like :next and :make set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes) set mouse=a " Enable mouse usage (all modes)
set linebreak " Line wrap set linebreak " Line wrap
set tw=79 " Lines longer than 79 chars will be wrapped set tw=79 " Lines longer than 79 chars will be wrapped
set colorcolumn=+1 " Colors the tw+1 column set colorcolumn=+1 " Colors the tw+1 column
set number " Line numbering set number " Line numbering
set cursorline set cursorline
set ruler
set modeline set modeline
" Markdown
autocmd FileType markdown set nocursorline
" Consider `.jsonld` as JSON " Consider `.jsonld` as JSON
autocmd BufNewFile,BufRead *.jsonld set filetype=json autocmd BufNewFile,BufRead *.jsonld set filetype=json
" tabstop to 2 for 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 foldlevel=2
autocmd FileType json set tabstop=2 autocmd FileType json set tabstop=2
autocmd FileType json set softtabstop=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 " Détermine l'indentation par défaut pour le html
autocmd FileType html set tabstop=2 autocmd FileType html set tabstop=2
autocmd FileType html set softtabstop=2 autocmd FileType html set softtabstop=2
@ -76,13 +63,10 @@ autocmd FileType xml set foldlevel=1
" default languages grammar check " default languages grammar check
:let g:pandoc#spell#default_langs = ['fr', 'en'] :let g:pandoc#spell#default_langs = ['fr', 'en']
" formatting module mode hard wrap " formatting module mode hard wrap
:let g:pandoc#formatting#colorcolumn = +1
:let g:pandoc#formatting#textwidth = 79 :let g:pandoc#formatting#textwidth = 79
:let g:pandoc#formatting#colorcolumn = +1
:let g:pandoc#formatting#mode = "hA" :let g:pandoc#formatting#mode = "hA"
" set C-l to :nohlsearch
nnoremap <silent> <C-l> :nohlsearch<CR><C-l>
" copy to clipboard with `"+y` " copy to clipboard with `"+y`
set clipboard+=unnamedplus set clipboard+=unnamedplus
@ -93,20 +77,10 @@ let g:airline#extensions#wordcount#filetypes = 'pandoc\|text\|' "Add support whe
" vim-table-mode " vim-table-mode
:let g:table_mode_corner='|' :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 " NERDTree
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
let g:NERDTreeWinSize=40
" vim-json, don't conceal " vim-json, don't conceal
let g:vim_json_syntax_conceal = 0 let g:vim_json_syntax_conceal = 0
@ -119,41 +93,29 @@ let g:ctrlp_working_path_mode = 'ra'
" enable caching " enable caching
let g:ctrlp_use_caching = 1 let g:ctrlp_use_caching = 1
let g:ctrlp_clear_cache_on_exit = 0 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) " plugins (vim-plug)
call plug#begin('~/.config/nvim/plugged') 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 'altercation/vim-colors-solarized'
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'vim-pandoc/vim-pandoc' Plug 'jiangmiao/auto-pairs' " pairs autocomplete
Plug 'vim-pandoc/vim-pandoc-syntax' Plug 'tpope/vim-surround' " to manipulate surroundings
Plug 'jiangmiao/auto-pairs' Plug 'tpope/vim-unimpaired' " toggle shortcut
Plug 'tpope/vim-surround' Plug 'tpope/vim-commentary' " easy commenting
Plug 'tpope/vim-unimpaired' Plug 'tpope/vim-fugitive' " git
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-sensible'
Plug 'vim-syntastic/syntastic'
Plug 'godlygeek/tabular'
Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' } Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' }
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' } Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
Plug 'elzr/vim-json' Plug 'elzr/vim-json'
Plug 'osyo-manga/vim-over', { 'on': 'OverCommandLine' } Plug 'osyo-manga/vim-over', { 'on': 'OverCommandLine' }
Plug 'Rykka/riv.vim' Plug 'Rykka/riv.vim' " rst syntax support
Plug 'Rykka/InstantRst' Plug 'Rykka/InstantRst' " rst preview
Plug 'davidhalter/jedi-vim' " warning, may conflicts with python-mode
Plug 'nvie/vim-flake8'
Plug 'kien/ctrlp.vim' Plug 'kien/ctrlp.vim'
Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'https://github.com/editorconfig/editorconfig-vim' 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() call plug#end()