Walid-Shouman
11/21/2016 - 10:32 PM

tips and tricks for vim beginners

tips and tricks for vim beginners

Caution

This Gist is a WIP

Useful vimrc Setup

ctrl+p does autocompletion over a file.

Set the following into your .vimrc

filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" make left and right arrow keys change line.
" check: http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl#10.10
set whichwrap+=<,>,[,]