Skip to content

Instantly share code, notes, and snippets.

@telday
Last active April 19, 2023 15:15
Show Gist options
  • Save telday/8cd9033172d2f2709515a26c2b5993d5 to your computer and use it in GitHub Desktop.
Save telday/8cd9033172d2f2709515a26c2b5993d5 to your computer and use it in GitHub Desktop.
colorscheme desert
let mapleader="."
nnoremap . <nop>
nnoremap <leader>rc :vsplit $MYVIMRC<cr>
nnoremap <leader>" /(<cr>Na"<esc>/)<cr>s")<esc>
set shortmess=at
set cmdheight=1
inoremap kl <esc>
nnoremap t V>
nnoremap T V<
autocmd BufNewFile,BufRead *.tpy set syntax=python
set backup
set backupdir=~/.vimbackup
set undofile
set undodir=~/.vimundo
set autoindent
syntax on
set tabstop=8
set smarttab expandtab
set shiftwidth=2
set softtabstop=0
set number
set numberwidth=2
set ruler
set foldmethod=indent
set mouse=n
" Color scheme for active status bar
hi StatusLine ctermbg=blue ctermfg=white
" Color scheme for non-active status bars
hi StatusLineNC ctermbg=white ctermfg=black
call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'airblade/vim-gitgutter'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'mhinz/vim-startify'
Plug 'preservim/nerdtree'
let g:deoplete#enable_at_startup = 1
let g:startify_bookmarks = [ '~/Documents/conjur', '~/Documents/conjur-openapi-spec', '~/Documents/conjur-sdk-java' ]
call plug#end()
" The VCS quantifier tells nerd tree to open at the root of the
" current VCS project not always cwd
nnoremap <leader>nt :NERDTreeToggleVCS<CR>
nnoremap <leader>nf :NERDTreeFocus<CR>
" Ensure we dont have line numbers in our terminal panes
autocmd BufRead,BufNewFile term://zsh set nonumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment