aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Root2017-05-06 16:48:37 +0200
committerCharlie Root2017-05-06 16:48:37 +0200
commite5ef796478fc0d0a0ef8454e945f0d7aa1f8892a (patch)
tree3d73805b21850c165db0ab6cf0e3f4be9eb5d46d
parentb5d62fe0b70be517c4a8e12483df194c91933154 (diff)
downloadvim-karlmarks-e5ef796478fc0d0a0ef8454e945f0d7aa1f8892a.tar.bz2
vim-karlmarks-e5ef796478fc0d0a0ef8454e945f0d7aa1f8892a.zip
Added 'medium' config for ssh sessions
-rw-r--r--vimrc-medium107
1 files changed, 107 insertions, 0 deletions
diff --git a/vimrc-medium b/vimrc-medium
new file mode 100644
index 0000000..a066e60
--- /dev/null
+++ b/vimrc-medium
@@ -0,0 +1,107 @@
1set nocompatible " be iMproved, required
2filetype off " required
3
4
5
6call plug#begin()
7
8" let Vundle manage Vundle, required
9Plug 'VundleVim/Vundle.vim'
10
11Plug 'tpope/vim-sensible' | " a sane and modern default configuration
12Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin
13Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with '
14Plug 'tpope/vim-repeat' | " lets . (dot) repeat plugin macros as well, specifically vim-surround
15Plug 'tpope/vim-vinegar' | " Improves :Explore
16Plug 'tpope/vim-characterize' | " normal mode: make ga show character names of Unicode chars (ga shows hex and dec values)
17
18Plug 'gregsexton/matchtag' | " highlights closing ML tags like braces
19Plug 'loremipsum' | " Sample text generator
20Plug 'vim-airline/vim-airline' | " beautification of the mode line
21Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme
22Plug 'sheerun/vim-polyglot'
23
24Plug 'f-breidenstein/icinga-vim'
25Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/=
26
27"# Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript
28"# Plugin 'evanmiller/nginx-vim-syntax'
29
30
31" Plugin 'tpope/vim-vividchalk' | " dark theme
32" Plugin 'nelstrom/vim-mac-classic-theme' | " light theme
33
34
35
36" All of your Plugins must be added before the following line
37call plug#end() | " all plugins are getting loaded on this line, don't remove!
38
39filetype plugin indent on | " required
40
41" set term=xtermc | " required on solaris
42set t_Co=256
43colorscheme industry
44set background=light
45
46let g:airline_theme='luna'
47let g:airline_powerline_fonts = 1
48" enable airline's fancy headline with all buffers and tabs
49let g:airline#extensions#tabline#enabled = 1
50let g:airline#extensions#tabline#show_buffers = 1
51let g:airline#extensions#tabline#show_tabs = 1
52
53
54syntax on
55
56
57set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth)
58
59set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=)
60
61set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained
62
63set lazyredraw
64set ttyscroll=3
65set ttyfast
66set mouse=a
67set hidden
68
69
70" set title
71" set t_ts=^[k
72" set t_fs=^[\
73" auto BufEnter * :set title | let &titlestring = 'v:' . expand('%')
74" auto VimLeave * :set t_ts=^[k^[\
75" To ignore plugin indent changes, instead use:
76"filetype plugin on
77"
78" Brief help
79" :PluginList - lists configured plugins
80" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
81" :PluginSearch foo - searches for foo; append `!` to refresh local cache
82" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
83"
84" see :h vundle for more details or wiki for FAQ
85" Put your non-Plugin stuff after this line
86"
87if has("autocmd")
88 set modeline | " set variables specific to a file, like indentation by adding a comment
89endif
90
91" set window title for screen(3)
92if &term == "screen"
93 set t_ts=k
94 set t_fs=\
95endif
96if &term == "screen" || &term == "xterm"
97 let &titlestring = "%t|".$USER."@".hostname().":%{expand(\"%:~:.:h\")}%=%y"
98 set title
99endif
100
101" let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
102" automatically remove trailing white spaces on save..
103autocmd BufWritePre * %s/\s\+$//e
104
105nnoremap <Tab> :bn<CR>| " lets one use CTRL+Tab to switch between tabs
106nnoremap <S-Tab> :bp<CR>| " use CTRL+Shift+Tab to switch to preview tab
107
..