-
-
Save al3rez/d1b9bacab6aa7800da88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" replace 'function' with λ | |
au BufNewFile,BufRead *.js syntax keyword javasScriptFunction function conceal cchar=λ | |
au BufNewFile,BufRead *.js hi! link javasScriptFunction Conceal | |
au BufNewFile,BufRead *.js setlocal conceallevel=2 | |
" add abbreviations for JS | |
" f_ | |
" expands to | |
" function() { | |
" <cursor> | |
" | |
" } | |
" f- expands to | |
" function() { <cursor ) | |
autocmd Filetype javascript iabbr f_ function(){<CR>:}<ESC>?:<CR><ESC>xO | |
autocmd Filetype javascript iabbr f- function(){:}<ESC>?:<CR><ESC>xO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment