dotfiles/vim/vimrc
2020-12-07 19:31:31 +01:00

50 lines
770 B
VimL
Executable File

if has("syntax")
syntax on
endif
nnoremap qt :vert term<CR><C-w><C-r>
noremap qq <Esc>:q<CR>
noremap qaq <Esc>:qa<CR>
noremap qq1 <Esc>:q!<CR>
noremap qaq1 <Esc>:qa!<CR>
noremap qf <Esc>:NERDTreeToggle<CR>
noremap vs <Esc>:e $MYVIMRC<CR>
inoremap qw <Esc>:w<CR>i<Right>
inoremap ii <Esc><Right>
imap <C-@> <C-n>
inoremap ( ()<Left>
inoremap { {}<Left>
inoremap [ []<Left>
inoremap " ""<Left>
inoremap ' ''<Left>
nnoremap qw :w<CR>
set number
call plug#begin()
Plug 'lervag/vimtex'
Plug 'scrooloose/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'altercation/vim-colors-solarized'
call plug#end()
set encoding=UTF-8
set tabstop=4
set background=dark
set laststatus=2
set noshowmode
let g:lightline = {
\ 'colorscheme': 'solarized',
\ }
colors solarized