🔗 How To Learn Vim: A Four Week Plan
Install vim with lua
brew install vim --with-lua brew install macvim --with-cscope --with-lua brew linkapps macvim
🔗 Vim 8
🔗 Install from source
Display your file system as a tree, enabling you to easily explore and open various files and directories.
Easily toggle the comment status of various amounts of code based on your key mappings.
Glide through often-typed code, or snippets, that you can quickly insert into your file. Update variables as you type.
Find full paths to files, buffers, and tags. Open multiple files at once and create new files or directories.
Check your syntax and be notified about errors before compiling your code or executing your script.
🔗 Spell checking
Enable spell checking
set spell set spelllang=en,af
Compare two files
vimdiff file1 file2
Use vimdiff with git
git config --global diff.tool vimdiff
Put changes under the cursor into the other file
Change under the cursor is replaced by the content of the other file
Jump to the next / previous diff
🔗 iTerm2 cmd-click
cmd-click in iTerm2 to open file in vi
Preferences -> Profiles -> Advanced Semantic History > Run coprocess.. echo vim \1 +\2