-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
79 lines (61 loc) · 1.87 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
"cd /cygdrive/c/Users/mikhail.lyshkov/Documents/
set nocompatible " be iMproved, required
filetype on " filetype must be 'on' before setting it 'off'
" otherwise it exits with a bad status and
" breaks git commit.
filetype off " force reloading *after* pathogen loaded
" Tab to spaces!
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Use Unix as the standard file type (WINDOWS USE)
"set ffs=dos,unix,mac
" Use Unix as the standard file type (Unix use)
set ffs=unix,dos,mac
" Two status lines
set laststatus=2
" Easy opening files
set wildmenu
" Switching between buffers without saving
set hidden
" Enable syntax highliting
syntax enable
" Show line numbers
set number
" Enable mouse
set mouse=a
" Show cmd
set showcmd
" Search
set incsearch " start searching as characters are added
set hlsearch " highliting the results
" Command autocomplete
set nocompatible
" Lines before and after the founded line (search)
set scrolloff=7
" Russian language mappings
"set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0
highlight lCursor guifg=NONE guibg=Cyan
"setlocal spell spelllang=ru_yo,en_us
" Preview for explorer
let g:netrw_preview = 1
let g:netrw_liststyle = 3
let g:netrw_winsize = 30
" ***MAPPINGS***
" Working with buffers
nnoremap <C-Right> :bnext<CR>
nnoremap <C-Left> :bprevious<CR>
nnoremap <C-Up> :buffers<CR>
" Working with tabs
nnoremap <C-S-PageUp> :tabnew<CR>
nnoremap <C-S-PageDown> :tabclose<CR>
nnoremap <C-PageDown> :tabprevious<CR>
nnoremap <C-PageUp> :tabnext<CR>
nnoremap <silent> <A-Left> :execute 'silent! tabmove ' . (tabpagenr()-2)<CR>
nnoremap <silent> <A-Right> :execute 'silent! tabmove ' . (tabpagenr()+1)<CR>