GuyHoozdis / dotfiles

My mutha-effin' dotfiles, yo!
MIT License
0 stars 0 forks source link

Organizing and cleaning-up vimrc #11

Open GuyHoozdis opened 6 years ago

GuyHoozdis commented 6 years ago

I was thinking about someone's vimrc file that I saw that was using {{{ markers to organize sections.

Some Googling led me to this conversation.


The very last post in that thread was interesting too.

"# Folding

" Fold with ATX style headers - "# is H1, "## is H2, and so on
" vim:fdm=expr:fdl=0
" vim:fde=getline(v\:lnum)=~'^"#'?'>'.(matchend(getline(v\:lnum),'"#*')-1)\:'='
GuyHoozdis commented 3 weeks ago

More than just what is mentioned above. VIM has changed how it handles package management. The .vimrc I have in this repo still uses dein installer. It needs to be updated.

GuyHoozdis commented 3 weeks ago

This article covers the native package manager that was added in Vim 8.x.

This SO post is useful too.


$ mkdir -p .vim/pack/{plugins,colors,syntax}/{start,opt}

Screen Shot 2024-06-12 at 2 25 55 PM


Once that is setup you can install plugins like:

$ cd ~/.vim/pack/plugins/start
$ hub clone editorconfig/editorconfig-vim

The next time you open vim it will automatically load that plugin.