set ic
“set t_Co=256
set autoindent
set nocompatible
set ruler
set showcmd
set laststatus=2
“set statusline=%=%f\ \”%F\”\ %m%R\ [%4l(%3p%%):%3c-(0x%2B,%2b),%Y,%{&encoding}]
set statusline=%=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
“colors default
syntax on
set hlsearch
set incsearch
set nowrap
set listchars+=precedes:<,extends:>
“set sidescroll=5
“set sidescrolloff=5
set backspace=indent,eol,start
“set nobackup
filetype plugin indent on
” this makes the mouse paste a block of text without formatting it
” (good for code)
map <MouseMiddle> <esc>”*p
set showfulltag
” Wrap on these
set whichwrap+=<,>,[,]
” Use the cool tab complete menu
set wildmenu
set wildignore=*.o,*~
” No icky toolbar, menu or scrollbars in the GUI
if has(‘gui’)
set guioptions-=m
set guioptions-=T
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
end
” Do clever indent things. Don’t make a # force column zero.
set autoindent
set smartindent
inoremap # X<BS>#
” Enable filetype settings
filetype on
filetype plugin on
filetype indent on
” Include $HOME in cdpath
let &cdpath=’,’.expand(“$HOME”)
” turn off any existing search
au VimEnter * nohls
:nmap <C-p> :tabprevious<cr>
:nmap <C-n> :tabnext<cr>
“:map <C-S-tab> :tabprevious<cr>
“:map <C-tab> :tabnext<cr>
“:imap <C-S-tab> <ESC>:tabprevious<cr>i
“:imap <C-tab> <ESC>:tabnext<cr>i
“:nmap <C-w> :tabclose<cr>
“:imap <C-t> <ESC>:tabnew<cr>
:map <C-S-n> <ESC>:tabnew<cr>
“set guifont=Monaco:h9
“set guifont=Terminus/12/-1/5/50/0/0/0/0/0
colorscheme wombat
“set guifont=Consolas:h11:cANSI
“set guifont=”Monaco 12″
“set guifont=Consolas\ 12
set guifont=Monaco\ 10
“colorscheme zenburn
function! VHDLCommentMap()
vmap ,c :s/^/–/
vmap ,d :s/^–//
endfunction
function! VerilogCommentMap()
vmap ,c :s/^/\/\//
vmap ,d :s/^\/\///
endfunction
function! PythonCommentMap()
vmap ,c :s/^/#/
vmap ,d :s/^#//
endfunction
autocmd FileType vhdl call VHDLCommentMap()
autocmd FileType verilog,cpp,c call VerilogCommentMap()
autocmd FileType tcl,perl,python,ruby call PythonCommentMap()
“function RubyEndToken ()
“let current_line = getline( ‘.’ )
“let braces_at_end = ‘{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
“let stuff_without_do = ‘^\s*\(class\|if\|unless\|begin\|case\|for\|module\|while\|until\|def\)’
“let with_do = ‘do\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
“
“if match(current_line, braces_at_end) >= 0
“return “\<CR>}\<C-O>O”
“elseif match(current_line, stuff_without_do) >= 0
“return “\<CR>end\<C-O>O”
“elseif match(current_line, with_do) >= 0
“return “\<CR>end\<C-O>O”
“else
“return “\<CR>”
“endif
“endfunction
“function UseRubyIndent ()
“setlocal tabstop=8
“setlocal softtabstop=2
“setlocal shiftwidth=2
“setlocal expandtab
“imap <buffer> <CR> <C-R>=RubyEndToken()<CR>
“endfunction
“autocmd FileType ruby,eruby call UseRubyIndent()
set wrap
“windows specific
set ic
“set t_Co=256
set autoindent
set nocompatible
set ruler
set showcmd
set laststatus=2
“set statusline=%=%f\ \”%F\”\ %m%R\ [%4l(%3p%%):%3c-(0x%2B,%2b),%Y,%{&encoding}]
set statusline=%=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
“colors default
syntax on
set hlsearch
set incsearch
set nowrap
set listchars+=precedes:<,extends:>
“set sidescroll=5
“set sidescrolloff=5
set backspace=indent,eol,start
“set nobackup
filetype plugin indent on
” this makes the mouse paste a block of text without formatting it
” (good for code)
map <MouseMiddle> <esc>”*p
set showfulltag
” Wrap on these
set whichwrap+=<,>,[,]
” Use the cool tab complete menu
set wildmenu
set wildignore=*.o,*~
” No icky toolbar, menu or scrollbars in the GUI
if has(‘gui’)
set guioptions-=m
set guioptions-=T
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
end
” Do clever indent things. Don’t make a # force column zero.
set autoindent
set smartindent
inoremap # X<BS>#
” Enable filetype settings
filetype on
filetype plugin on
filetype indent on
” Include $HOME in cdpath
let &cdpath=’,’.expand(“$HOME”)
” turn off any existing search
au VimEnter * nohls
:nmap <C-p> :tabprevious<cr>
:nmap <C-n> :tabnext<cr>
“:map <C-S-tab> :tabprevious<cr>
“:map <C-tab> :tabnext<cr>
“:imap <C-S-tab> <ESC>:tabprevious<cr>i
“:imap <C-tab> <ESC>:tabnext<cr>i
“:nmap <C-w> :tabclose<cr>
“:imap <C-t> <ESC>:tabnew<cr>
:map <C-S-n> <ESC>:tabnew<cr>
“set guifont=Monaco:h9
“set guifont=Terminus/12/-1/5/50/0/0/0/0/0
colorscheme wombat
“set guifont=Consolas:h11:cANSI
“set guifont=”Monaco 12″
“set guifont=Consolas\ 12
set guifont=Monaco\ 10
“colorscheme zenburn
function! VHDLCommentMap()
vmap ,c :s/^/–/
vmap ,d :s/^–//
endfunction
function! VerilogCommentMap()
vmap ,c :s/^/\/\//
vmap ,d :s/^\/\///
endfunction
function! PythonCommentMap()
vmap ,c :s/^/#/
vmap ,d :s/^#//
endfunction
autocmd FileType vhdl call VHDLCommentMap()
autocmd FileType verilog,cpp,c call VerilogCommentMap()
autocmd FileType tcl,perl,python,ruby call PythonCommentMap()
“function RubyEndToken ()
“let current_line = getline( ‘.’ )
“let braces_at_end = ‘{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
“let stuff_without_do = ‘^\s*\(class\|if\|unless\|begin\|case\|for\|module\|while\|until\|def\)’
“let with_do = ‘do\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
“
“if match(current_line, braces_at_end) >= 0
“return “\<CR>}\<C-O>O”
“elseif match(current_line, stuff_without_do) >= 0
“return “\<CR>end\<C-O>O”
“elseif match(current_line, with_do) >= 0
“return “\<CR>end\<C-O>O”
“else
“return “\<CR>”
“endif
“endfunction
“function UseRubyIndent ()
“setlocal tabstop=8
“setlocal softtabstop=2
“setlocal shiftwidth=2
“setlocal expandtab
“imap <buffer> <CR> <C-R>=RubyEndToken()<CR>
“endfunction
“autocmd FileType ruby,eruby call UseRubyIndent()
set wrap
“windows specific
“syntax enable
let mysyntaxfile = “C:/Documents and Settings/Administrator/railcasts.vim”
“let mysyntaxfile = “C:/Documents and Settings/Administrator/inkpot.vim”
“au BufRead,BufNewFile *.v set filetype=verilog
“au! Syntax VERILOG source “C:/Documents and Settings/Administrator/verilog.vim”
source C:\Documents and Settings\Administrator\verilog.vim
” This file is located at: C:\Documents and Settings\<username>\_vimrc
:colorscheme pablo
se nocompatible
se ic
se scs
se bs=2
se ts=4
se et
se ai
se showmatch
autocmd BufReadPost *
\ if line(“‘\”") > 0 && line(“‘\”") <= line(“$”) |
\ exe “normal g`\”" |
\ endif
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
se laststatus=2
se hlsearch
se is
se background=dark
” Setup 80 column word wrap
set wrap
set linebreak
set textwidth=80
” No menus and no toolbar
set guioptions-=m
set guioptions-=T
” No menus and no toolbar
set guioptions-=m
set guioptions-=T
“syntax enable
let mysyntaxfile = “C:/Documents and Settings/Administrator/railcasts.vim”
“let mysyntaxfile = “C:/Documents and Settings/Administrator/inkpot.vim”
“source “C:/Documents and Settings/Administrator/verilog.vim”
“au BufRead,BufNewFile *.v set filetype=verilog
“au! Syntax VERILOG source “C:/Documents and Settings/Administrator/verilog.vim”
source C:\Documents and Settings\Administrator\verilog.vim
augroup filetype
au! BufRead,BufNewFile *.v set filetype=verilog
au! BufRead,BufNewFile *.vhd,*.vhdl set filetype=vhdl
augroup END
syn on
function! VHDLCommentMap()
vmap ,c :s/^/–/
vmap ,d :s/^–//
endfunction
function! VerilogCommentMap()
vmap ,c :s/^/\/\//
vmap ,d :s/^\/\///
endfunction
function! PythonCommentMap()
vmap ,c :s/^/#/
vmap ,d :s/^#//
endfunction
autocmd FileType vhdl call VHDLCommentMap()
autocmd FileType verilog,cpp,c call VerilogCommentMap()
autocmd FileType tcl,perl,python call PythonCommentMap()
“:filetype indent on
“filetype plugin indent on
“coloring
” Consolas 15 point, ansi character set
set guifont=Consolas:h13:cANSI
highlight Normal guifg=White guibg=Black
highlight Cursor guifg=Black guibg=Yellow
highlight Keyword guifg=#FF6600
highlight Define guifg=#FF6600
highlight Comment guifg=#9933CC
highlight Type guifg=White gui=NONE
highlight rubySymbol guifg=#339999 gui=NONE
highlight Identifier guifg=White gui=NONE
highlight rubyStringDelimiter guifg=#66FF00
highlight rubyInterpolation guifg=White
highlight rubyPseudoVariable guifg=#339999
highlight Constant guifg=#FFEE98
highlight Function guifg=#FFCC00 gui=NONE
highlight Include guifg=#FFCC00 gui=NONE
highlight Statement guifg=#FF6600 gui=NONE
highlight String guifg=#66FF00
highlight Search guibg=White
function RubyEndToken ()
let current_line = getline( ‘.’ )
let braces_at_end = ‘{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
let stuff_without_do = ‘^\s*\(class\|if\|unless\|begin\|case\|for\|module\|while\|until\|def\)’
let with_do = ‘do\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
if match(current_line, braces_at_end) >= 0
return “\<CR>}\<C-O>O”
elseif match(current_line, stuff_without_do) >= 0
return “\<CR>end\<C-O>O”
elseif match(current_line, with_do) >= 0
return “\<CR>end\<C-O>O”
else
return “\<CR>”
endif
endfunction
function UseRubyIndent ()
setlocal tabstop=8
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
imap <buffer> <CR> <C-R>=RubyEndToken()<CR>
endfunction
autocmd FileType ruby,eruby call UseRubyIndent()
” This file is located at: C:\Documents and Settings\<username>\_vimrc
:colorscheme pablo
se nocompatible
se ic
se scs
se bs=2
se ts=4
se et
se ai
se showmatch
autocmd BufReadPost *
\ if line(“‘\”") > 0 && line(“‘\”") <= line(“$”) |
\ exe “normal g`\”" |
\ endif
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
se laststatus=2
se hlsearch
se is
se background=dark
” Setup 80 column word wrap
set wrap
set linebreak
set textwidth=80
” No menus and no toolbar
set guioptions-=m
set guioptions-=T
” No menus and no toolbar
set guioptions-=m
set guioptions-=T
“syntax enable
let mysyntaxfile = “C:/Documents and Settings/Administrator/railcasts.vim”
“let mysyntaxfile = “C:/Documents and Settings/Administrator/inkpot.vim”
“source “C:/Documents and Settings/Administrator/verilog.vim”
“au BufRead,BufNewFile *.v set filetype=verilog
“au! Syntax VERILOG source “C:/Documents and Settings/Administrator/verilog.vim”
source C:\Documents and Settings\Administrator\verilog.vim
augroup filetype
au! BufRead,BufNewFile *.v set filetype=verilog
au! BufRead,BufNewFile *.vhd,*.vhdl set filetype=vhdl
augroup END
syn on
function! VHDLCommentMap()
vmap ,c :s/^/–/
vmap ,d :s/^–//
endfunction
function! VerilogCommentMap()
vmap ,c :s/^/\/\//
vmap ,d :s/^\/\///
endfunction
function! PythonCommentMap()
vmap ,c :s/^/#/
vmap ,d :s/^#//
endfunction
autocmd FileType vhdl call VHDLCommentMap()
autocmd FileType verilog,cpp,c call VerilogCommentMap()
autocmd FileType tcl,perl,python call PythonCommentMap()
“:filetype indent on
“filetype plugin indent on
“coloring
” Consolas 15 point, ansi character set
set guifont=Consolas:h13:cANSI
highlight Normal guifg=White guibg=Black
highlight Cursor guifg=Black guibg=Yellow
highlight Keyword guifg=#FF6600
highlight Define guifg=#FF6600
highlight Comment guifg=#9933CC
highlight Type guifg=White gui=NONE
highlight rubySymbol guifg=#339999 gui=NONE
highlight Identifier guifg=White gui=NONE
highlight rubyStringDelimiter guifg=#66FF00
highlight rubyInterpolation guifg=White
highlight rubyPseudoVariable guifg=#339999
highlight Constant guifg=#FFEE98
highlight Function guifg=#FFCC00 gui=NONE
highlight Include guifg=#FFCC00 gui=NONE
highlight Statement guifg=#FF6600 gui=NONE
highlight String guifg=#66FF00
highlight Search guibg=White
function RubyEndToken ()
let current_line = getline( ‘.’ )
let braces_at_end = ‘{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
let stuff_without_do = ‘^\s*\(class\|if\|unless\|begin\|case\|for\|module\|while\|until\|def\)’
let with_do = ‘do\s*\(|\(,\|\s\|\w\)*|\s*\)\?$’
if match(current_line, braces_at_end) >= 0
return “\<CR>}\<C-O>O”
elseif match(current_line, stuff_without_do) >= 0
return “\<CR>end\<C-O>O”
elseif match(current_line, with_do) >= 0
return “\<CR>end\<C-O>O”
else
return “\<CR>”
endif
endfunction
function UseRubyIndent ()
setlocal tabstop=8
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
imap <buffer> <CR> <C-R>=RubyEndToken()<CR>
endfunction
autocmd FileType ruby,eruby call UseRubyIndent()

