Recent Changes - Search:

edit SideBar


Firefox 2
Get Thunderbird!

Vim /

Vimrc

.vimrc dosyam.

" An example for a vimrc file.
" Son Degisiklik : 2005.10.14 14:13
"
" Maintainer:	Bram Moolenaar <[email protected]>
" Last change:	2002 May 28
"
" To use it, copy it to
"     for Unix and OS/2:  ~/.vimrc
"	      for Amiga:  s:.vimrc
"  for MS-DOS and Win32:  $VIM\_vimrc
"	    for OpenVMS:  sys$login:.vimrc

" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
  finish
endif

" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

set autoindent		" always set autoindenting on
if has("vms")
  set nobackup		" do not keep a backup file, use versions instead
else
  set backup		" keep a backup file
endif
set history=50		" keep 50 lines of command line history
set ruler		" show the cursor position all the time
set showcmd		" display incomplete commands
set incsearch		" do incremental searching

" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")

" Don't use Ex mode, use Q for formatting
map Q gq

" This is an alternative that also works in block mode, but the deleted
" text is lost and it only works for putting the current register.
"vnoremap p "_dp

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

" Only do this part when compiled with support for autocommands.
if has("autocmd")

  " Enable file type detection.
  " Use the default filetype settings, so that mail gets 'tw' set to 72,
  " 'cindent' is on in C files, etc.
  " Also load indent files, to automatically do language-dependent indenting.
  filetype plugin indent on

  " For all text files set 'textwidth' to 78 characters.
  autocmd FileType text setlocal textwidth=78

  " When editing a file, always jump to the last known cursor position.
  " Don't do it when the position is invalid or when inside an event handler
  " (happens when dropping a file on gvim).
  autocmd BufReadPost *
    \ if line("'\"") > 0 && line("'\"") <= line("$") |
    \   exe "normal g`\"" |
    \ endif

endif " has("autocmd")


" Necessary. This setting tells vim to load latex-suite
" when a tex file opened.
"  filetype plugin on
" Optional. This enables automatic indentation as you
" type.
"  filetype indent on
"
"


"set guifont=-Adobe-Courier-Medium-R-Normal--14-120-75-75-M-70-ISO8859-9  
"set guifont=-Adobe-Courier-Medium-R-Normal--14-140-75-75-M-90-ISO8859-9
"set guifont=-adobe-courier-medium-r-normal-*-*-120-*-*-m-*-iso8859-9
"set guifont=-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-9

"colorscheme navajo-night
colorscheme darkblue
"set lines=45
"set columns=95
set sw=2
set ts=2
set nu
"------------------------------------
"Yeni eklenenler:
"------------------------------------
" CTRL-A herseyi secsin
map <C-a> 1GvG$

"colorscheme darkblue
set cindent
set showmatch

" ignore case when searching 
set ignorecase
set smartcase

"--Buffers
nmap <F2> :sp<CR>:Exp<CR>
" PHP syntax kontrol
nmap <F3> :!php -l -f % <CR>
"nmap <F4> :ls<CR>:e #
" Renk d�zeltir
"map <F4> mb<CR>:1<CR>o<ESC>dd<ESC>`b<CR>k
"nmap <F4> :!javac % <CR>
nmap <F4> :!g++ % <CR>
nmap  <F5> :!gcc -lm % <CR>
nmap  <F6> :!./a.out <CR>
map <F7> mzgg=G'z<CR>
"nmap <F5> :bp<CR>
"nmap <F6> :bn<CR>
"nmap <F7> :bd<CR>
"map <F5> :sil bp<C-M>
"map <F6> :sil bn<C-M>
"map <F7> :sil bd<C-M>


"map <C-u> :!ftpFtoPwdYing.sh % 
"map <C-u> :!scpFtoYing.sh % 

" ALT+j= escape olsun
"inoremap <S-CR> <ESC>
inoremap <M-j> <ESC>


"--Abreviations
cab W w
cab Wq wq
cab wQ wq
cab WQ wq
cab Q q

set noerrorbells "be quiet, dont beep
set laststatus=2 "always show a status line
set nobackup
"Ignore case when searching
set ignorecase
set smartcase

" dosya~ seklinde backup dosyasi olusturma
set nowritebackup

" Bir kisim kisaltmalar
:ab func function
:ab #i #include
:ab #l /* -------------------------------------------------- */<ESC>
:ab #b /***************************************************<ESC>
:ab #c <SPACE>**************************************************/<ESC>
:ab ## ############################################################<ESC>
:ab #- #-----------------------------------------------------------<ESC>
:ab #* #***********************************************************<ESC>
:ab #m <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
:ab #p #!/usr/bin/perl -w<ESC>
:ab #s System.out.println("");<ESC>3h<ESC>
:ab #!b #!/bin/bash
:ab #!p #!/usr/bin/perl

:au Filetype xml,xsd :ab <?x <?xml version="1.0" encoding="ISO-8859-9" standalone=""?><ESC>3h
:au Filetype xml,xsd :ab <:s <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="" targetNamespace="" elementFormDefault="qualified">
:au Filetype xml,xsd :ab <:e <xsd:element name=""<ESC>2h
:au Filetype xml,xsd :ab <:c <xsd:complexType<ESC>2h
:au Filetype xml,xsd :ab <E <ElementType name="" content="" model=""<ESC>22h
:au Filetype xml,xsd :ab <e <element type="" minOccurs="" maxOccurs=""/><ESC>30h
:au Filetype xml,xsd :ab <A <AttributeType name="" dt:type=""/><ESC>15h
:au Filetype xml,xsd :ab <a <attribute type=""/><ESC>4h


" split line
"map + i<CR><ESC>

" java tags
"set tags=~/.vim/tags/java
"set tags=~/.vim/tags/cpp_tags
set tags=~/.vim/tags/php.tags

" C Comments
"set comments=sl:/*,mb:**,elx:*
set encoding=latin5

" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>

" closetag scripti icin
:au Filetype php,perl,html,xml,xsl source ~/.vim/plugin/closetag.vim

" Tarih
map! ;d <C-R>=strftime("%Y.%m.%d %T")<CR>

Edit - History - Print - Recent Changes - Search
Page last modified on March 14, 2006, at 04:53 PM