User Tools

Site Tools


programming:vimrc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:vimrc [2020/01/24 21:47] clemixprogramming:vimrc [2020/01/24 22:46] (current) – [Install] clemix
Line 288: Line 288:
 autocmd BufWritePre * %s/\s\+$//e autocmd BufWritePre * %s/\s\+$//e
 </file> </file>
 +
 +====== Install ======
 +<code bash>
 +git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
 +vim +PluginInstall +qall
 +</code>
 +
 +Install YCM https://github.com/ycm-core/YouCompleteMe#linux-64-bit
 +<code bash>
 +sudo apt install build-essential cmake python3-dev
 +
 +cd ~/.vim/bundle/YouCompleteMe
 +python3 install.py --clang-completer
 +</code>
 +
 +====== Alias Helpers ======
 +<code bash>
 +alias ctags-perl="ctags -f tags --recurse --totals \
 +--exclude='.*.swp' --exclude=.svn \
 +--exclude=.git --exclude='*~' \
 +--extras=+q \
 +--languages=Perl \
 +--langmap=Perl:+.t"
 +
 +alias ctags-c++="ctags -R \
 +--exclude='.*.swp' --exclude=.svn \
 +--exclude=.git --exclude='*~' \
 +--c++-kinds=+p \
 +--fields=+iaS \
 +--extras=+q \
 +--langmap=c++:.ino.c.h.cpp.hpp"
 +
 +alias ctags-python="ctags -R \
 +--exclude='.*.swp' --exclude=.svn \
 +--exclude=.git --exclude='*~' \
 +--fields=+l \
 +--extras=+q \
 +--languages=python \
 +--python-kinds=-iv"
 +
 +
 +alias grn="grep -rn --exclude tags"
 +alias git-show-files="git log --pretty=format: --name-only  -n1"
 +alias git-hist="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
 +
 +</code>
programming/vimrc.1579898832.txt.gz · Last modified: by clemix

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki