Browse code
various tweaks
fiddlerwoaroof authored on 21/10/2014 18:18:35
Showing 5 changed files
Showing 5 changed files
... | ... |
@@ -129,13 +129,13 @@ au BufWrite /private/etc/pw.* set nowritebackup |
129 | 129 |
|
130 | 130 |
|
131 | 131 |
|
132 |
-"Diable the anti-python smart indent of # |
|
133 | 132 |
set ignorecase |
134 | 133 |
set smartcase |
135 | 134 |
set autoindent |
136 | 135 |
set nu |
137 | 136 |
set expandtab |
138 | 137 |
set tabstop=3 softtabstop=2 |
138 |
+set smarttab |
|
139 | 139 |
set shiftwidth=2 |
140 | 140 |
set incsearch |
141 | 141 |
set scrolloff=4 |
... | ... |
@@ -190,7 +190,8 @@ autocmd FileType pantondoc set linebreak tw=110 noexpandtab nosmartindent autoin |
190 | 190 |
autocmd FileType python set complete+=k~/.vim/syntax/python.vim "isk+=.,( |
191 | 191 |
" when we reload, tell vim to restore the cursor to the saved position |
192 | 192 |
|
193 |
-"inoremap X# |
|
193 |
+"Diable the anti-python smart indent of # |
|
194 |
+inoremap # X# |
|
194 | 195 |
|
195 | 196 |
"Turn Syntax Highlighting on by default, and assume the xterm background is black |
196 | 197 |
imap <C-g> :Unite outline i |
... | ... |
@@ -188,7 +188,7 @@ switchWorkspace target = do |
188 | 188 |
|
189 | 189 |
main = do |
190 | 190 |
xmproc <- spawnPipe "/home/edwlan/.cabal/bin/xmobar /home/edwlan/.xmobarrc" |
191 |
- xmproc1 <- spawnPipe "/home/edwlan/.cabal/bin/xmobar /home/edwlan/.xmobarrc1" |
|
191 |
+ --xmproc1 <- spawnPipe "/home/edwlan/.cabal/bin/xmobar /home/edwlan/.xmobarrc1" |
|
192 | 192 |
xmonad $ defaultConfig |
193 | 193 |
{ |
194 | 194 |
manageHook = myManageHook <+> manageSpawn <+> manageHook defaultConfig, |
... | ... |
@@ -82,7 +82,6 @@ PATH=/home/edwlan/bin:/usr/local/bin:$PATH |
82 | 82 |
export PATH="/opt/local/bin:/usr/sbin:/sbin/usr/sbin:/sbin:$HOME/.cabal/bin:$HOME/bin:/Developer/usr/bin:$PATH" |
83 | 83 |
export VIMCLOJURE_SERVER_JAR="$HOME/bin/jars/server-2.3.6.jar" |
84 | 84 |
export INFOPATH=/usr/local/share/info:/usr/local/texlive/2009/texmf/doc/info |
85 |
- |
|
86 | 85 |
export SAVEHIST=10000000 |
87 | 86 |
export HISTSIZE=10000000 |
88 | 87 |
export HISTFILE=$HOME/.zshistory |
... | ... |
@@ -98,6 +97,7 @@ export MANPATH="/opt/local/share/man:$MANPATH" |
98 | 97 |
export PAGER="less" |
99 | 98 |
|
100 | 99 |
export RGBDEF='/opt/X11/share/X11/rgb.txt' |
100 |
+export GREP_COLORS='ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36' |
|
101 | 101 |
|
102 | 102 |
if [ -x /usr/local/bin/vim ]; then |
103 | 103 |
export VISUAL="/usr/local/bin/vim" |
... | ... |
@@ -201,6 +201,8 @@ alias e=$EDITOR |
201 | 201 |
alias cvsdiff='cvs diff -wbB | colordiff' |
202 | 202 |
alias cp.='gcp --target-directory=.' |
203 | 203 |
alias notep='note post' |
204 |
+alias bower='noglob bower' |
|
205 |
+alias node='nodejs' |
|
204 | 206 |
|
205 | 207 |
echo "done variables and options" |
206 | 208 |
|
... | ... |
@@ -404,6 +406,12 @@ ge() { |
404 | 406 |
} |
405 | 407 |
|
406 | 408 |
messages() { |
409 |
+ if [[ -d .git ]]; then |
|
410 |
+ echo "Git log messages:" |
|
411 |
+ git log -n 5 | egrep --color=yes -Io '(TODO|NOTE|FIXME|BUG|DONE):.*$' |
|
412 |
+ fi |
|
413 |
+ |
|
414 |
+ echo "Messages from files:" |
|
407 | 415 |
egrep --color=yes -IHnro '(TODO|NOTE|FIXME|BUG):.*$' . | |
408 | 416 |
psc ' |
409 | 417 |
for line in sys.stdin: |
... | ... |
@@ -0,0 +1 @@ |
1 |
+print('hello') |