Skip to content

Commit

Permalink
Add golang prefs for vim
Browse files Browse the repository at this point in the history
  • Loading branch information
mal committed Feb 16, 2016
1 parent 4c5b6f9 commit dd7497f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ set number
set ruler
set scrolloff=3
set shell=sh
set shiftwidth=4
set shiftwidth=2
set showcmd
set smartcase
set smartindent
set softtabstop=4
set softtabstop=2
set splitbelow
set splitright
set tabstop=4
set tabstop=2
set textwidth=72
set ttyfast
set ttymouse=xterm2
Expand Down Expand Up @@ -165,17 +165,19 @@ au filetype *
" filetype comments
au filetype autohotkey,clojure
\ call s:comments(';')
au filetype c,cpp,java,javascript,html,scss
au filetype c,cpp,go,java,javascript,html,scss
\ call s:comments('\/\/')
au filetype plsql,sql
\ call s:comments('--')
au filetype vim
\ call s:comments('"')

" filetype tweaks
au filetype autohotkey,clojure,coffee,plsql,ruby,scss,sh,sql,vim
\ setl sw=2 sts=2 ts=2
au filetype c,cpp,go,java,php,python
\ setl sw=4 sts=4 ts=4
au filetype make
\ setl noet sw=8 sts=8 ts=8
\ setl sw=8 sts=8 ts=8
au filetype go,make
\ setl noet
au filetype markdown
\ setl tw=79

0 comments on commit dd7497f

Please sign in to comment.