Skip to content

Commit

Permalink
Misc updates to shell colors and vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbutler committed Apr 12, 2016
1 parent 24813d1 commit f2b56c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .cli_color
Expand Up @@ -61,7 +61,7 @@ default="x"

# Each color is a pair of characters, indicating foreground and background
# respectively.
directory="${black}${green}"
directory="${black}${brown}"
symlink="${bold_magenta}${default}"
socket="${bold_cyan}${default}"
pipe="${bold_brown}${default}"
Expand Down
16 changes: 4 additions & 12 deletions .vimrc
Expand Up @@ -11,6 +11,7 @@ set incsearch
set cursorline
set nohidden
set list listchars=tab:»·,trail:·
set backspace=indent,eol,start

" Use tree style listing in Explore mode
let g:netrw_liststyle = 3
Expand Down Expand Up @@ -42,10 +43,9 @@ set tags=./tags;
autocmd BufRead,BufNewFile *.py :match ErrorMsg '\%>79v.\+'
autocmd FileType python set textwidth=79

" JavaScript settings
"
autocmd FileType javascript setlocal tabstop=2
autocmd FileType javascript setlocal shiftwidth=2
" Some files need to have a tab width of 2:
autocmd FileType javascript,json,yaml,html setlocal tabstop=2
autocmd FileType javascript,json,yaml,html setlocal shiftwidth=2
" Display an error in .js files as well if the line grows beyond 79 chars.
autocmd BufRead,BufNewFile *.js :match ErrorMsg '\%>79v.\+'
autocmd BufRead,BufNewFile *.js :match ErrorMsg '\%>79v.\+'
Expand All @@ -62,14 +62,6 @@ autocmd FileType gitcommit set textwidth=72
" markdown settings
autocmd BufRead,BufNewFile *.md :set syntax=markdown

" html settings
autocmd FileType html setlocal tabstop=2
autocmd FileType html setlocal shiftwidth=2

" yaml settings
autocmd FileType yaml setlocal tabstop=2
autocmd FileType yaml setlocal shiftwidth=2

" Trim trailing whitespace:
function TrimWhiteSpace()
" Don't strip whitespace on these filetypes
Expand Down

0 comments on commit f2b56c6

Please sign in to comment.