diff options
| author | Charlie Root | 2017-05-06 16:48:37 +0200 |
|---|---|---|
| committer | Charlie Root | 2017-05-06 16:48:37 +0200 |
| commit | e5ef796478fc0d0a0ef8454e945f0d7aa1f8892a (patch) | |
| tree | 3d73805b21850c165db0ab6cf0e3f4be9eb5d46d | |
| parent | b5d62fe0b70be517c4a8e12483df194c91933154 (diff) | |
| download | vim-e5ef796478fc0d0a0ef8454e945f0d7aa1f8892a.tar.bz2 vim-e5ef796478fc0d0a0ef8454e945f0d7aa1f8892a.zip | |
Added 'medium' config for ssh sessions
| -rw-r--r-- | vimrc-medium | 107 |
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 @@ | |||
| 1 | set nocompatible " be iMproved, required | ||
| 2 | filetype off " required | ||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | call plug#begin() | ||
| 7 | |||
| 8 | " let Vundle manage Vundle, required | ||
| 9 | Plug 'VundleVim/Vundle.vim' | ||
| 10 | |||
| 11 | Plug 'tpope/vim-sensible' | " a sane and modern default configuration | ||
| 12 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin | ||
| 13 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' | ||
| 14 | Plug 'tpope/vim-repeat' | " lets . (dot) repeat plugin macros as well, specifically vim-surround | ||
| 15 | Plug 'tpope/vim-vinegar' | " Improves :Explore | ||
| 16 | Plug 'tpope/vim-characterize' | " normal mode: make ga show character names of Unicode chars (ga shows hex and dec values) | ||
| 17 | |||
| 18 | Plug 'gregsexton/matchtag' | " highlights closing ML tags like braces | ||
| 19 | Plug 'loremipsum' | " Sample text generator | ||
| 20 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | ||
| 21 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | ||
| 22 | Plug 'sheerun/vim-polyglot' | ||
| 23 | |||
| 24 | Plug 'f-breidenstein/icinga-vim' | ||
| 25 | Plug '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 | ||
| 37 | call plug#end() | " all plugins are getting loaded on this line, don't remove! | ||
| 38 | |||
| 39 | filetype plugin indent on | " required | ||
| 40 | |||
| 41 | " set term=xtermc | " required on solaris | ||
| 42 | set t_Co=256 | ||
| 43 | colorscheme industry | ||
| 44 | set background=light | ||
| 45 | |||
| 46 | let g:airline_theme='luna' | ||
| 47 | let g:airline_powerline_fonts = 1 | ||
| 48 | " enable airline's fancy headline with all buffers and tabs | ||
| 49 | let g:airline#extensions#tabline#enabled = 1 | ||
| 50 | let g:airline#extensions#tabline#show_buffers = 1 | ||
| 51 | let g:airline#extensions#tabline#show_tabs = 1 | ||
| 52 | |||
| 53 | |||
| 54 | syntax on | ||
| 55 | |||
| 56 | |||
| 57 | set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) | ||
| 58 | |||
| 59 | set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) | ||
| 60 | |||
| 61 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained | ||
| 62 | |||
| 63 | set lazyredraw | ||
| 64 | set ttyscroll=3 | ||
| 65 | set ttyfast | ||
| 66 | set mouse=a | ||
| 67 | set 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 | " | ||
| 87 | if has("autocmd") | ||
| 88 | set modeline | " set variables specific to a file, like indentation by adding a comment | ||
| 89 | endif | ||
| 90 | |||
| 91 | " set window title for screen(3) | ||
| 92 | if &term == "screen" | ||
| 93 | set t_ts=k | ||
| 94 | set t_fs=\ | ||
| 95 | endif | ||
| 96 | if &term == "screen" || &term == "xterm" | ||
| 97 | let &titlestring = "%t|".$USER."@".hostname().":%{expand(\"%:~:.:h\")}%=%y" | ||
| 98 | set title | ||
| 99 | endif | ||
| 100 | |||
| 101 | " let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" | ||
| 102 | " automatically remove trailing white spaces on save.. | ||
| 103 | autocmd BufWritePre * %s/\s\+$//e | ||
| 104 | |||
| 105 | nnoremap <Tab> :bn<CR>| " lets one use CTRL+Tab to switch between tabs | ||
| 106 | nnoremap <S-Tab> :bp<CR>| " use CTRL+Shift+Tab to switch to preview tab | ||
| 107 | |||
