My initial ~/.vimrc
for #vim after 3-4 years of using #neovim:
filetype plugin indent on
syntax enable
let g:mapleader = ","
set autoindent
set autoread
set formatoptions+=j
set guifont=MesloLGM\ Nerd\ Font\ Mono\ 12
set hidden
set history=500
set hlsearch
set listchars=tab:→\ ,trail:•,extends:›,precedes:‹,nbsp:␣,eol:↲
set nobackup
set nonumber
set noswapfile
set nowrap
set path+=**
set scrolloff=1
set showbreak=↪\
set showmatch
set sidescroll=1
set smarttab
set tags=./tags;/
set termguicolors
nnoremap <silent> <C-l> :nohl<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
nnoremap <silent> <leader>lcd :lcd %:p:h<CR>:pwd<CR>
nnoremap <silent> <leader>n :set number!<CR>
if !empty(globpath(&rtp, 'autoload/plug.vim'))
call plug#begin()
Plug 'ap/vim-buftabline', { 'as': 'buftabline' }
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'editorconfig/editorconfig-vim', { 'as': 'editorconfig' }
Plug 'kaarmu/typst.vim', { 'as': 'typst' }
Plug 'tpope/vim-commentary', { 'as': 'commentary' }
Plug 'vim-scripts/git_patch_tags.vim', { 'as': 'git_patch_tags' }
call plug#end()
endif
silent! colorscheme dracula
It’s quite short but does pretty much what I would ever want from a text editor:
$ wc -l .vimrc
42 .vimrc
@jarkko yeah mine was pretty similar. All in one file with vim script code. Actually I think I saved it in some part as well.
@jarkko Not sure why you're still using NERDTree; Vim's built-in file explorer is much superior.
@jarkko Unfortunately, this also happens with Vim, although probably less frequently. Developing a plugin for various platforms is not trivial, and maintenance can be a significant burden.