update vimrc

This commit is contained in:
Bruno Carlin 2017-09-18 15:01:14 +02:00
parent 1d52c4071b
commit 010975aae1

View file

@ -40,6 +40,7 @@ let mapleader = ","
set backupdir=~/.vim/backup// set backupdir=~/.vim/backup//
set directory=~/.vim/swap// set directory=~/.vim/swap//
set undodir=~/.vim/undo// set undodir=~/.vim/undo//
set splitright
" flag lines wider than 80 char " flag lines wider than 80 char
highlight ColorColumn ctermbg=magenta highlight ColorColumn ctermbg=magenta
@ -55,6 +56,7 @@ if has("autocmd")
autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab
autocmd FileType rst setlocal tw=80 ts=3 sts=3 sw=3 expandtab autocmd FileType rst setlocal tw=80 ts=3 sts=3 sw=3 expandtab
autocmd FileType gitcommit setlocal tw=80 ts=2 sts=2 sw=2 expandtab autocmd FileType gitcommit setlocal tw=80 ts=2 sts=2 sw=2 expandtab
autocmd FileType md setlocal tw=80 ts=2 sts=2 sw=2 expandtab
endif endif
" Airline options " Airline options
@ -75,6 +77,10 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1 let g:syntastic_check_on_wq = 1
let g:syntastic_aggregate_errors = 1 let g:syntastic_aggregate_errors = 1
" let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
" let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_java_javac_config_file_enabled = 1
" Vim-go options " Vim-go options
let g:go_fmt_command = "goimports" let g:go_fmt_command = "goimports"
@ -99,12 +105,15 @@ if has("autocmd")
autocmd FileType go nmap <leader>f <Plug>(go-fmt) autocmd FileType go nmap <leader>f <Plug>(go-fmt)
endif endif
" Syntastic options " vimwiki options
" let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck'] let g:vimwiki_list = [{'path': '~/Notebook',
" let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] } \ 'auto_toc': 1,
let g:syntastic_javascript_checkers = ['eslint'] \ 'index': 'main',
\ 'ext': '.md',
\ 'syntax': 'markdown'}]
" other plugins " Grammalecte options
let g:grammalecte_cli_py='/usr/share/grammalecte-fr/cli.py'
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
@ -125,8 +134,18 @@ call plug#begin('~/.vim/plugged')
Plug 'scrooloose/syntastic' Plug 'scrooloose/syntastic'
Plug 'mtscout6/syntastic-local-eslint.vim' Plug 'mtscout6/syntastic-local-eslint.vim'
Plug 'aklt/plantuml-syntax'
Plug 'scrooloose/vim-slumlord'
Plug 'vimwiki/vimwiki'
Plug 'dpelle/vim-Grammalecte'
call plug#end() call plug#end()
" Other key mappings " Other key mappings
map <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>
map <leader>n :cnext<CR>
map <leader>p :cprevious<CR>
nnoremap <leader>h :cclose<CR>