divyam3897 / vimrc

My vim configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing the vimrc with script:

  • Run the python3 script from the folder where you want the Vimrc to be, it should take care of the rest. Or you could install it manually.
python3 script.py

Installing the vimrc manually:

  • Clone the repository:
git clone https://github.com/divyam3897/vimrc.git
  • Add the following to your existing .vimrc
source ~/pathToVimrc/.vimrc
  • Open vim and enter the following in the Normal/Command mode for installing the plugins using vundle.
:PluginInstall

That's all to get it running 💥

#Plugins supported:

Color-Scheme: Solarized

#Cheat sheets for plugins for vimrc:

  • NerdTree:
Command Description
l Open NERDTree explorer
t Open file in new vim tab
i Open file in horizontal split
s Open file in vertical split
p Go to parent directory
ctrl+ww Switch between splits and NERDTree explorer
  • Fugitive:
Command Description
:Git [args] Run your git commands
:Gstatus Output of git-status in window
- :Git
cc :Gcommit
ca :Gcommit --amend
D :Gdiff
:Gpull git pull
:Gpush git push
  • NerdCommenter:
Command Description
cc comment selection
cs comment nicely
c$ comment current line
  • Ack.vim:
:Ack [options] {pattern} [{directories}]
  • Quick run:
<leader>r    # To execute a files
  • Close Tag:
Ctrl + _     # Searches and closes all tags

#More shortcuts:

Shortcuts Description
Ctrl + s Save current file and back to insert mode
,s :vsplit
,de Removes empty lines in a file
,t new tab
,w close tab
Shift + tab previous tab
tab next tab

About

My vim configuration


Languages

Language:Vim Script 68.0%Language:C++ 17.0%Language:Python 14.9%