more neovim stuff!
This commit is contained in:
parent
e44cdd5779
commit
b81a026958
|
@ -41,3 +41,5 @@ hi VertSplit ctermbg=NONE ctermfg=white cterm=NONE
|
|||
|
||||
hi StatusLine ctermbg=black ctermfg=white cterm=NONE gui=NONE
|
||||
hi StatusLineNC ctermbg=white ctermfg=black cterm=NONE gui=NONE
|
||||
|
||||
hi SpellBad ctermbg=NONE ctermfg=red cterm=NONE
|
||||
|
|
|
@ -7,20 +7,34 @@ let mapleader = " "
|
|||
" defined settings
|
||||
set number
|
||||
set encoding=utf8
|
||||
set list
|
||||
set lcs=tab:->,trail:_,eol:^
|
||||
set clipboard=unnamedplus
|
||||
set spell
|
||||
set spelllang=en_us
|
||||
colorscheme earth
|
||||
|
||||
" shortcuts
|
||||
" shortcuts {{{
|
||||
" toggle line numbers and listchars
|
||||
nnoremap <Leader>ym :set number!<CR>:set list!<CR>
|
||||
|
||||
" weather
|
||||
nnoremap <Leader>w :!curl -s wttr.in/?0T<CR>
|
||||
" vimrc thing
|
||||
nnoremap <Leader>rr :source ~/.config/nvim/init.vim<CR>
|
||||
nnoremap <Leader>re :edit ~/.config/nvim/init.vim<CR>
|
||||
nnoremap <Leader>m :make<CR>
|
||||
|
||||
" show the file explorer
|
||||
nnoremap <Leader>fs :Lexplore<CR>
|
||||
" show the shortcuts in the vimrc
|
||||
nnoremap <Leader>ke :e ~/.config/nvim/init.vim <CR>gg/" shortcuts<CR>zt
|
||||
" jk to escape insert mode
|
||||
inoremap jk <esc>
|
||||
inoremap <esc> <esc>:echo "use jk instead!"<CR>2gsi
|
||||
" go back to the previous error, then correct
|
||||
inoremap <C-d> <c-g>u<Esc>[s1z=`]a<c-g>u
|
||||
inoremap <C-s> <Esc>zgi
|
||||
nnoremap <C-s> zg
|
||||
|
||||
" }}}
|
||||
|
||||
" autocmds
|
||||
au Filetype python setl et ts=4 sw=4
|
||||
|
@ -32,3 +46,6 @@ set statusline+=\
|
|||
set statusline+=%r%m%q
|
||||
set statusline+=%=
|
||||
set statusline+=%y\ %B\ %l:%c:%p
|
||||
|
||||
" netrw
|
||||
let g:netrw_banner=0
|
||||
|
|
Loading…
Reference in New Issue