help with indentation stuff in vim

This commit is contained in:
Daniel Flanagan 2016-06-23 18:53:46 -05:00
parent aac594325f
commit 7ebfbea279

View file

@ -16,32 +16,30 @@ Plug 'junegunn/vim-plug'
" plugins " plugins
Plug 'vim-airline/vim-airline' " statusline Plug 'vim-airline/vim-airline' " statusline
" let g:airline_powerline_fonts = 0 " let g:airline_powerline_fonts = 0
let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open let g:airline#extensions#tabline#enabled = 1 " automatically displays all buffers when there's only one tab open
let g:airline#extensions#tabline#fnamemod = ':t' let g:airline#extensions#tabline#fnamemod = ':t'
" set laststatus=2 " always show statusline " set laststatus=2 " always show statusline
" set noshowmode " hides default mode " set noshowmode " hides default mode
let g:airline#extensions#tabline#left_sep = '' let g:airline#extensions#tabline#left_sep = ''
let g:airline#extensions#tabline#left_alt_sep = '' let g:airline#extensions#tabline#left_alt_sep = ''
let g:airline_right_alt_sep = '' let g:airline_right_alt_sep = ''
let g:airline_right_sep = '' let g:airline_right_sep = ''
let g:airline_left_alt_sep= '' let g:airline_left_alt_sep= ''
let g:airline_left_sep = '' let g:airline_left_sep = ''
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'scrooloose/nerdtree', {'on': ['NERDTreeToggle', 'NERDTree']} " nice sidebar for files Plug 'scrooloose/nerdtree', {'on': ['NERDTreeToggle', 'NERDTree']} " nice sidebar for files
let g:NERDTreeDirArrowExpandable = ' ' let g:NERDTreeDirArrowExpandable = ' '
let g:NERDTreeDirArrowCollapsible = ' ' let g:NERDTreeDirArrowCollapsible = ' '
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " close vim if last buffer is a NERD buffer autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " close vim if last buffer is a NERD buffer
" Plug 'nathanaelkane/vim-indent-guides' " indentation guides (NOTE: doesn't seem to work with my colorscheme) Plug 'nathanaelkane/vim-indent-guides' " indentation guides (NOTE: doesn't seem to work with my colorscheme)
" let g:indent_guides_start_level = 0 let g:indent_guides_start_level = 0
" let g:indent_guides_auto_color = 1 let g:indent_guides_auto_color = 1
" highlight IndentGuidesOdd ctermbg=1
" highlight IndentGuidesEven ctermbg=236
Plug 'Shougo/deoplete.nvim' " autocomplete Plug 'Shougo/deoplete.nvim' " autocomplete
let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_at_startup = 1
Plug 'scrooloose/syntastic' " syntax checker Plug 'scrooloose/syntastic' " syntax checker
Plug 'bkad/CamelCaseMotion' " camel case and underscore word movements Plug 'bkad/CamelCaseMotion' " camel case and underscore word movements
@ -102,8 +100,8 @@ set shiftwidth=2
set softtabstop=2 set softtabstop=2
set noexpandtab set noexpandtab
set autoindent smartindent set autoindent smartindent
set listchars=trail,tab:»· set list
" set list set listchars=trail,tab:\ \
" look and feel " look and feel
@ -112,13 +110,13 @@ set linebreak
set breakindent set breakindent
set textwidth=80 set textwidth=80
set formatoptions=crql1j set formatoptions=crql1j
" t autowrap to textwidth " t autowrap to textwidth
" c autowrap comments to textwidth " c autowrap comments to textwidth
" r autoinsert comment leader with <enter> " r autoinsert comment leader with <enter>
" q allow formatting of comments with gq " q allow formatting of comments with gq
" l lines longer than 'textwidth' on insert do not get formatted " l lines longer than 'textwidth' on insert do not get formatted
" 1 don't break a line after a one-letter word - break it before " 1 don't break a line after a one-letter word - break it before
" j where it makes sense, remove a comment leader when joining lines " j where it makes sense, remove a comment leader when joining lines
set title " handle window title set title " handle window title
set synmaxcol=2048 set synmaxcol=2048
@ -159,6 +157,9 @@ let base16colorspace=256
set background=dark set background=dark
colorscheme current colorscheme current
hi WhiteSpaces ctermfg=black ctermbg=8
match WhiteSpaces /^ \+/
set hidden " hides abandoned buffers or something set hidden " hides abandoned buffers or something
set shortmess=I set shortmess=I
set history=1000 set history=1000