-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
114 lines (68 loc) · 2.44 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
"set background=dark
set t_Co=256 " use 256 colors in vim
"colorscheme desert256 " an appropriate color scheme
"colorscheme luna
"colorscheme pyte
"colorscheme proton
" nice the for xml files
"colorscheme highwayman
"colorscheme spurs_away
"colorscheme gotham256
set autoread
"set swapfile
"set dir=~/tmp
set viminfo='20,<1000,s1000
set mouse=
set clipboard=unnamedplus
nnoremap <F1> <ESC>:w!<ENTER>
inoremap <F1> <ESC>:w!<ENTER>
nnoremap <F2> <ESC>:wq!<ENTER><ESC>
inoremap <F2> <ESC>:wq!<ENTER><ESC>
nnoremap <F3> <ESC>:r! code '%:p'<ENTER>dd<ESC>:q!<ENTER>
inoremap <F3> <ESC>:r! code '%:p'<ENTER>dd<ESC>:q!<ENTER>
nnoremap <F4> <ESC>:q!<ENTER>
inoremap <F4> <ESC>:q!<ENTER>
"toggle mouse with F7, F6
nnoremap <F5> <ESC>:set mouse=a<ENTER><ESC>
inoremap <F5> <ESC>:set mouse=a<ENTER><ESC>
nnoremap <F6> <ESC>:set mouse=<ENTER><ESC>
inoremap <F6> <ESC>:set mouse=<ENTER><ESC>
noremap <F7> <esc>:r! cat /tmp/share<ENTER><esc>j-i
"bar with tags, list of functions and variables
nmap <F8> :TagbarToggle<CR>
nnoremap <F9> <ESC>V:w! /tmp/buff.txt<ENTER>
inoremap <F9> <ESC>V:w! /tmp/buff.txt<ENTER>
nnoremap <Tab> <c-w>w
nnoremap <bs> <c-w>W
" todo: find out how from vim script check file format
" todo: play with vim plugins make something like watch built in and try to edit several files at once in vim.
" maybe enable mouse... but after enabling mouse can't pase with middle key. maybe middle rewrite somehow on linux level
" todo: make clipboard buffer over web interface
" imap <c-n> <CR><CR><C-o>k<Tab>
" todo: add buffer read from http://share.io/data/share
" c-c will copy from share and c-v will paste from share. fucking amazing
" most importent make vim clipboard work. but i cant now. time 10min
"vmap <C-c> "*y " Yank current selection into system clipboard
"nmap <C-c> "*Y " Yank current line into system clipboard (if nothing is selected)
"nmap <C-v> "*p " Paste from system clipboard
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
set nobackup
"set nowrap
"set matchtime=2
"set number
execute pathogen#infect()
filetype plugin indent on
set complete+=k~/.vim/dict/php.dict
call plug#begin('~/.vim/plugged')
Plug 'whatyouhide/vim-gotham'
call plug#end()
"set statusline+=%F
"set laststatus=2
set backupdir-=.
set backupdir^=~/tmp,/tmp
set nobackup
set nowritebackup
set noswapfile