Instead of using <ESC>i to get out of insert mode and reenter it at
the closing bracket, Vim accepts the use of <Left> to move the cursor
left without leaving insert mode. This allows undo and repeats to work.
With Ruby version 1.8.5, the smartwd script would abort with an error that
the shift method would take no arguments. Therefore, I have restricted the
use of the script to ruby version 1.8.7 and above.
On older versions, it will simply behave the same as \w in PS1 of bash.
Console uses Solarized (Dark) colorscheme, so having a light
background doesn't work well in the console. On the other hand,
the dark background is hard to read in MacVim (for me).
This script evaluates the commands specified on the command line and
sends a beep to the terminal after the command completes execution. In
tmux, this results in the window status bar displaying the beep signal.
check_empty for restore was trying to run a git checkout in the current
working directory, instead of in the ~/.notes directory. Fix this issue
note_show uses less to display the contents of the note file.
Add a function add_to_path so that it can prepend any specified path
to the PATH environment variable, but only if it is not already there.
Don't worry about (re)setting the LS_COLORS environment if it's already
been set by the system bashrc.
Fix the following issues in note
1. Always use a combo of lowercase letters, hyphen, underscore and
numbers for the file name. This is taken from the title and uses sed
to translate the uppercase letters to lowercase. Unfortunately,
sed's translation mode doesn't support ranges, so we must use the
full alphabet.
2. Add support for displaying version information.
3. Reformat the help display so it all fits in a single line.
4. Add checking to ensure that at least one argument is passed to note
so that the parse_args routine doesn't barf an error with shift.
5. Remove argument checking in notes_init. It's called only by the init
function, so there's no need to add a flag to control warnings.
This file is sourced by .bashrc and exports LSCOLORS (for OS X systems).
If the .dircolors file exists in the user's home directory, then it is
passed to the dircolors utility (if it exists) and the output is
evaluated to configure GNU ls coloring.
This Perl script reads a valid dircolors configuration file and prints
the colorscheme used by 'ls --color' for each file type (and extension).
Error checking is non-existent. The script assumes that your dircolors
file is valid input for the dircolors program.
The existing script was rounding the computed Julian date which was
resulting in the script printing the next day for 12 hours in the day,
i.e., a date of 456314.5 was being printed as 45631.5 (due to the
division by 10 and rounding up by the print statement). Now, the script
computes the number of days since the epoch (JD 2000000) and drops the
fractional portion, so it will print the correct Julian date stardate,
i.e., a date of 456314.5 will be printed correctly as 45631.4.
The { mapping used to open a C-style block, however, it gave several
problems when dealing with Perl code and hashes. This converts it to
simply working as {}, like the ( -> () and [ -> [] mappings.
This will always highlight characters that exceed the 80 character
limit with ErrorMsg, but will also highlight the 81st column, so
the user knows when to break.
Changes to tmux.conf
- Make it easier for users to adjust the colorscheme by using named
constants to store the color names.
- Highlight the active window using additional attributes instead of
a jarring background.
- Enable the aggressive-resize option
- Remove unused key bindings
- Bind L to choose-session
- Allow the escape key to quit the choice window
Also delete the forcing of &t_Co to 16 since under tmux, it
automatically detects the 256 colour mode for solarized and is therefore
no longer necessary.