whitespace and installation tweaks

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

@ -37,11 +37,25 @@ call vundle#end() " required
filetype plugin indent on 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 ----------------------------------------------------------------{{{ " Whitespace ----------------------------------------------------------------{{{
" allow backspacing over line breaks " allow backspacing over line breaks
set backspace=indent,eol,start 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 set autoindent
" automatically add an indent after block-opening symbols like { " automatically add an indent after block-opening symbols like {
@ -62,7 +76,12 @@ set expandtab
set smarttab set smarttab
" set whitespace characters " 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 --------------------------------------------------------------------{{{ " Search --------------------------------------------------------------------{{{
@ -180,20 +199,6 @@ else
endif 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 ---------------------------------------------------------------{{{ " Status Line ---------------------------------------------------------------{{{
" always show the status line " always show the status line
set laststatus=2 set laststatus=2
@ -311,11 +316,13 @@ let g:ctrlp_user_command = [
" ---------------------------------------------------------------------------}}} " ---------------------------------------------------------------------------}}}
" NERDTree ------------------------------------------------------------------{{{ " NERDTree ------------------------------------------------------------------{{{
" fix windows arrows. This gets rid of the pretty arrows on other systems, if has("multi_byte")
" will have to restore that properly. The default switching behavior is broken let g:NERDTreeDirArrowExpandable = '▸'
" inside of msys2. let g:NERDTreeDirArrowCollapsible = '▾'
let g:NERDTreeDirArrowExpandable = '+' else
let g:NERDTreeDirArrowCollapsible = '-' let g:NERDTreeDirArrowExpandable = '+'
let g:NERDTreeDirArrowCollapsible = '-'
endif
" enable dir tree arrows " enable dir tree arrows
let g:NERDTreeDirArrows = 1 let g:NERDTreeDirArrows = 1

@ -5,12 +5,15 @@ base_dir="$home/.dotfiles"
backup_dir="$home/.dotfiles/backup" backup_dir="$home/.dotfiles/backup"
vim_plugins_dir="$home/.vim/bundle" vim_plugins_dir="$home/.vim/bundle"
vundle_dir="$vim_plugins_dir/Vundle.vim" 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=( include=(
.bash_profile .bash_profile
.bashrc .bashrc
.screenrc .screenrc
.tmux.conf .tmux.conf
.vim/ftplugin/*.vim .vim/ftplugin
.vimrc .vimrc
) )

Loading…
Cancel
Save