User:Hannes Röst/.vimrc

From Wikibooks, open books for an open world
Jump to navigation Jump to search
"where to find nice .vimrc files
"   -
filetype plugin indent on  "plugins and indent on
filetype on
filetype plugin on
syntax on
set nocompatible

set tabstop=4               "change default tabsize
set shiftwidth=4
set softtabstop=4

set autoindent
set smarttab               "Uses shiftwidth instead of tabstop 
set expandtab              "Replaces a <TAB> with spaces = portable 
set virtualedit=block       "Lets you go everywhere (in visual mode)

set incsearch               "incremental search
set hlsearch                "highlight search results
set ignorecase              "is needed for smartcase
set smartcase               "ignores case when everything is lower case

"change leader key, map ;
let mapleader = ","
nore ; :

nmap <F2> :set spell!<CR>
nmap <F7> :set wrap!<CR>
nmap <F8> :set paste!<CR>
nmap <F9> :set number!<CR>