Skip to content

synapticvoid/vim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-config

Why, oh why?

Because vim rocks, but you have to heavily configure it to make it a decent text editor.

Heartlessly stealed and recomposed from:

What to do

# install dependencies
sudo apt-get install vim exuberant-ctags silversearcher-ag

# to use yapf (Python Formatter)
sudo pip install yapf

# clone project and link to vim
git clone https://github.com/synapticvoid/vim-config.git $HOME/.vim
ln -s $HOME/.vim/.vimrc $HOME/.vimrc

Shortcuts

General

  • key is remapped to ,
  • / is also mapped to jj (to keep the hand positionned on the hjkl keys)

Plugins

  • <Leader> + t = Ctrl-P searching all filenames under current directory (recursive)
  • ; = Ctrl-P in current buffers
  • <Leader> + e = Toggle NERDTree (directory tree)
  • F8 = Toggle Tagbar (side bar with classes / functions structure)
  • <Leader> + y = Format python file using yapf

Navigation

  • <Ctrl> + n = Next buffer
  • <Ctrl> + p = Previous buffer

Edit

  • <Leader> + l = Toggle line number display
  • <Leader> + r = Toggle relative line number display
  • <Leader> + o = Toggle paste mode

About

vim configuration to have a decent cross-language IDE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published