-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
92 lines (53 loc) · 1.06 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
" UNDO, BACKUP AND SWAP DIRECTORIES
set undodir=~/vimfiles/temp/undo " directory used to save undo files
set backupdir=~/vimfiles/temp/bkp " directory used to save backup files
set directory=~/vimfiles/temp/swp " directory used to save swap files
" NO BELL SOUND
set belloff=all
" COLORSCHEME
set t_Co=256
colorscheme torte
" GUI / TERMINAL SETTINGS
if has("gui_running") " GVIM
" SET LINES AND COLUMNS
set lines=35 columns=130
if has("gui_win32")
" SET FONT
set guifont=Consolas:h11:cANSI
endif
else " TERMINAL
" COLORSCHEME
colorscheme industry
endif
" SYNTAX
syntax enable
" ENCODING
set encoding=utf-8
" WRAP LINE
set nowrap
" TAB
set tabstop=2
set shiftwidth=2
set expandtab
set backspace=indent,eol,start
" NUMBER LINES
set number
set relativenumber
set cursorline
:hi CursorLine ctermbg=8 guibg=#333333
" SEARCH
set incsearch
set hlsearch
set ignorecase
set smartcase
" STATUSBAR
set ls=2
set ruler
" MENU
set wildmenu
" MAPS
map <F2> :NERDTreeToggle<CR>
imap jj <Esc>
nmap oo o<Esc>k
nmap ooo o<Enter>
nmap OO O<Esc>j