A simple but powerful vim configuration, continually used and tweaked since 2017.
docker run -it --rm apemost/dotfiles vimYou can clone this repository wherever you want. To install, run command:
git clone https://github.com/apemost/vimrc.git && cd vimrc && source bootstrap.shTo update, cd into your local vimrc repository and then:
source bootstrap.shWe will automatically setting up the vim-plug plugin manager when you open vim for the first time.
Then, you can:
- run
:PlugInstallto install the plugins - run
:PlugUpdateto update the plugins - see tutorial page to learn the basics of vim-plug
To conveniently add your own customization, copy vimrc.preload
to ~/.vimrc.preload, and vimrc.afterload to ~/.vimrc.afterlaod.
Edit ~/.vimrc.preload:
let g:custom_background = 'light'
let g:custom_colorscheme = 'solarized'The completion and lint plugins are disabled by default. To enable them, edit ~/.vimrc.preload:
let g:custom_completion_plugin = 'youcompleteme'
let g:custom_lint_plugin = 'ale'Edit ~/.vimrc.preload:
let g:custom_plugins = [
\ ['NLKNguyen/papercolor-theme'],
\ ]Reload .vimrc and run :PlugInstall.
Edit ~/.vimrc.preload:
let g:custom_disabled_plugins = [
\ 'sneak',
\ 'go',
\ ]Link the ideavimrc to ~/.ideavimrc:
ln -s "$PWD/ideavimrc" ~/.ideavimrcOr:
cp ideavimrc ~/.ideavimrcCopy the content of vscodevim.json to your VS Code configuration file such as settings.json.
To bind the o key for opening files in VS Code, add this entry to your keybindings.json:
{
"key": "o",
"command": "list.select",
"when": "listFocus && !inputFocus && !explorerResourceIsFolder"
}Run rm ~/.vimrc.
You can specify any mapping for Sneak (see
:help sneak). By the way:clis equivalent tos, andccis equivalent toS.
See https://github.com/justinmk/vim-sneak#how-dare-you-remap-s
To disable Sneak, see Disable built-in plugins
All contributions are welcome! If you would like to hack on this work, please follow these steps:
- Fork this repository
- Make your changes
- Submit a pull request
