170

GitHub - jessfraz/.vim: My .vim dotfiles and configurations.

 6 years ago
source link: https://github.com/jessfraz/.vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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

About

Installing

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

$ cd ~/
$ git clone --recursive https://github.com/jessfraz/.vim.git .vim
$ ln -sf $HOME/.vim/vimrc $HOME/.vimrc
$ cd $HOME/.vim
$ git submodule update --init

# To use the same configuration for nvim (neovim)
$ mkdir -p ~/.config/nvim
$ ln -snf ~/.vimrc ~/.config/nvim/init.vim
$ mkdir -p ~/.local/share/nvim
$ ln -snf ~/.vim ~/.local/share/nvim/site

You will also want a Nerd Font.

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                         Updates pathogen and all plugins.

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


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK