Vim

CURRENT VIM GRIPES AS OF 2016-12-16

  1. I struggle to open multiple files at the same time, when I do a fuzzy search , I want to open multiple files from there
  2. Sometimes I have something copied to my vim paste, I want to paste it inside of a “, but there is already something in there.. I wonder what the best command to do that would be.

Debugging WHY A FUCKING SETTING ISNT WORKING

I had this case where I would open vim, a setting wouldn’t take. Then, I would re-source my vimrc and the setting would take. It was SUPER FUCKING ANNOYING. These two commands save you.

Debugging VIMRC functions

Tells you the exact place where that option was set

:verbose set formatoptions

Tells you when files are loaded

:scriptnames

Anything I want loaded after everything…

~/.vim/after/plugin/stuffThatGetsSetAfterPlugins.vim

Ctags

Ctags is like a table of contents.

Ctags file should live in the git folder.

ctrl + { goes into the cave ctrl + o goes out of the cave

gf is global find

https://www.dropbox.com/sh/rr03fbkt20rjbkv/AADCFvfBi1D2JZ10wO-tj8KBa?dl=0&preview=Intelligent+Navigation+With+ctags.mp4

javascript ctags

Need to automate the generation of ctags, then I also need to be able to use them which it doesn’t appear that I am able to do.

https://github.com/ramitos/jsctags —> generates a list of ctags in a javascript file — currently installed globally with npm

Possible replacement to jsctags https://dance.computer.dance/posts/2015/04/using-ctags-on-modern-javascript.html

Generate correct ctags list

$ ctags -R .

Be able to find the tags file Autogenerate ctags list when stuff changes

Post Content