You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
759 B

set nocompatible
colorscheme koehler
"set guifont=DejaVu\ Sans\ Mono\ 7
set guifont=Terminus\ 7
filetype indent on
syntax on
set nu!
set hlsearch
if has("autocmd")
" OpenSDE
autocmd BufEnter *.in,*.conf,parse-config* set filetype=sh
autocmd BufEnter *.h set filetype=c
autocmd filetype c source ~/.vim/c.vim
autocmd filetype sh source ~/.vim/sh.vim
autocmd filetype xml source ~/.vim/xml.vim
autocmd filetype lua source ~/.vim/lua.vim
" autocmd filetype python source ~/.vim/python.vim
endif
" , #perl # comments
map ,# :s/^/#/<CR>
" ,/ C/C++/C#/Java // comments
map ,/ :s/^/\/\//<CR>
" ,< HTML comment
map ,< :s/^\(.*\)$/<!-- \1 -->/<CR><Esc>:nohlsearch<CR>
" c++ java style comments
map ,* :s/^\(.*\)$/\/\* \1 \*\//<CR><Esc>:nohlsearch<CR>