2021-05-09 19:04:25 -05:00
|
|
|
" randomuser's vimrc
|
|
|
|
|
|
|
|
nnoremap ; :
|
|
|
|
nnoremap : ;
|
2022-03-30 20:55:31 -05:00
|
|
|
let mapleader = " "
|
|
|
|
|
|
|
|
" defined settings
|
2021-05-09 19:04:25 -05:00
|
|
|
set number
|
2022-03-30 20:55:31 -05:00
|
|
|
set encoding=utf8
|
|
|
|
set lcs=tab:->,trail:_,eol:^
|
|
|
|
set clipboard=unnamedplus
|
|
|
|
colorscheme earth
|
|
|
|
|
|
|
|
" shortcuts
|
|
|
|
nnoremap <Leader>ym :set number!<CR>:set list!<CR>
|
|
|
|
|
|
|
|
nnoremap <Leader>w :!curl -s wttr.in/?0T<CR>
|
|
|
|
nnoremap <Leader>rr :source ~/.config/nvim/init.vim<CR>
|
|
|
|
nnoremap <Leader>re :edit ~/.config/nvim/init.vim<CR>
|
|
|
|
nnoremap <Leader>m :make<CR>
|
2021-05-09 19:04:25 -05:00
|
|
|
|
2022-03-30 20:55:31 -05:00
|
|
|
inoremap jk <esc>
|
|
|
|
inoremap <esc> <esc>:echo "use jk instead!"<CR>2gsi
|
2021-05-09 19:04:25 -05:00
|
|
|
|
2022-03-30 20:55:31 -05:00
|
|
|
" autocmds
|
|
|
|
au Filetype python setl et ts=4 sw=4
|
2021-05-09 19:04:25 -05:00
|
|
|
|
2022-03-30 20:55:31 -05:00
|
|
|
" statusline
|
2021-05-09 19:04:25 -05:00
|
|
|
|
2022-03-30 20:55:31 -05:00
|
|
|
set statusline=%f
|
|
|
|
set statusline+=\
|
|
|
|
set statusline+=%r%m%q
|
|
|
|
set statusline+=%=
|
|
|
|
set statusline+=%y\ %B\ %l:%c:%p
|