Skip to content
This repository has been archived by the owner on Sep 23, 2018. It is now read-only.

telenieko/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

This is a collection of my dotfiles, which I use on my computers. Those are published as examples for anyone who may find some utility to them.

If you have no prior configurations (or do not like yours) you can run the provided install.sh script to install this configurations.

To fork or not to fork

If you plan to use those files "as-is" in your environment I'd recommend you to use the install.sh and place "small" customizations in:

  • $HOME/.profile.local for shell environment
  • $HOME/.vimrc.local for VIM customizations.

If you want to do more advanced customizations you may consider adding them to the zsh and vim folders with proper variables to enabled/disable the new behaviours and publish the changes ;)

What's there

VIM

You can place customizations in $HOME/.vimrc.local which will be sourced at the end of .vimrc

Some useful Key Mappings are setup in .vimrc:

  • Buffer Explorer:
    • F9: Opens it.
    • Shift+F9: Opens it in a Horizontal Split Window.
    • Control+F9: Opens it in a Vertical Split Window.
  • File Explorer:
    • F8: Opens it.
    • Shift+F8: Opens it in a Horizontal Split Window.
    • Control+F8: Opens it in a Vertical Split Window.
  • Control+Del: Closes current window.
  • F7: Show the saved sessions List.

Some plugins are there:

  • Buffer Explorer (F9, Shift+F9, Contorl+F9)
  • Close Tag (Control+_)
  • GnuPG
  • SnipMate
  • Surround
  • Session Manager
  • .po file editing
  • Python Folding

Also:

  • Python Omni-func for super Intelligent completion. (you need to set you PYTHONPATH properly, see zsh/90_vim)
  • Custom Django Templates syntax coloring, behaves exactly as the standard one, but the "js" and "css" blocks get proper highlightings.

ZSH

Note that my .zsh was initially taken from http://madism.org/ (http://madism.org/~madcoder/dotfiles/).

Useful aliases:

  • serverdir: Runs an HTTP server for the current directory (python)
  • servedircgi: Runs an HTTP server for the current directory with CGI support (python)
  • check_git_hooks: Links the hooks in $HOME/.githooks to the current repository.

The vimp command

zsh/90_vim defines a command "vimp" to be used from the console, this command does some things to launch vim, mainly:

  • Reset PYTHONPATH
  • If there's a parts/omelette directory, add it to PYTHONPATH
  • If there's a parts/django, add it to PYTHONPATH
  • If there's a src/, add it to PYTHONPATH
  • If there's bin/django (buildout setups), get the Django Settings Module from it for the environment.

With this we launch VIM with the "Session" set to the basename of the current path, and the new PYTHONPATH and DJANGO_SETTINGS_MODULE, that way, Python omni-func Completion works with Django.

Bash

Nothing for bash right now, sorry. You may try to:

source zsh/90_vim

To get the 'vimp' command, and it should work ;)

About

Some dotfiles for configuring your environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published