dotfiles/.vimrc

61 lines
1.2 KiB
VimL
Raw Normal View History

2023-01-08 23:22:22 +01:00
set termguicolors
2021-11-13 19:24:20 +01:00
:set formatoptions=tcqrn1
:set tabstop=2
:set shiftwidth=2
:set softtabstop=2
:set expandtab
:set noshiftround
2023-01-08 23:22:22 +01:00
" Color scheme
":hi clear
":colorscheme default
:colorscheme codedark
":set background=dark
":hi Normal ctermfg=145 ctermbg=234
":hi Normal guifg=#ABB2BF guibg=#282C34 gui=NONE cterm=NONE
2022-04-07 09:23:20 +02:00
2023-01-08 23:22:22 +01:00
let &t_ut=''
:tab all
2022-01-09 20:39:06 +01:00
" Change fonts for Windows
":set guifont=Consolas:h11:cANSI
2023-01-08 23:22:22 +01:00
if has("gui_macvim")
set guifont=Menlo\ Regular:h14
endif
2022-01-09 20:39:06 +01:00
" Hide menu/toolbar of GVIM
2023-01-10 22:31:49 +01:00
":set guioptions -=T
":set guioptions -=r
":set guioptions -=L
2022-01-09 20:39:06 +01:00
2021-11-13 19:24:20 +01:00
" Helps force plug-ins to load correctly when it is turned back on below.
filetype off
" Turn on syntax highlighting.
syntax on
" For plug-ins to load correctly.
filetype plugin indent on
" Set status line display
2023-01-08 23:22:22 +01:00
set statusline=%F%m%r%h%w\ [%{&ff}]\ [filetype=%Y]\ [%l,%v][%p%%]\ [%{strftime('%F')}\ %{strftime('%T')}]
2021-11-13 19:24:20 +01:00
" Encoding
set encoding=utf-8
" Fixes common backspace problems
set backspace=indent,eol,start
" Status bar
set laststatus=2
" Display options
2023-01-08 23:22:22 +01:00
:set showmode
:set showcmd
" File explorer
nnoremap <leader>n :Explore<CR>
nnoremap <C-n> :Lexplore<CR>
nnoremap <C-t> :Vexplore<CR>
nnoremap <C-f> :Texplore<CR>