Skip to content

Commit

Permalink
Small .vimrc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwill committed Dec 4, 2013
1 parent 101ecd7 commit ee96abb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ set softtabstop=2
" Temporary files
set nobackup
set nowritebackup
set dir=/tmp
set directory=/tmp

" Mouse functionality
if has("mouse")
Expand Down Expand Up @@ -124,7 +124,7 @@ au FileType python setl shiftwidth=4
au FileType python setl softtabstop=4

" PHP
" au FileType php setl sts=4 sw=4
"au FileType php setl sts=4 sw=4
"au FileType php setl noexpandtab

" Makefiles
Expand Down Expand Up @@ -205,6 +205,8 @@ function! RunCommand()
let lang = "node"
elseif lang == "go"
let lang = "go run"
elseif lang == "text"
let lang = "cat"
endif
exe "map <leader>r :w<CR>:!" . lang . " %<CR>"
endif
Expand Down

0 comments on commit ee96abb

Please sign in to comment.