From 8d062a87a17122a117b277fdf519c841a341fc20 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 9 Nov 2017 18:25:00 +0100 Subject: [PATCH] Add SREC file support to vim --- vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vimrc b/vimrc index 628277b..072af10 100644 --- a/vimrc +++ b/vimrc @@ -62,6 +62,7 @@ set nocompatible Plug 'tpope/vim-commentary' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' + Plug 'vim-scripts/srec.vim' Plug 'keith/swift.vim' call plug#end() @@ -88,6 +89,14 @@ set nocompatible let g:bufferline_echo = 0 + highlight link srecStart Comment + highlight link srecType Comment + highlight link srecLength WarningMsg + highlight link srec16BitAddress Constant + highlight link srec24BitAddress Constant + highlight link srec32BitAddress Constant + highlight link srecChecksum Type + colorscheme solarized filetype plugin indent on syntax enable @@ -149,6 +158,7 @@ augroup vimrc " {{{ autocmd BufNewFile,BufRead bash_profile,bashrc set filetype=sh autocmd BufNewFile,BufRead gitconfig set filetype=gitconfig autocmd BufNewFile,BufRead rcrc set filetype=sh + autocmd BufNewFile,BufRead *.sx,*.s19 set filetype=srec autocmd FileType vim setlocal foldmethod=marker autocmd FileType python setlocal foldmethod=indent foldignore=