This commit is contained in:
ManjaroOne666 2019-02-09 22:15:36 +00:00
parent 80cdfee138
commit b9c532ce5e
5 changed files with 38 additions and 22 deletions

View File

@ -2,10 +2,20 @@ snippet todo "// TODO"
// TODO $0
endsnippet
snippet cl "console.log( ... )"
snippet if "if ( ... ) { ... }"
if ($1) {
$0
}
endsnippet
snippet cl; "console.log( ... );"
console.log($0);
endsnippet
snippet cl "console.log( ... )"
console.log($0)
endsnippet
snippet if "if ( ... ) { ... }"
if ($1) {
$0

View File

@ -596,6 +596,9 @@
[ "jsonValue", "String" ],
[ "jsonQuote", "Noise" ],
# octobercms
[ "octobercmsSectionDelimiter", "Noise" ],
# plugins
[ "CocErrorSign", "ErrorMsg" ],

View File

@ -323,6 +323,7 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
hi link jsonKeyword Identifier
hi link jsonValue String
hi link jsonQuote Noise
hi link octobercmsSectionDelimiter Noise
hi link CocErrorSign ErrorMsg
hi link CocWarningSign WarningMsg
hi link CocInfoSign Question
@ -684,6 +685,7 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
hi link jsonKeyword Identifier
hi link jsonValue String
hi link jsonQuote Noise
hi link octobercmsSectionDelimiter Noise
hi link CocErrorSign ErrorMsg
hi link CocWarningSign WarningMsg
hi link CocInfoSign Question

19
syntax/octobercms.vim Normal file
View File

@ -0,0 +1,19 @@
if exists("b:current_syntax")
finish
endif
runtime! syntax/jinja.vim
syntax include @octoberPHP syntax/php.vim
unlet! b:current_syntax
syntax include @octoberConfig syntax/dosini.vim
syntax region octoberConfig start=@\%^\([a-zA-z]\+[a-zA-Z0-9]\+\s*=\s*\("\|'\)\)\|\[\s*[a-zA-Z0-9]\+\s*\]@ end=+^==$+me=e-2 contains=@octoberConfig
syntax region octoberPHP start=+^==$+ms=s+2 end=+^==$+me=e-2 contains=@octoberPHP
" syntax match octobercmsSectionDelimiter "^==$"
" highlight link octobercmsSectionDelimiter Comment
let b:current_syntax = "octobercms"

24
vimrc
View File

@ -25,25 +25,6 @@ if !has('nvim')
Plug '~/.config/vim/vim/bundle/vim-learnxiny'
" #Ctrlp {{{
" Plug 'ctrlpvim/ctrlp.vim'
" " :h ctrlp-commands
" " :h ctrlp-extensions
"
" let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'undo']
"
" if executable('ag')
" " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
" let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" " ag is fast enough that CtrlP doesn't need to cache
" let g:ctrlp_use_caching = 0
" endif
" " Use ag over grep
" if executable('ag')
" set grepprg=ag\ --nogroup\ --nocolor\ --ignore\ node_modules
" endif
"}}}
" #Netrw {{{
let g:netrw_liststyle=3
@ -181,7 +162,7 @@ if g:vimrc_load_dev_plugins
" #ALE {{{
" https://github.com/w0rp/ale
Plug 'w0rp/ale'
let g:ale_completion_enabled = 1
" let g:ale_completion_enabled = 1
let g:ale_sign_column_always = 1
let g:ale_open_list = 0
@ -1067,7 +1048,7 @@ set number relativenumber
set hlsearch
" set completeopt=menuone,preview
set completeopt=menuone,noselect
set completeopt=menuone
set nospell
set spelllang=en_gb
@ -1233,6 +1214,7 @@ inoremap "; "";<Left><Left>
inoremap '' ''<Left>
inoremap ''' ''
inoremap '; '';<Left><Left>
inoremap `` ``<left>
"}}}