Guest User

Untitled

a guest
Jun 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.68 KB | None | 0 0
  1. set smartindent
  2. set shiftwidth=4
  3. set tabstop=4
  4. set expandtab
  5. set tw=80
  6. syntax on
  7. set formatoptions+=r
  8. set cinoptions=:0g0
  9. filetype plugin on
  10.  
  11. set colorcolumn=+1
  12. highlight ColorColumn ctermbg=lightgrey guibg=lightgrey
  13.  
  14. autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e
  15. au BufNewFile,BufRead *.mips set syntax=mips
  16.  
  17. nnoremap <D-i> gg=G
  18. inoremap <D-i> <Esc>gg=Gi
  19. vnoremap <D-i> =
  20.  
  21. inoremap <CR> foo
  22. ""inoremap <CR> <C-R>=<SID>BackslashNewline()<CR>
  23.  
  24. ""function <SID>BackslashNewline()
  25.     "let line = getline('.')
  26.     "let col = col('$')
  27.  
  28.     "if line[(col)] == '\'
  29.     ""return "\<ESC>o\\<ESC>i"
  30.     "else
  31.     "    return "<ESC>oi"
  32.     "endif
  33.  
  34. ""endfunction
Add Comment
Please, Sign In to add comment