-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
executable file
·94 lines (73 loc) · 1.91 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
let spell_auto_type="tex,doc,mail.txt"
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
set enc=utf-8 tenc=utf-8
set fencs=utf-8,cp1251,koi8-r
set visualbell
set fileformats=unix,dos,mac
set nobackup
set showcmd " display incomplete commands
set wildmenu
set background=dark
let g:solarized_termcolors=256
let g:solarized_termtrans=1
let g:solarized_underline = 1
set t_Co=256
syntax on
colorscheme solarized
set guifont=Monaco\ 11
" http://clubs.ya.ru/vim/replies.xml?item_no=1351
" via lynn@
set nowrap list listchars=tab:▹‧,trail:·,extends:▸,precedes:◂
" via paulus
nmap <F3> :set list!<CR>
nmap <F4> :set wrap!<CR>
set hidden
set history=1000
set undolevels=1000
set title
set noruler
set laststatus=2
set statusline=%<%f%h%m%r\ %b\ %{&encoding}\ \ %l,%c\ %P
set pastetoggle=<F2>
set incsearch
set hlsearch
" Clear the search highlight by pressing ENTER when in Normal mode (Typing commands)
" https://github.com/veged/cfgs/blob/master/.vimrc
:nnoremap <CR> :nohlsearch<CR>/<BS><CR>
" replace current word pressing ';'
nmap ; :%s/\<<c-r>=expand("<cword>")<cr>\>/
set backspace=indent,eol,start " Allow backspacing over everything in insert mode
set expandtab
set tabstop=4
set shiftwidth=4
set smarttab
set softtabstop=4
set autoindent
if has("mouse")
set mouse=a
endif
set loadplugins
filetype plugin on
filetype plugin indent on
set complete=""
set complete+=.
set complete+=k
set complete+=b
set complete+=t
set completeopt+=preview
set completeopt+=menu
" python
let python_highlight_all = 1
" inoremap <Tab> <C-R>=SuperCleverTab()<CR>
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_min_syntax_length = 3
" SuperTab like snippets behavior.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" SQL stuff
let g:sql_type_default = 'plsql'
" resources:
" (1) http://items.sjbach.com/319/configuring-vim-right
" (2) http://www.pixelbeat.org/settings/.vimrc