forked from fisadev/fisa-vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc_original
63 lines (47 loc) · 1.05 KB
/
.vimrc_original
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
set encoding=utf-8
colorscheme desert
" tabs and spaces handling
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
" check spelling
:set spell
" always show status bar
set ls=2
"Auto Indent
set autoindent
" incremental search
set incsearch
" highlighted search results
set hlsearch
" syntax highlight on
syntax on
" show line numbers
set nu
autocmd InsertLeave * :set norelativenumber number
autocmd InsertEnter * :set relativenumber
" highlight current line & column
set cursorline
set cursorcolumn
" navigate windows with meta+arrows
map <M-Right> <c-w>l
map <M-Left> <c-w>h
map <M-Up> <c-w>k
map <M-Down> <c-w>j
imap <M-Right> <ESC><c-w>l
imap <M-Left> <ESC><c-w>h
imap <M-Up> <ESC><c-w>k
imap <M-Down> <ESC><c-w>j
" when scrolling, keep cursor 3 lines away from screen border
set scrolloff=3
set splitbelow
set splitright
" split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" auto-complete
" Ctrl+P -> search backward
" Ctrl+N -> search forward