From 003b053fe7b11dcb845d29944657ad3ca36fba4e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 20 Mar 2019 14:27:54 +0100 Subject: [PATCH] add sectioning to vimrc --- .config/nvim/init.vim | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 43f80b4..a89b6ba 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 " Note: this installs it in the neovim folder, not the vim folder if empty(glob('~/.vim/autoload/plug.vim')) @@ -46,7 +61,10 @@ Plug 'Nequo/vim-allomancer' call plug#end() -" PLUGIN CONFIGURATION +" }}} +" ================================================================================ +" PLUGIN CONFIGURATION {{{ +" ================================================================================ let g:airline_powerline_fonts=1 let g:airline_theme='raven' colorscheme allomancer @@ -88,7 +106,11 @@ let g:ale_fixers = { \'*': ['remove_trailing_lines', 'trim_whitespace'], \} -" VIM SETTINGS +" }}} +" ================================================================================ +" VIM SETTINGS {{{ +" ================================================================================ +" " set truecolor (neovim) set termguicolors @@ -127,7 +149,10 @@ set noshowmode highlight ColorColumn ctermbg=magenta call matchadd('ColorColumn', '\%81v', 100) -" KEYBINDINGS +" }}} +" ================================================================================ +" KEYBINDINGS {{{ +" ================================================================================ " " set our leader key to space since with hjkl, space is largely useless let mapleader = "\" @@ -167,3 +192,8 @@ nnoremap :w " open NERDtree with leader-e nnoremap e :NERDTreeToggle + +" }}} +" ================================================================================ +" END +" ================================================================================