set ftplugin files to use setlocal not set

This commit is contained in:
Ray Elliott 2021-09-08 16:10:05 +01:00
parent 13956ce178
commit 0046be65ca
11 changed files with 15 additions and 21 deletions

View File

@ -1 +1 @@
set foldnestmax=5 setlocal foldnestmax=5

View File

@ -1,6 +1,3 @@
" NOTE also see ../ftplugin/javascript.vim
set shiftwidth=2
" https://gist.github.com/romainl/1f50c55b0ee92e5420de51e6c4b38491 " https://gist.github.com/romainl/1f50c55b0ee92e5420de51e6c4b38491
nnoremap <silent> <space>cF :call CocAction('runCommand', 'eslint.executeAutofix')<CR> nnoremap <silent> <space>cF :call CocAction('runCommand', 'eslint.executeAutofix')<CR>

2
after/ftplugin/php.vim Normal file
View File

@ -0,0 +1,2 @@
setlocal iskeyword+=$
setlocal autoindent

View File

@ -1,11 +1,11 @@
set tabstop=4 setlocal tabstop=4
set textwidth=88 setlocal textwidth=88
set foldmethod=indent setlocal foldmethod=indent
set foldnestmax=1 setlocal foldnestmax=1
set colorcolumn=88 setlocal colorcolumn=88
noremap <F4> :w<CR>:silent !clear;python %<CR> :redraw!<CR> noremap <F4> :w<CR>:silent !clear;python %<CR> :redraw!<CR>
nnoremap <silent> <buffer> <F5> :call SaveAndExecute('python')<CR> nnoremap <silent> <buffer> <F5> :call SaveAndExecute('python')<CR>

View File

@ -1,2 +1 @@
setlocal includeexpr=substitute(substitute(substitute(v:fname,'\%(.*/\|^\)\zs','_',''),'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
set includeexpr=substitute(substitute(substitute(v:fname,'\%(.*/\|^\)\zs','_',''),'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')

View File

@ -1,2 +1,2 @@
set foldmethod=marker setlocal foldmethod=marker

View File

@ -1 +1 @@
set iskeyword+=- setlocal iskeyword+=-

View File

@ -1,5 +1,2 @@
" also see after/ftplugin/javascript.vim setlocal iskeyword+=$
setlocal foldmethod=syntax
set iskeyword+=$
set foldmethod=syntax

View File

@ -1 +0,0 @@
set iskeyword+=$

View File

@ -1 +1 @@
set iskeyword+=$ setlocal iskeyword+=$

View File

@ -1,4 +1,4 @@
set includeexpr=substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','') setlocal includeexpr=substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
setlocal suffixesadd=.js,.vue,.scss setlocal suffixesadd=.js,.vue,.scss
setlocal complete=.,w,b,u,i setlocal complete=.,w,b,u,i