Vim plugins

Normal mode

<H VJ K^ L>


" Auto reload .vimrc

autocmd! bufwritepost .vimrc source %

" Better copy & paste from outside vim

set pastetoggle=<F2>

set clipboard=unnamed

" Mouse to locate cursor

set mouse=a

Bind key example

" rebind <Leader> key

let mapleader=","

"Quicksave command ( Ctrl-Z to :w )

noremap <C-Z> :update<CR>

inoremap <C-Z> <C-C>:update<CR>

vnoremap <C-Z> <C-O>:update<CR>

"Quick quit command ( ,e to :q )

noremap <Leader>e :quit<CR>


File explorer and tabs

nmap <silent> <c-f> :NERDTreeToggle<CR>

nmap <silent> <c-t> :tabnew<CR>
nmap <silent> <a-right> :tabnext<CR>
nmap <silent> <a-left> :tabprev<CR>

double click/enter/o : open file

i : open in split
s : open in vsplit

B : toggle bookmark
:Bookmark <bookmarkname>

:pwd : show current working directory
cd : choose change
c : change tree root

q : quit


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s