tools:vim
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:vim [2015/09/01 08:22] – [Plugin setup] tmueller | tools:vim [2023/11/10 15:31] (current) – krack | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| endif | endif | ||
| augroup filetypedetect | augroup filetypedetect | ||
| - | au! BufNewFile, | + | au! BufNewFile, |
| + | au! BufNewFile, | ||
| augroup END | augroup END | ||
| </ | </ | ||
| - | which causes that all files with the name extension ".inp" | + | which causes that all files with the name extensions '' |
| - | === Alternative for pathogen.vim users === | + | === Alternative for pathogen.vim/ |
| For developers using pathogen or similar VIM runtime path managers, a [[https:// | For developers using pathogen or similar VIM runtime path managers, a [[https:// | ||
| Line 35: | Line 36: | ||
| === Syntax folding === | === Syntax folding === | ||
| - | The syntax folding based on the CP2K input line indentation | + | The syntax folding based on the CP2K input line indentation |
| + | < | ||
| + | au FileType cp2k setlocal foldlevel=99 foldmethod=indent | ||
| + | </ | ||
| + | |||
| + | . 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 | ||
| Line 61: | Line 67: | ||
| :set shiftwidth=0 tabstop=0 | :set shiftwidth=0 tabstop=0 | ||
| </ | </ | ||
| + | The vim indent command " | ||
| ==== Vim support for the CP2K code development ==== | ==== Vim support for the CP2K code development ==== | ||
tools/vim.1441095771.txt.gz · Last modified: (external edit)
