add sectioning to vimrc

This commit is contained in:
Marty Oehme 2019-03-20 14:27:54 +01:00
parent 992d19da56
commit 003b053fe7

View file

@ -1,3 +1,18 @@
" vim: set foldmethod=marker foldlevel=0 nomodeline:
" ================================================================================
" .init.vim / .vimrc of Marty Oehme {{{
" ================================================================================
"
" - stolen from many different sources including
" Steve Losh
" Junegunn Choi
" Tim Pope
" }}}
" ================================================================================
" PLUGIN INSTALLATION - handled by VIM-PLUG {{{
" ================================================================================
"
" automatically install vim-plug if it does not exist " automatically install vim-plug if it does not exist
" Note: this installs it in the neovim folder, not the vim folder " Note: this installs it in the neovim folder, not the vim folder
if empty(glob('~/.vim/autoload/plug.vim')) if empty(glob('~/.vim/autoload/plug.vim'))
@ -46,7 +61,10 @@ Plug 'Nequo/vim-allomancer'
call plug#end() call plug#end()
" PLUGIN CONFIGURATION " }}}
" ================================================================================
" PLUGIN CONFIGURATION {{{
" ================================================================================
let g:airline_powerline_fonts=1 let g:airline_powerline_fonts=1
let g:airline_theme='raven' let g:airline_theme='raven'
colorscheme allomancer colorscheme allomancer
@ -88,7 +106,11 @@ let g:ale_fixers = {
\'*': ['remove_trailing_lines', 'trim_whitespace'], \'*': ['remove_trailing_lines', 'trim_whitespace'],
\} \}
" VIM SETTINGS " }}}
" ================================================================================
" VIM SETTINGS {{{
" ================================================================================
"
" set truecolor (neovim) " set truecolor (neovim)
set termguicolors set termguicolors
@ -127,7 +149,10 @@ set noshowmode
highlight ColorColumn ctermbg=magenta highlight ColorColumn ctermbg=magenta
call matchadd('ColorColumn', '\%81v', 100) call matchadd('ColorColumn', '\%81v', 100)
" KEYBINDINGS " }}}
" ================================================================================
" KEYBINDINGS {{{
" ================================================================================
" "
" set our leader key to space since with hjkl, space is largely useless " set our leader key to space since with hjkl, space is largely useless
let mapleader = "\<Space>" let mapleader = "\<Space>"
@ -167,3 +192,8 @@ nnoremap <C-s> :w<cr>
" open NERDtree with leader-e " open NERDtree with leader-e
nnoremap <leader>e :NERDTreeToggle<CR> nnoremap <leader>e :NERDTreeToggle<CR>
" }}}
" ================================================================================
" END
" ================================================================================