Giter Club home page Giter Club logo

vim_python3_ide_installer's Introduction

Vim as Python3 and C IDE

This is my shell script to install vim and other packages so that I can use vim as my Python3 and C development environment.

This program will do the following things:

  • Uninstall previous vim packages and old vim configuration.
  • Compile and install vim from source with Python3 support.
  • Download and install 256 color capable urxvt terminal emulator and set it up to use clipboard and the Terminus font. Urxvt is the fastest terminal I found and it supports unicode characters and tabs. Terminus font makes code easier to read.
  • Install vim plugins Pathogen and Tagbar to make vim an IDE.
  • Install Syntastic and Pyflakes.
  • Install Supertab and Pydoc.
  • Install C language reference documents.
  • Remove most color schemes that come with vim, leaving only: default, desert, murphy and slate.
  • Install 256 color vim colorschemes: desert256, distinguished, jellybeans, aldmeris (based on oblivion colorscheme for Gedit).
  • All colorschemes are modified to show the current line as a 1 pixel underline.
  • Aldmeris default color for statements (white) is the same as for the rest of text. Statements should stand out, so the color is changed to green.
  • Colorscheme desert256 is set as the default colorscheme.

After installation you have:

  • A 256 color and UTF-8 capable terminal emulator urxvt.
  • Basic copy / paste functionality between urxvt and other programs.
  • Python3 syntax checking (every time you save).
  • Python3 syntax highlighting.
  • Python3 documentation for the keyword under cursor opens with leader + pw ( \pw NOTE second character must be pressed within 1 second ).
  • C syntax checking (every time you save)
  • C syntax highlighting.
  • C reference documentation for the keyword under cursor opens with leader + cr ( \cr NOTE second character must be pressed within 1 second ).
  • The current line is underlined with a single pixel white line (all colorschemes).
  • F2 - turns on/off line numbers.
  • F3 - turns on/off ident guidelines
  • F5 - turns on/off automatic identation (needs to be turned off when pasting text into vim).
  • F8 - turns on/off Tagbar.
  • Tagbar shows your function names and variables in a small window on the right side of vim display.
  • Tagbar also shows you the 'scope' meaning it highlights the function name the current code line belongs to.
  • Pressing enter in Tagbar window on a function name makes the main window jump to that function.
  • Matching brackets are automatically highlighted.
  • Search results are highlighted.
  • Case is ignored in search.
  • Vim remembers the code line that you were in last time the file was open.
  • '' is mapped to `` meaning that the command '' returns to the line and character you were on before a jump in the text.
  • Backspace configured to work like it should.

After installation fire up urxvt and start vim in it :)

  • Copy paste in urxvt works like this: text highlighted in urxvt is immediately copied to clipboard when you release the mouse button. Paste with: shift + ctrl +v.
  • Copy / paste works between most graphical programs and urxvt, but with for example Gmail it does not work. You can overcome this by installing the small and lightweight clipboard manager: parcellite. As a bonus it remembers your previous clipboard texts also :)

Installation

Requirements: Ubuntu or another Debian based Linux disto

git clone https://github.com/mhartzel/vim_python3_ide_installer.git

cd vim_python3_ide_installer

./install_vim_and_packages_required_for_python3_ide.sh

Screenshots

Toggle line numbers and indent guides on / off

Toggle line numbers on/off with F2
Toggle indent guides on/off with F3

Desert256

Tagbar shows the current 'scope' and lets jump to function and variable definitions

Toggle Tagbar on/off with F8

Desert256

Python3 and C syntax checking

Desert256

Complete keywords by pressing Tab

Desert256

View documentation for the keyword under cursor

Python3: leader + pw ( \pw )
C: leader + cr ( \cr )

Desert256

Colorschemes

Desert256 colorscheme

Desert256

Aldmeris256 colorscheme (based on oblivion colorscheme for Gedit)

Desert256

Distinguished colorscheme (256 colors)

Distinguisged256

Jellybeans colorscheme (256 colors)

Jellybeans256

Murphy colorscheme (8 colors)

Murphy8

Slate colorscheme (8 colors)

Slate8

Vims own default colorscheme (8 colors)

Vim8

Desert colorscheme (8 colors)

Vim8

vim_python3_ide_installer's People

Contributors

mhartzel avatar

Watchers

 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.