whitespace and installation tweaks

master
Jordan Orelli 8 years ago
parent 0873c65127
commit 015b70f8e7

@ -37,11 +37,25 @@ call vundle#end() " required
filetype plugin indent on
" ---------------------------------------------------------------------------}}}
" Character Encoding --------------------------------------------------------{{{
" sets the character encoding used inside of vim itself. does not change how
" files are written to disk.
set encoding=utf-8
if has("multi_byte")
" termencoding specifies what character encoding the keyboard produces and
" the display will understand
if &termencoding == ""
let &termencoding = &encoding
endif
endif
" ---------------------------------------------------------------------------}}}
" Whitespace ----------------------------------------------------------------{{{
" allow backspacing over line breaks
set backspace=indent,eol,start
" copy indent form current line when starting a new line
" copy indent from current line when starting a new line
set autoindent
" automatically add an indent after block-opening symbols like {
@ -62,7 +76,12 @@ set expandtab
set smarttab
" set whitespace characters
set listchars=tab:>-,trail:.,extends:#
if has("multi_byte")
set listchars=tab:▸\ ,trail,precedes:←,extends:→
let &showbreak='↪ '
else
set listchars=tab:>-,trail:.,precedes:#,extends:#
endif
" ---------------------------------------------------------------------------}}}
" Search --------------------------------------------------------------------{{{
@ -180,20 +199,6 @@ else
endif
" ---------------------------------------------------------------------------}}}
" Character Encoding --------------------------------------------------------{{{
" sets the character encoding used inside of vim itself. does not change how
" files are written to disk.
set encoding=utf-8
if has("multi_byte")
" termencoding specifies what character encoding the keyboard produces and
" the display will understand
if &termencoding == ""
let &termencoding = &encoding
endif
endif
" ---------------------------------------------------------------------------}}}
" Status Line ---------------------------------------------------------------{{{
" always show the status line
set laststatus=2
@ -311,11 +316,13 @@ let g:ctrlp_user_command = [
" ---------------------------------------------------------------------------}}}
" NERDTree ------------------------------------------------------------------{{{
" fix windows arrows. This gets rid of the pretty arrows on other systems,
" will have to restore that properly. The default switching behavior is broken
" inside of msys2.
if has("multi_byte")
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
else
let g:NERDTreeDirArrowExpandable = '+'
let g:NERDTreeDirArrowCollapsible = '-'
endif
" enable dir tree arrows
let g:NERDTreeDirArrows = 1

@ -5,12 +5,15 @@ base_dir="$home/.dotfiles"
backup_dir="$home/.dotfiles/backup"
vim_plugins_dir="$home/.vim/bundle"
vundle_dir="$vim_plugins_dir/Vundle.vim"
# don't include all of .vim, it winds up re-downloading plugins if you do it
# that way.
include=(
.bash_profile
.bashrc
.screenrc
.tmux.conf
.vim/ftplugin/*.vim
.vim/ftplugin
.vimrc
)

Loading…
Cancel
Save