Files
dotfiles/common/.vim/vimrc
Pratik Tripathy b0efae3730 NeoVim & VIM
- Testing setup through neotest plugin
- Spellcheck enabled on markdown and text files
- Diagnosis summary through trouble plugin
- Code completion keybindings improved
- Auto-formatting through conform plugin
- Reactjs context aware commenting through nvim-ts-context-commentstring
- Auto HTML tag completion through nvim-ts-autotag
- CSS color highlight through nvim-highlight-colors
- Lualine: breadcrumbs, git status, single line
- Auto restore neovim sessions
- Better keyboard maps

Shell
- Aliases now load from .bashrc or .zshrc
- Bash & zsh shortcuts to easy open and create projects
- zoxide instead of cd when installed
- bootstrap.sh shellhardened
2024-02-28 16:35:02 +05:30

48 lines
1009 B
VimL

let $VIMDIR=expand($HOME)."/.vim"
let $VIMRC="$VIMDIR/vimrc"
" Load plugins
source $VIMDIR/plugins.vim
" Load VIM Configurations
source $VIMDIR/configs.vim
" Load Keybindings
source $VIMDIR/key_maps.vim
" Load Autocommand
source $VIMDIR/autocommands.vim
" Save session files to $HOME/.vim/session directory
let g:session_dir="$VIMDIR/session"
""""""""""""""""""""""""""""""""
"
" THEME
"
""""""""""""""""""""""""""""""""
let g:lightline = { 'colorscheme': 'deepspace' }
colorscheme deep-space
""""""""""""""""""""""""""""""""
"
" VIM SPECIFIC CONFIG
"
""""""""""""""""""""""""""""""""
" Move the .viminfo file inside .vim directory
set viminfofile=$VIMDIR/viminfo
" Auto reload .vimrc
autocmd! bufwritepost $VIMRC source %
" Save inside vim config directory
set undodir=$VIMDIR/undo//
" Map nerdtree to <Leader>e
" Changes the pwd and opens the VCS root
nnoremap <leader>e :tcd %:h<CR> :NERDTreeToggleVCS<CR>
" NERDTree Plugin configurations
let g:NERDTreeShowHidden = 1
let g:NERDTreeWinSize = 25