Added Lua stuff
This commit is contained in:
parent
d4a429dfda
commit
becf1b1e60
1 changed files with 7 additions and 0 deletions
7
vimrc
7
vimrc
|
@ -376,3 +376,10 @@ autocmd!
|
|||
au BufWritepost *.rb :set noexpandtab
|
||||
au BufWritepost *.rb :retab!
|
||||
augroup END
|
||||
|
||||
" --- LUA STUFF ---
|
||||
au BufNewFile,BufRead *.lua :call <sid>init_lua_file()
|
||||
|
||||
function! s:init_lua_file()
|
||||
command! -buffer Requires lex MatchingLines("^\\s*require\\>.*$")
|
||||
endfunction!
|
||||
|
|
Loading…
Reference in a new issue