Skip to content

mobro/c-project

Repository files navigation

c-project

Code formatting
copy the .indent.pro file into the root folder, so indent will use this profile when called in vim via 1G!Gindent to format your C File.

Code snippets
If you want to insert blocks of code which you often use with a shortcut. Using c-support.vim https://lug.fh-swf.de/vim/vim-c/c-hotkeys.pdf the commands allways start with \

NERDTree
Use a file browser inside vim. Open file in horizontal split window is i http://www.usevim.com/2012/07/18/nerdtree

Using CMake
CMakeLists.txt is the configuration file. Use cmake . and than make to generate the executable.

Using GitHub
Use the SSH link and not the https link, generate a SSH key and add it to the github account.

Auto completion
If you want to have a auto completion inside vim use YouCompleteMe.

Jumping to definitions, declarations etc.
Use exuberant-ctags, go to the project root folder and run ctags -R --exclude=.git .

Search in files
grep -rnw '/path/to/somewhere' -e "pattern"

Bash
Use the history -a command in the bash to see which commands you were using.
Use Ctrl -l to clear the terminal.
Use !x to search in the command history for x command.

ZSH
Using the adam2 zshell

About

c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •