Browse files

Add automatic word wrapping as I type

This gets tiring to type gq all the time, I find it easier to just rely
on the editor to do it lazily for me. Although gq is still useful for
  • Loading branch information...
yannk committed Sep 17, 2013
1 parent 46733e4 commit 83e1848dd8797f62429640746b176076b5e00601
Showing with 7 additions and 6 deletions.
  1. +6 −6 bashrc
  2. +1 −0 vimrc
12 bashrc
@@ -1,6 +1,11 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
+if [ -f $PERLBREW_RC ]; then
+ source $PERLBREW_RC;
export LC_ALL=en_US.UTF-8
@@ -51,7 +56,7 @@ export HISTFILESIZE=100000
shopt -s histappend
# Save and reload the history after each command finishes
-export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
+#export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
@@ -169,11 +174,6 @@ _relocate_ssh_auth_sock() {
#alias tmux='_ssh_auth_save $(hostname); tmux'
_relocate_ssh_auth_sock $(hostname)
-if [ -f $PERLBREW_RC ]; then
- source $PERLBREW_RC;
if [ -f ~/.bash_local ]; then
. ~/.bash_local
1 vimrc
@@ -147,6 +147,7 @@ Bundle 'scrooloose/syntastic'
"autocmd FileType make hi! SpecialKey cterm=none
" Drupal stuff
+ autocmd FileType gitcommit setlocal fo+=t " automatic word wrapping as I type
autocmd BufRead,BufNewFile *.module set filetype=php
autocmd BufRead,BufNewFile *.inc set filetype=php
autocmd FileType php setlocal softtabstop=2 expandtab tabstop=2 shiftwidth=2 autoindent smartindent

0 comments on commit 83e1848

Please sign in to comment.