a few little upgrades to vimrc

not using vundle, started using vim plug, expanded some short sets for their full-word version
This commit is contained in:
surtur 2019-11-19 01:07:36 +01:00
parent b8e925c26c
commit 6c6ebabb2e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

54
vimrc
View File

@ -1,13 +1,14 @@
set nocompatible
filetype off "required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
filetype off "required
""set rtp+=~/.vim/bundle/Vundle.vim
""call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
""Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
@ -15,9 +16,9 @@ Plugin 'VundleVim/Vundle.vim'
"myplugins
"Plugin 'valloric/youcompleteme'
Plugin 'shougo/neocomplete.vim'
""Plugin 'shougo/neocomplete.vim'
call vundle#end()
""call vundle#end()
filetype plugin on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
@ -81,6 +82,32 @@ autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns = {}
endif
""""""""""""""""""""""""""""""""""""
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'https://tpope.io/vim/surround.git'
Plug 'https://github.com/tpope/vim-fugitive.git'
Plug 'https://github.com/suan/vim-instant-markdown', {'for': 'markdown'}
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
call plug#end()
"let g:vim_markdown_new_list_item_indent
" vim-instant-markdown options
let g:instant_markdown_allow_unsafe_content = 1
let g:instant_markdown_mathjax = 1
let g:instant_markdown_browser = "chromium-browser --incognito"
let g:instant_markdown_autoscroll = 1
let g:instant_markdown_autostart = 1
""""""""""""""""""""""""""""""""""""
set softtabstop=4
@ -117,7 +144,7 @@ set errorbells " bells in terminal
set undolevels=1000 " number of undos stored
set viminfo='50,"50 " '=marks for x files, "=registers for x files
set nofen
set nofoldenable
"set foldmethod=indent " indent based folding
" define indent-based folding, after loading a file switch to manual folding
@ -142,19 +169,20 @@ au BufNewFile,BufRead *.c,*.h,*.cpp
\ textwidth=79 fileformat=unix
set encoding=utf-8 " important for powerline besides others
set scs " override 'ignorecase' when pattern has upper case characters
set smartcase " override 'ignorecase' when pattern has upper case characters
set relativenumber " use relative number
:vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
:nmap gb :!git blame %<CR>
vmap gb :<C-U>!git blame % -L<C-R>=line("'<") <CR>,<C-R>=line("'>") <CR><CR>
nmap gb :!git blame %<CR>
:colo pablo " new fav highlighting
:set mouse=a " enable mouse in n,v,i,c,h modes
colo palenight " new fav highlighting
set mouse=a " enable mouse in n,v,i,c,h modes
":set cursorline " Enable cursor line position tracking
":highlight clear CursorLine " Remove the underline from enabling cursorline
":highlight CursorLineNR ctermbg=darkgrey " Set line numbering to red background
:set laststatus=2 " show powerline status bar
set laststatus=2 " show powerline status bar
set t_Co=256
let g:Powerline_symbols = "fancy" " sth like this probably set as a default but won't hurt here