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
Next revisionBoth sides next revision
tools:vim [2016/11/18 14:07] – [Usage Tips] pseewaldtools:vim [2019/03/14 07:37] – [Plugin setup] tmueller
Line 25: Line 25:
 which causes that all files with the name extension ".inp" will 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 extension ".inp" 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:
Line 66: Line 66:
 :set shiftwidth=0 tabstop=0 :set shiftwidth=0 tabstop=0
 </code> </code>
 +The vim indent command "=" can be used to properly indent a section (region) of a file or even the full file, e.g. by typing "=G" when the cursor is positioned at the first line of the input file.
  
 ==== Vim support for the CP2K code development ==== ==== Vim support for the CP2K code development ====
tools/vim.txt · Last modified: 2023/11/10 15:31 by krack