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 revision Previous revision
Next revision Both sides next revision
tools:vim [2015/09/01 08:22]
tmueller [Plugin setup]
tools:vim [2016/11/18 14:07]
pseewald [Usage Tips]
Line 35: Line 35:
 === Syntax folding === === Syntax folding ===
  
-The syntax folding based on the CP2K input line indentation is supported by default. The following Vim editor commands might be useful for large CP2K input files:+The syntax folding based on the CP2K input line indentation can be activated in the ~/.vimrc file by 
 +<code> 
 +au FileType cp2k setlocal foldlevel=99 foldmethod=indent 
 +</code> 
 + 
 +. The following Vim editor commands might be useful for large CP2K input files:
   * za :: Toggle the folding of the current fold level   * za :: Toggle the folding of the current fold level
   * zA :: Toggle the folding of all fold levels recursively   * zA :: Toggle the folding of all fold levels recursively
tools/vim.txt · Last modified: 2020/08/21 10:15 (external edit)