Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

My Favourite .vimrc Settings

DZone's Guide to

My Favourite .vimrc Settings

·
Free Resource
set number
set linebreak
set hidden
set nobackup
set autoindent
set smartindent
set nowrap
set incsearch
set shiftwidth=4
set tabstop=4
set showmatch
set term=ansi
set tabstop=4
set history=200
set display+=lastline
set laststatus=2
set backspace=eol,indent,start
set fileencodings=latin1,utf-8,ucs-bom
set formatoptions=tcrqw
"set dir=C:\\tmp "Verzeichnis für Swapfiles Windows
"set dir=~/Library/Swapfiles/Vim "Verzeichnis für Swapfiles Mac OS X (Muss angelegt werden!)
set printoptions=duplex:off,
set statusline=%<%f\ %h%m%r%=%-14.(%l,%v%)\ %P
filetype plugin on
syntax on
command W :w

map 
 
   gk
imap 
   
   
    gk
map 
    
      gj
imap 
      
      
       gj
imap 
        
        
         g
         
          
imap 
           
           
            g
            
             
"Zwei Buchstaben vertauschen (Cursor auf dem vorderen Buchstaben)
nmap ; "idl"ip
"Neue Zeile im Normalmodus einfügen:
nmap 
             
               o
              
               k
"execute "source ~/.vim/startupscripts/ToggleCommentify.vim"
"map ç :call ToggleCommentify()
               
                j
"imap ç 
                
                 :call ToggleCommentify()
                 
                  j
iabbrev 
                  
                    pp echo "
                   
";print_r();echo "
"; T( iabbrev fc for ($i = 0; $i T( iabbrev htmlhead Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> nmap :Tlist imap :Tlist " Colorscheme-Aenderungen hi Pmenu guibg=#2050d0 guifg=#90fff0 hi MatchParen guibg=bg guifg=Red
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}