-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·54 lines (40 loc) · 1.24 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
set guifont=DejaVu\ Sans\ Mono\ 10
"set guifont=Inconsolata\ 17
"set guifont=Nimbus\ Mono\ L\ 18
"Color schemes can be found in .vim/colors or /usr/share/vim/vim73/colors/
" 'custom' is a modified delek
colorscheme custom
"colorscheme delek
set shell=/bin/bash
highlight Comment cterm=italic
let g:neocomplcache_enable_at_startup = 1
filetype plugin on
" Syntax highlighting
syntax on
" Set tabs at 4 spaces
retab " change all existing tabs to 4 spaces.
set tabstop=4 " defines how many spaces should be inserted instead of tab.
set shiftwidth=4 " indentation space definition.
set expandtab " insert space when tab is pressed.
" Set matching [] and {}
set showmatch
nnoremap <silent> <F8> :TlistToggle<CR>
autocmd BufNewFile *.* set tw=80
autocmd BufRead *.* set tw=80
set nocompatible
set ruler
set pastetoggle=<F12>
set showmatch
set ignorecase
set incsearch
" Remap ctags C-] for Norsk tastatur
nnoremap <C-\> <C-]>
" Spell check. Creates red background on the word that is wrong.
" no/en/en_gb or other will also work.
"setlocal spell spelllang=en_gb
" Spelling
" todo fix highlighting of spelling mistakes.
" F2: Toggle line numbers.
nnoremap <F2> :set number!<CR>
" F3: Toggle list (display unprintable characters).
nnoremap <F3> :set list!<CR>