GithubHelp home page GithubHelp logo

raacker / setup_vim Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.14 MB

Automatic vim setup for C / C++

License: Apache License 2.0

Makefile 1.88% QMake 0.12% C 0.92% C++ 0.13% TeX 4.90% Shell 1.71% Vim Script 90.34%
linux automation c vim bash-script setup

setup_vim's Introduction

setup_vim

This repository includes **.vim, .vimrc **

Additional

  • terminator - change permission of terminator.sh to 700(chmod 700 terminator.sh) and run it

Plugins

  • gmarik/Vundle.vim
  • tpope/vim-fugitive
  • L9
  • wincent/command-t
  • rstacruz/sparkup
  • The-NERD-tree
  • AutoComplPop
  • taglist-plus (temporary diabled)
  • cvim
  • Lokaltog/powerline
  • klen/python-mode

Run

First, change permission of run.sh to 700(only available for user) by chmod 700 run.sh
and Run run.sh with sudo.

Details

NERD Tree is mapped on F7 and taglist is on F8

scons : SConstructor is python script program that substitute make.
ex) if making a cpp builder, vi SConstructor and put these words
Program('execute file name', Glob('*.cpp'), CCFLAGS='-g -std=c++11')
and only left thing to do is enter scons command.

terminator : Best terminal ever. I mapped keys to dconf files

  • Ctrl + Shift + s : open new terminator window

  • Ctrl + Shift + i : close terminator window

    all these keybindings also availiable on terminator not only on desktop

Usage

*In NERD Tree, you can open files besides of other vim.*
**i**: open in bottom side(vertical way)
**s** : open in right side(horizontal way)

git branch on terminal

# Please add this in bashrc # Add git branch if its present to PS1 """ parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } if [ "$color_prompt" = yes ]; then if [[ ${EUID} == 0 ]] ; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' else PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \[\033[01;31m\]$(parse_git_branch)\[\033[01;34m\]\$\[\033[00m\] ' fi else PS1='${debian_chroot:+($debian_chroot)}\u@\h \w $(parse_git_branch)\$ ' fi unset color_prompt force_color_prompt """

Resource from

https://luckyyowu.tistory.com/308
https://dobest.io/install-vundle-and-nerdtree
https://unlogic.co.uk/2013/02/08/vim-as-a-python-ide

setup_vim's People

Contributors

raacker avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.