User Tools

Site Tools


tools:vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:vim [2017/03/22 13:07] – note on vim indent kracktools:vim [2023/11/10 15:31] (current) krack
Line 20: Line 20:
 endif endif
 augroup filetypedetect augroup filetypedetect
-   au! BufNewFile,BufRead *.inp setf cp2k+   au! BufNewFile,BufRead *.inp set filetype=cp2k 
 +   au! BufNewFile,BufRead *.restart set filetype=cp2k
 augroup END augroup END
 </code> </code>
-which causes that all files with the name extension ".inpwill be considered as CP2K input files by the Vim editor. You may change the extension due to your favored settings.+which causes that all files with the name extensions ''.inp'' and ''.restart'' will be considered as CP2K input files by the Vim editor. You may change the extension due to your favored settings.
  
-=== Alternative for pathogen.vim users ===+=== Alternative for pathogen.vim/vim-plug users ===
  
 For developers using pathogen or similar VIM runtime path managers, a [[https://github.com/cp2k/vim-cp2k|separate vim-cp2k repository]] is provided and the setup procedure is even easier: For developers using pathogen or similar VIM runtime path managers, a [[https://github.com/cp2k/vim-cp2k|separate vim-cp2k repository]] is provided and the setup procedure is even easier:
tools/vim.1490188049.txt.gz · Last modified: 2020/08/21 10:15 (external edit)