Skip to content

Instantly share code, notes, and snippets.

@dacbd
Last active October 12, 2015 20:08
Show Gist options
  • Select an option

  • Save dacbd/4081237 to your computer and use it in GitHub Desktop.

Select an option

Save dacbd/4081237 to your computer and use it in GitHub Desktop.
vim
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
colorscheme darkerdesert
syntax on
filetype on
au BufWinEnter,BufRead,BufNewFile *.go set filetype=go
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=1
au BufWinEnter,BufRead,BufNewFile *.*lua set syntax=lua
au BufReadPost *.*lua set syntax=lua
au BufReadPost *.jade set syntax=jade
au BufReadPost *.mk set syntax=mkd
autocmd BufNewFile,BufRead *.json set ft=javascript
set pastetoggle=<F2>
set ruler
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
call pathogen#infect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment