Skip to content

@arnsholt /.vimrc
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
vimrc snippet
function! Printit()
echo synIDattr(synID(line("."), col("."), 1), "name") "(".synID(line("."), col("."), 1).")"
endfunction
map <expr> <F2> Printit()
function! NonComment(nonComment, comment, style)
let cur = synIDattr(synID(line("."), col("."), 1), "name")
if a:style == cur
return a:comment
else
return a:nonComment
endif
endfunction
au FileType tex inoremap <expr> æ NonComment("{\\ae}", "æ", "texComment")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.