Skip to content

Latest commit

 

History

History
94 lines (64 loc) · 5.02 KB

README.md

File metadata and controls

94 lines (64 loc) · 5.02 KB

The Ultimate vimrc

Originally forked from https://github.com/amix/vimrc, then tuned for my own needs. All credits go to @amix.

Enjoy!

// By the way, most VIM things work in cyrilic mode, heh ;-)

Dislaimer

Notice, that many VIMers say that it's not a good way to learn vim or improve your skills starting with fullfledged vim with all bells and whistles. They say that you need to start with vanilla vim, learning and adding things step by step.

My way is different but I'm not a big VIM guru (however I'm a fan of it and use it a lot for many years).

How to install?

Run in your shell:

curl https://raw.githubusercontent.com/NikolayS/vimrc/master/quickinstall_awesome.sh | bash

Better with tmux (see http://github.com/NikolayS/tmux):

curl https://raw.githubusercontent.com/NikolayS/tmux/master/quickinstall.sh | bash
curl https://raw.githubusercontent.com/NikolayS/vimrc/master/quickinstall_awesome.sh | bash

The text below is original from https://github.com/amix/vimrc

Included Plugins

  • pathogen.vim: Manages the runtime path of the plugins
  • snipMate.vim: snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim
  • bufexplorer.zip: Buffer Explorer / Browser. This plugin can be opened with <leader+o>
  • NERD Tree: A tree explorer plugin for vim
  • ack.vim: Vim plugin for the Perl module / CLI script 'ack'
  • ag.vim: A much faster Ack
  • ctrlp.vim: Fuzzy file, buffer, mru and tag finder. In my config it's mapped to <Ctrl+F>, because <Ctrl+P> is used by YankRing
  • mru.vim: Plugin to manage Most Recently Used (MRU) files. Includes my own fork which adds syntax highlighting to MRU. This plugin can be opened with <leader+f>
  • open_file_under_cursor.vim: Open file under cursor when pressing gf
  • vim-indent-object: Defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts
  • vim-multiple-cursors: Sublime Text style multiple selections for Vim, CTRL+N is remapped to CTRL+S (due to YankRing)
  • vim-expand-region: Allows you to visually select increasingly larger regions of text using the same key combination.
  • vim-fugitive: A Git wrapper so awesome, it should be illegal
  • goyo.vim and vim-zenroom2: Remove all clutter and focus only on the essential. Similar to iA Writer or Write Room Read more here
  • vim-commentary: Comment stuff out. Use gcc to comment out a line (takes a count), gc to comment out the target of a motion. gcu uncomments a set of adjacent commented lines.
  • syntastic: Syntax checking hacks for vim
  • vim-yankstack: Maintains a history of previous yanks, changes and deletes
  • lightline.vim: A light and configurable statusline/tabline for Vim

Included color schemes

Included modes

How to include your own stuff?

After you have installed the setup you can create ~/.vim_runtime/my_configs.vim to fill in any configurations that are important for you. For instance, my my_configs.vim looks like this:

~/.vim_runtime (master)> cat my_configs.vim
map <leader>ct :cd ~/Desktop/Todoist/todoist<cr>
map <leader>cw :cd ~/Desktop/Wedoist/wedoist<cr> 

You can also install your own plugins, for instance, via pathogen we can install vim-rails:

cd ~/.vim_runtime
git clone git://github.com/tpope/vim-rails.git sources_non_forked/vim-rails

Now you have vim-rails installed ;-)

How to uninstall

Do following:

  • Remove ~/.vim_runtime
  • Remove any lines that refernce .vim_runtime in your ~/.vimrc