Skip to content

Instantly share code, notes, and snippets.

@jnbdz
Last active August 29, 2015 14:21
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 jnbdz/a683d77d4adefc693772 to your computer and use it in GitHub Desktop.
Save jnbdz/a683d77d4adefc693772 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible
syntax on
set relativenumber
set number
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
command Unsetnum :execute ':set relativenumber& | set number&'
command Resetnum :execute ':set relativenumber | set number'
set backspace=2 " make backspace work like most other apps (http://vim.wikia.com/wiki/Backspace_and_delete_problems)
set viminfo='10,\"100,:20,%,n~/.viminfo
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
let g:netrw_bufsettings = "noma nomod nu nobl nowrap ro rnu"
map <C-B> :w !php -l<CR>
set showcmd "to see partial commands as you type them
set ruler
filetype plugin on
set omnifunc=syntaxcomplete#Complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment