Skip to content

Commit

Permalink
Vim/GVim updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Sep 23, 2010
1 parent bf6b695 commit a12e1c9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
10 changes: 8 additions & 2 deletions gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ if &background == "dark"
hi normal guifg=#eeeeee guibg=black
hi cursor guifg=#d7ff00
hi lcursor guifg=#00cd00
set transp=8
if has("gui_macvim")
set transp=8
endif
endif

set guifont=Terminus:h14
if has("gui_macvim")
set guifont=Terminus:h14
else
set guifont=Lucida\ Console
endif
set go=cegt
set cursorcolumn
21 changes: 21 additions & 0 deletions vim/snippets/perl.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
snippet #!
#!/usr/bin/perl

snippet !!
#!/usr/bin/env perl
# -*- coding: utf-8 -*-

# Copyright (C) 2010 ${1:`g:snips_author`}
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

use warnings;
use strict;

# Hash Pointer
snippet .
=>
Expand Down
4 changes: 3 additions & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ endfunction

autocmd BufNewFile,BufRead *.txt set filetype=human
autocmd BufNewFile,BufRead *.json set filetype=javascript
autocmd BufNewFile,BufRead *.sieve set filetype=sieve
autocmd FileType gitcommit,human,mail,rst set formatoptions=1aconrtq textwidth=80 "fo+=w textwidth=72
autocmd FileType c set formatoptions+=ro
autocmd FileType perl set smartindent
Expand Down Expand Up @@ -171,7 +172,8 @@ func! SwitchToUTF8()
e! ++enc=utf-8
endfunc


"Ctrl+q as Insert/Normal mode toggle
inoremap ii <ESC>
"
" Specific plug-in configuration
Expand Down

0 comments on commit a12e1c9

Please sign in to comment.