aboutsummaryrefslogtreecommitdiff
path: root/vimrc-medium
blob: a066e60e4f76bad5096e5745c7b078c233c07f4f (plain)
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
set nocompatible              " be iMproved, required
filetype off                  " required



call plug#begin()

" let Vundle manage Vundle, required
Plug 'VundleVim/Vundle.vim'

Plug 'tpope/vim-sensible'                           | " a sane and modern default configuration
Plug 'tpope/vim-fugitive'                           | " the most complete GIT integration plugin
Plug 'tpope/vim-surround'                           | " plugin makes cs"' inside a line replace " with '
Plug 'tpope/vim-repeat'                             | " lets . (dot) repeat plugin macros as well, specifically vim-surround
Plug 'tpope/vim-vinegar'                            | " Improves :Explore
Plug 'tpope/vim-characterize'                       | " normal mode: make ga show character names of Unicode chars (ga shows hex and dec values)

Plug 'gregsexton/matchtag'                          | " highlights closing ML tags like braces
Plug 'loremipsum'                                   | " Sample text generator
Plug 'vim-airline/vim-airline'                      | " beautification of the mode line
Plug 'vim-airline/vim-airline-themes'               | " airline themes to match any light and dark terminal using :AirlineTheme
Plug 'sheerun/vim-polyglot'

Plug 'f-breidenstein/icinga-vim'
Plug 'godlygeek/tabular'                              | " align code on a sign, like :Tab/=

"# Plugin 'indenthtml.vim'                               | " works better with mixed html/css/javascript
"# Plugin 'evanmiller/nginx-vim-syntax'


" Plugin 'tpope/vim-vividchalk'                         | " dark theme
" Plugin 'nelstrom/vim-mac-classic-theme'               | " light theme



" All of your Plugins must be added before the following line
call plug#end()              | " all plugins are getting loaded on this line, don't remove!

filetype plugin indent on    | " required

" set term=xtermc            | " required on solaris
set t_Co=256
colorscheme industry
set background=light

let g:airline_theme='luna'
let g:airline_powerline_fonts = 1
" enable airline's fancy headline with all buffers and tabs
let g:airline#extensions#tabline#enabled      = 1
let g:airline#extensions#tabline#show_buffers = 1
let g:airline#extensions#tabline#show_tabs    = 1


syntax on


set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth)

set encoding=utf-8            | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=)

set ignorecase smartcase      | " search with ignorecase by default, but use case sensitive search when one captical char is contained

set lazyredraw
set ttyscroll=3
set ttyfast
set mouse=a
set hidden


" set title
" set t_ts=^[k
" set t_fs=^[\
" auto BufEnter * :set title | let &titlestring = 'v:' . expand('%')
" auto VimLeave * :set t_ts=^[k^[\
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
if has("autocmd")
  set modeline                | " set variables specific to a file, like indentation by adding a comment
endif

" set window title for screen(3)
if &term == "screen"
  set t_ts=k
  set t_fs=\
endif
if &term == "screen" || &term == "xterm"
  let &titlestring = "%t|".$USER."@".hostname().":%{expand(\"%:~:.:h\")}%=%y"
  set title
endif

" let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
" automatically remove trailing white spaces on save..
autocmd BufWritePre * %s/\s\+$//e

nnoremap <Tab> :bn<CR>|         " lets one use CTRL+Tab to switch between tabs
nnoremap <S-Tab> :bp<CR>|   " use CTRL+Shift+Tab to switch to preview tab

..