Skip to content

Instantly share code, notes, and snippets.

@v2px
Created November 10, 2024 12:41
Show Gist options
  • Save v2px/b30f0a856cb1a3f148b0f67c37ecf7ad to your computer and use it in GitHub Desktop.
Save v2px/b30f0a856cb1a3f148b0f67c37ecf7ad to your computer and use it in GitHub Desktop.
set mouse=
set ttymouse=
set background=dark
set number
set relativenumber
set laststatus=2
set backup
set backupcopy=yes
set backupdir=~/.vimtmp/
au BufWritePre * let &bex = '-' . strftime("%Y%b%d%X") . '~'
set cryptmethod=blowfish
set cursorline
set noesckeys
set exrc
set incsearch
set ruler
set scrolloff=3
set sidescrolloff=10
set showmatch
set autoindent
set ttyfast
execute pathogen#infect()
syntax on
filetype plugin indent on
let g:gutentags_ctags_extra_args = ['--c-types=+p']
set noshowmode
let g:lightline = {
\ 'colorscheme': 'powerline',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified', 'gutentags' ] ],
\ 'right': [ [ 'lineinfo' ],
\ [ 'percent' ],
\ [ 'fileformat', 'fileencoding', 'filetype', 'charvaluehex' ] ]
\ },
\ 'component': {
\ 'charvaluehex': '0x%B',
\ },
\ 'component_function': {
\ 'gutentags': "gutentags#statusline",
\ 'gitbranch': 'FugitiveHead',
\ },
\ }
augroup MyGutentagsStatusLineRefresher
autocmd!
autocmd User GutentagsUpdating call lightline#update()
autocmd User GutentagsUpdated call lightline#update()
augroup END
set secure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment