diff --git a/dotfiles/vim/vimrc b/dotfiles/vim/vimrc index 7289d28..8fb476e 100644 --- a/dotfiles/vim/vimrc +++ b/dotfiles/vim/vimrc @@ -1,15 +1,12 @@ -" VIM Configuration File - +" flyingscorpio's VIM Configuration File " most of this comes from https://dougblack.io/words/a-good-vimrc.html set nocompatible " disable vi compatibility (emulation of old bugs) - " UTF-8 ENCODING {{{ set enc=utf-8 set fenc=utf-8 set termencoding=utf-8 " }}} - " LEADER SHORTCUTS {{{ let mapleader="," @@ -30,7 +27,6 @@ nnoremap j :wincmd j nnoremap k :wincmd k nnoremap l :wincmd l " }}} - " VUNDLE {{{ filetype off set rtp+=~/.vim/bundle/Vundle.vim @@ -63,7 +59,6 @@ Plugin 'Yggdroot/indentLine' " Display thin vertical lines at each indentation l call vundle#end() filetype plugin indent on " }}} - " PLUGIN OPTIONS {{{ let g:ale_python_mypy_options = '--strict --strict-optional' @@ -85,20 +80,17 @@ nmap ne :NERDTree " let g:indentLine_char = '▏' let g:indentLine_fileType = ['html', 'htmldjango'] " }}} - " COLORS {{{ colorscheme badwolf let g:airline_theme='badwolf' syntax on let &t_ut='' " Disable BCE (background color erase) " }}} - " SPACES & TABS {{{ set expandtab " expand tabs to spaces set shiftwidth=4 set softtabstop=4 " number of spaces in tab when editing " }}} - " UI CONFIG {{{ " The default cursor in normal mode is block but this will be overridden by any shell configuration. let &t_SI = "\e[5 q" " cursor beam on insert mode @@ -116,7 +108,6 @@ set wildmenu " visual autocomplete for command menu set lazyredraw " redraw only when necessary set showmatch " highlight matching braces " }}} - " SEARCHING {{{ set path+=** " Find files in sub-folders too set incsearch " search as characters are entered @@ -124,7 +115,6 @@ set hlsearch " highlight matches " turn off search hightlight after search nnoremap :nohlsearch " }}} - " FOLDING {{{ set foldenable " enable folding set foldlevelstart=10 " open most folds by default (0 to 99) @@ -133,13 +123,11 @@ set foldmethod=syntax " fold based on filetype " space opens and closes folds nnoremap za " }}} - " MOVEMENT {{{ " move vertically by visual line (don't jump wrapped lines) nnoremap j gj nnoremap k gk " }}} - " AUTOGROUPS {{{ augroup configgroup autocmd! @@ -171,6 +159,5 @@ augroup configgroup autocmd BufEnter *.sh setlocal shiftwidth=2 tabstop=2 softtabstop=2 foldlevel=0 foldmethod=marker augroup END " }}} - set modelines=1 " vim:foldmethod=marker:foldlevel=0