Skip to content

Instantly share code, notes, and snippets.

@ponceta
Created May 19, 2015 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponceta/9c22efcc115adaf0379c to your computer and use it in GitHub Desktop.
Save ponceta/9c22efcc115adaf0379c to your computer and use it in GitHub Desktop.
.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