Skip to content
/ .vim Public
forked from jessfraz/.vim

My .vim dotfiles and configurations.

License

Notifications You must be signed in to change notification settings

alexhokl/.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.vim

My vim dot files. the .vimrc file is saved to vimrc.

This repository depends on neovim.

About

Installing

Just run the following commands via terminal to get perfectly set up:

Note: Make sure that python 3.6.1 or above is installed.

curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
sudo mv nvim.appimage /usr/bin/nvim
pip install setuptools
pip install --upgrade pynvim
pip3 install --upgrade pynvim
sudo npm install -g tree-sitter-cli
cd $HOME
git clone --recursive https://github.com/alexhokl/.vim.git .vim
cd $HOME/.vim
git submodule update --init
make install

To update the plugins (submodules)

make update-alexhokl

To enable more diagnostics with .NET

Configure $HOME/.omnisharp/omnisharp.json with the following.

{
  "RoslynExtensionsOptions": {
    "EnableAnalyzersSupport": true,
    "LocationPaths": [
    ]
  },
  "FormattingOptions": {
    "EnableEditorConfigSupport": true
  }
}

Language servers

Most of the language servers can be installed via mason.nvim except the following.

Debugging

Adapters of DAP can be installed via mason.nvim.

  • codelldb
  • dart-debug-adapter
  • debugpy
  • delve

The current exception is the combination of netcoredbg and Apple Silicon. In this case netcoredbg needs to be on the machine. Detailed steps can be found on https://github.com/Samsung/netcoredbg. Roughly the steps involve the following.

mkdir build
cd build
CC=clang CXX=clang++ cmake ..
make
sudo make install

Currently, debug adapter of flutter does not handle multiple connected devices yet. To get around the problem, flutter config --no-enable-web is used.

Pathogen

The vim dot files make use of the excellent Pathogen runtime path manager to install plugins and runtime files into their own private directiories.

Currently using version 2.4 of Pathogen

Contributing

Using the Makefile

You can use the Makefile to run a series of commands.

$ make help
install                        Sets up symlink for user and root .vimrc for vim and neovim.
README.md                      Generates and updates plugin info in README.md.
remove-submodule               Removes a git submodule (ex MODULE=bundle/nginx.vim).
update-pathogen                Updates pathogen.
update-plugins                 Updates all plugins.
update-alexhokl                Updates plugins added by me.
update                         Updates pathogen and all plugins.
To add a new plugin
git submodule add https://github.com/OmniSharp/omnisharp-vim ~/.vim/bundle/omnisharp-vim

Shortcuts

  • Ctrl-P: Find files
  • Ctrl-G: Live grep
  • Ctrl-B: Search git branches
  • Ctrl-A: Toggle the file sidebar
  • Ctrl-R: Refresh the file sidebar
  • Ctrl-N: Multiple cursor support
  • Ctrl-X: Switch to the next buffer
  • Ctrl-Z: Switch to the previous buffer
  • Ctrl-T: Open a floating terminal
  • <Space>: Center the screen to the cursor

There's a lot more if you hit ,? you can peruse all the ones connected to the leader ,

Plugins Used

About

My .vim dotfiles and configurations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 68.9%
  • Lua 26.5%
  • Makefile 4.6%