Skip to content

Instantly share code, notes, and snippets.

@jbobbylopez
Created April 20, 2020 06:43
Show Gist options
  • Save jbobbylopez/bb656326feb7fd12f36fedd158b5df75 to your computer and use it in GitHub Desktop.
Save jbobbylopez/bb656326feb7fd12f36fedd158b5df75 to your computer and use it in GitHub Desktop.
vimrc
call plug#begin('~/.config/nvim/plugged')
" Plugins will go here in the middle.
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'rking/ag.vim'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'PProvost/vim-ps1'
Plug 'vim-ruby/vim-ruby'
Plug 'WolfgangMehner/vim-plugins'
Plug 'hashivim/vim-terraform'
Plug 'martinda/Jenkinsfile-vim-syntax'
call plug#end()
" Other configuation
syntax on
filetype plugin indent on
set visualbell
set autoindent
set number
set tabstop=4
set shiftwidth=4
set expandtab
set background=dark
set syntax=perl
set nowrap
"set foldmethod=indent
set fdc=1
set showtabline=2
set tw=75
"set paste
"au BufNewFile,BufRead *.c,*.h,*.pl,*.cgi,*.php,*.pl, *.yml, *.yaml, *.py, *.rb, *.class, *.java exec 'match Todo /\%>' . '75' . 'v.\+/'
"au! BufRead,BufNewFile *.json setfiletype json
map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>
setlocal makeprg=perl\ -c\ %
exe 'setlocal equalprg=tidy\ -indent\ -quiet\ -f\ '.&errorfile
setlocal makeprg=tidy\ -quiet\ -e\ %
au FileType xml exe ":silent 1,$!xmllint --format --recover - 2>/dev/null"
"colors monokai
""" STATUSLINE:BEGIN """""""""""""
set statusline=
set statusline+=%7*\[%n] "buffernr
set statusline+=%5*\ %{v:register}\ "buffernr
set statusline+=%1*\ %<%F\ "File+path
set statusline+=%2*\ %y\ "FileType
set statusline+=%3*\ %{''.(&fenc!=''?&fenc:&enc).''} "Encoding
set statusline+=%3*\ %{(&bomb?\",BOM\":\"\")}\ "Encoding2
set statusline+=%4*\ %{&ff}\ "FileFormat (dos/unix..)
set statusline+=%5*\ %{&spelllang}\ %{HighlightSearch()}\ "Spellanguage & Highlight on? Status Line
set statusline+=%8*\ %=\ row:%l/%L\ (%03p%%)\ "Rownumber/total (%)
set statusline+=%9*\ col:%03c\ "Colnr
set statusline+=%0*\ \ %m%r%w\ %P\ \ "Modified? Readonly? Top/bot.
""" STATUSLINE:END """""""""""""
function! HighlightSearch()
if &hls
return 'H'
else
return ''
endif
endfunction
hi User1 guifg=#ffdad8 guibg=#880c0e
hi User2 guifg=#000000 guibg=#F4905C
hi User3 guifg=#292b00 guibg=#f4f597
hi User4 guifg=#112605 guibg=#aefe7B
hi User5 guifg=#051d00 guibg=#7dcc7d
hi User7 guifg=#ffffff guibg=#880c0e gui=bold
hi User8 guifg=#ffffff guibg=#5b7fbb
hi User9 guifg=#ffffff guibg=#810085
hi User0 guifg=#ffffff guibg=#094afe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment