Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.vimrc
let mapleader=","
syntax on
set bs=2
set background=dark
set number
"tabs as x spaces and smart indent
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
set textwidth=82
"searching
set hlsearch
set incsearch
"show commands
set showcmd
"brackets
set showmatch
set mat=2
"toggle nerdtree
nmap <F5> :NERDTreeToggle<CR>
"toggle line numbers
nmap <F6> :set invnumber<CR>
"grep name under cursor
nnoremap <silent> <F7> :Rgrep<CR>
"toogle nopaste
set pastetoggle=<F8>
"jslint stuff
nmap <F12> :w<CR>:make<CR>:cope<CR>
"disable ex mode
map Q <Nop>
filetype plugin on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment