Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

minimal C config for vim

  • Loading branch information...
commit d7510c459e0d25df1dba20b0851435471d05266b 1 parent 1ee8609
John Trammell authored

Showing 1 changed file with 27 additions and 0 deletions. Show diff stats Hide diff stats

  1. +27 0 ftplugin/c/jotr.vim
27 ftplugin/c/jotr.vim
... ... @@ -0,0 +1,27 @@
  1 +" my filetype plugin for C
  2 +
  3 +" idempotent
  4 +if exists("b:loaded_ftplugin_c_jotr")
  5 + finish
  6 +endif
  7 +let b:loaded_ftplugin_c_jotr = 1
  8 +
  9 +setlocal autoindent
  10 +setlocal expandtab
  11 +setlocal foldmethod=syntax
  12 +setlocal tabstop=4
  13 +setlocal textwidth=78
  14 +setlocal list
  15 +setlocal listchars=trail:-,tab:\.\
  16 +
  17 +let maplocalleader = ","
  18 +
  19 +function! StandardCHeader()
  20 + put =' * Author : John Trammell <johntrammell@gmail.com>'
  21 + put =' * Section : 0004'
  22 + put =strftime(' * Date : %Y-%m-%d')
  23 +endfunction
  24 +
  25 +" mappings
  26 +nmap <LocalLeader>h :call StandardCHeader()<CR>
  27 +nmap <LocalLeader>e :call PerlMathEval()<CR>

0 comments on commit d7510c4

Please sign in to comment.
Something went wrong with that request. Please try again.