Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
OpenWalnut Core OpenWalnut Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 86
    • Issues 86
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenWalnut
  • OpenWalnut CoreOpenWalnut Core
  • Wiki
  • EditorConfiguration

EditorConfiguration · Changes

Page history
Import wiki from redmine authored Jul 03, 2017 by Sebastian Volke's avatar Sebastian Volke
Hide whitespace changes
Inline Side-by-side
Showing with 63 additions and 0 deletions
+63 -0
  • EditorConfiguration.md EditorConfiguration.md +63 -0
  • No files found.
EditorConfiguration.md 0 → 100644
View page @ 563fd2d3
Editor Configuration
====================
In this article, we provide some editor configuration files which comply to our programming style. Feel free to download and use them.
VIM
---
Here is an example configuration file for VIM. It is configures the maximum line-width, indent-width, automatic white-space removal and the doxygen toolkit.
set tabstop=4
set softtabstop=4
set shiftwidth=4
" Enable spellchecking the comments
set spelllang=en
" Syntax based folding
set foldmethod=syntax
normal! zR
" Compilation
let &mp='make -C ../build/debug'
" Length of lines should be limited to 150
set textwidth=145
set wrapmargin=145
set wrap
set formatoptions+=t " wrap them automatically
" trim trailing spaces
let g:trimwhitepsace_enable = 1
if !exists('g:trimwhitepsace_enable') | let g:trimwhitepsace_enable = 0 | endif
func! TrimWhiteSpace()
exe "normal mz"
%s/\s\+$//ge
exe "normal `z"
exe "normal :delmarks z\n"
endfunc
autocmd FileType c,cpp,java,php,vo_base,python,bash,sh,glsl autocmd BufWritePre :call TrimWhiteSpace()
" Tune DoxygenToolkit
let g:DoxygenToolkit_briefTag_pre=""
let g:DoxygenToolkit_startCommentTag = "/**"
let g:DoxygenToolkit_startCommentBlock = "/*"
let g:DoxygenToolkit_paramTag_pre = "\\param "
let g:DoxygenToolkit_returnTag = "\\return "
let g:DoxygenToolkit_fileTag = "\\file "
let g:DoxygenToolkit_authorTag = "\\author "
let g:DoxygenToolkit_dateTag = "\\date "
let g:DoxygenToolkit_blockTag = "\\name "
let g:DoxygenToolkit_classTag = "\\class "
let g:doxygenToolkit_templateParamTag_pre = "\\tparam "
Eclipse
-------
In Eclipse IDE, you can import the attached style definitions.
Additional information
----------------------
If you want to enable spell checking (for comments and string literals) this page could help if you use emacs, eclipse or vim: http://stackoverflow.com/questions/1289765/spell-checker-for-comments-strings-maybe-more
Clone repository
  • Compiling OpenWalnut with MSVC on Windows
  • DeveloperTools
  • DiffusionIndices
  • Documentation
  • Downloads
  • EditorConfiguration
  • FAQ
  • FiberSimilarityMetrics
  • FirstSteps
  • Getting_OpenWalnut
  • Glossary
  • How to download, install and run OpenWalnut AppImage
  • How to use OpenWalnut for SIVERT
  • HowtoDocumentCode
  • IllustrativeConnectivityVisualization
View All Pages