Skip to content

mzlogin/config-files

Repository files navigation

config-files

Contains config files below.

  1. Vim config for Mac OS X/Windows via vim-plug.

  2. STL views support for gdb.

  3. STL tags file generate from http://www.vim.org/scripts/script.php?script_id=2358.

  4. Emacs config for Windows.

  5. CLAUDE.md and skills for peronal use, valid for GitHub Copilot and Claude Code.

The Quick Start below is just for self use, I don't promise it will work well in your environment.

Table of Contents

Quick Start

Mac OS X

Vim

  • Set up vim-plug:

    curl -fLo ~/vimfiles/autoload/plug.vim --create-dirs https://cdn.jsdelivr.net/gh/junegunn/vim-plug/plug.vim
    
  • install cscope, universal-ctags and ripgrep

    If you want to view code, you may need cscope and ctags support, so install it.

    brew install cscope
    brew install --HEAD universal-ctags/universal-ctags/universal-ctags
    brew install ripgrep
    brew install yarn
    
  • generate tags files (optional)

    For better c++ coding experience, generate your crttags and win32tags into ~/tags-files dir.

  • pull config files:

    cd ~
    git init
    git remote add origin https://github.com/mzlogin/config-files.git
    git pull origin main
    
  • Install plugins

    Start vim, and exec :PlugInstall

  • Done!

Emacs

  • install the newest version of GNU Emacs, global and sbcl

    brew install emacs
    brew install global
    brew install sbcl
    
  • create file /usr/bin/sbcl and change its content to

    #!/bin/sh
    exec /usr/local/bin/sbcl "$@"
    
  • copy c++ headers into ~/.emacs.d/cpp-headers

  • use elpa in Emacs to install plugins below:

    • company

    • ggtags

    • helm-gtags

    • markdown-mode

    • projectile

    • sr-speedbar

    • smex

    • evil

    • jedi

      • pip install virtualenv
      • M-x package-install jedi
      • M-x package-install exec-path-from-shell
      • restart emacs
      • M-x exec-path-from-shell-initialize
      • M-x jedi:install-server
    • evil-nerd-commenter

    • function-args

    • slime

    • slime-company

    • smooth-scrolling

    For example to install ggtags:

    M-x package-install <RETURN>
    ggtags <RETURN>
    

zsh

Add the following line to your ~/.zshrc:

test -e "${HOME}/my.zshrc" && source "${HOME}/my.zshrc"

Windows

Vim

Emacs

Other common requirements

asciidoc

gem install asciidoctor
gem install coderay
gem install asciidoctor-pdf --pre

Install Chrome Extension below, and enable file address access.

https://asciidoctor.org/docs/editing-asciidoc-with-live-preview/

About

config files in home dir

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors