Pages

Friday, October 27, 2023

autocomplete in vim no plugins needed

HTML

autocmd FileType html set omnifunc=htmlcomplete#CompleteTags

  • then ctrl X ctrl o on tag to show list
  • ctrl n/ ctrl p to move through the list

CSS

autocmd FileType css set omnifunc=csscomplete#CompleteCSS

Javascript

autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS

Filenames

  • ctrl x ctrl f
  • ctrl n/ ctrl p

No comments:

Post a Comment