Fix autoformat caused errors
This commit is contained in:
parent
6f7161c403
commit
4d5032564d
1 changed files with 8 additions and 7 deletions
15
init.vim
15
init.vim
|
@ -61,7 +61,7 @@ let g:ale_sign_warning="⚠"
|
||||||
" Enable warnings about trailing whitespace for all files.
|
" Enable warnings about trailing whitespace for all files.
|
||||||
let b:ale_warn_about_trailing_whitespace=1
|
let b:ale_warn_about_trailing_whitespace=1
|
||||||
|
|
||||||
nmap <leader>e: ALEDetail <cr>
|
nmap <leader>e: ALEDetail<CR>
|
||||||
|
|
||||||
" ALE colors
|
" ALE colors
|
||||||
highlight ALEWarning ctermbg=Yellow
|
highlight ALEWarning ctermbg=Yellow
|
||||||
|
@ -70,8 +70,8 @@ highlight ALEError ctermbg=DarkRed
|
||||||
highlight ALEError ctermfg=White
|
highlight ALEError ctermfg=White
|
||||||
|
|
||||||
" Use TAB to switch between buffers
|
" Use TAB to switch between buffers
|
||||||
noremap < tab > : bn < CR >
|
noremap <tab> :bn<CR>
|
||||||
noremap < S-tab > : bp < CR >
|
noremap <S-tab> :bp<CR>
|
||||||
|
|
||||||
" Highlight trailing whitespace (darker red) and remove all with Ctrl+k
|
" Highlight trailing whitespace (darker red) and remove all with Ctrl+k
|
||||||
highlight WhitespaceEOL ctermbg=red guibg=#ab0d0d
|
highlight WhitespaceEOL ctermbg=red guibg=#ab0d0d
|
||||||
|
@ -100,10 +100,11 @@ let g:gitgutter_sign_modified_removed='--'
|
||||||
let g:gitgutter_map_keys=0
|
let g:gitgutter_map_keys=0
|
||||||
|
|
||||||
" Toggles on different plugins/modes
|
" Toggles on different plugins/modes
|
||||||
noremap <F1> : ToggleMouse <CR>
|
noremap <F1> :ToggleMouse<CR>
|
||||||
inoremap <F1> <Esc>: ToggleMouse <CR> a
|
inoremap <F1> <Esc>:ToggleMouse<CR>a
|
||||||
nmap <F3>: set nonumber!<CR>
|
nmap <F3> :set nonumber!<CR>
|
||||||
nmap <F5>: NERDTreeToggle <CR>
|
nmap <F4> :GitGutterBufferToggle<CR>
|
||||||
|
nmap <F5> :NERDTreeToggle<CR>
|
||||||
set pastetoggle=<F2>
|
set pastetoggle=<F2>
|
||||||
|
|
||||||
" Maintain undo history between sessions
|
" Maintain undo history between sessions
|
||||||
|
|
Loading…
Reference in a new issue