From 13acc08b4fd782b432d8023955e29ead0d160655 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 9 Mar 2017 00:15:13 +0000 Subject: [PATCH] Fix vint warnings in vimrc --- vimrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index 175e976..4c2ac96 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,7 @@ -" Set leader to space -let mapleader = ' ' +scriptencoding 'utf-8' + +" Set leader to space +let g:mapleader = ' ' " Plugins call plug#begin('~/.vim/bundle') @@ -11,8 +13,8 @@ endif " vim-airline - improved status bar Plug 'vim-airline/vim-airline' -for setting in ['left_sep', 'right_sep', 'section_error', 'section_warning'] - exec 'let g:airline_'.setting.' = ""' +for s:setting in ['left_sep', 'right_sep', 'section_error', 'section_warning'] + exec 'let g:airline_'.s:setting.' = ""' endfor " tabline.vim - sanely numbered tabs Plug 'mkitt/tabline.vim' @@ -48,7 +50,9 @@ Plug 'w0rp/ale' let g:ale_sign_error = '▸' let g:ale_sign_warning = '▸' let g:ale_echo_msg_format = '[%linter%] %s' -let g:ale_linters = {'c': [], 'cpp': ['clangtidy']} +let g:ale_linters = {'c': [], 'cpp': []} +hi link ALEError SyntasticError +hi link ALEWarning SyntasticWarning hi link ALEErrorSign SyntasticErrorSign hi link ALEWarningSign SyntasticWarningSign @@ -133,7 +137,7 @@ let g:table_mode_toggle_map = 'M' " DoxygenToolkit.vim - documentation stubs Plug 'vim-scripts/DoxygenToolkit.vim', {'for': ['cpp', 'c']} -let g:DoxygenToolkit_commentType = "C++" +let g:DoxygenToolkit_commentType = 'C++' " markdown fenced code block languages let g:markdown_fenced_languages =