1
0
Fork 0

some new vim keymaps

This commit is contained in:
Von Random 2017-11-23 02:36:11 +03:00
parent 538b600e2a
commit 540dafe4ae
3 changed files with 7 additions and 14 deletions

View file

@ -29,6 +29,7 @@ set -g status-left-length "20"
set -g status-right-length "40" set -g status-right-length "40"
set -g default-terminal "tmux" set -g default-terminal "tmux"
set -g terminal-overrides ',xterm-256color:Tc' set -g terminal-overrides ',xterm-256color:Tc'
set -g terminal-overrides ',rxvt-unicode:Tc'
set -g status-position "bottom" set -g status-position "bottom"
set -g status-justify "left" set -g status-justify "left"
set -g status-left-length "100" set -g status-left-length "100"

View file

@ -22,6 +22,7 @@ Plug 'w0rp/ale', { 'for': 'python' }
" colorschemes " colorschemes
Plug 'lifepillar/vim-solarized8' Plug 'lifepillar/vim-solarized8'
Plug 'KeitaNakamura/neodark.vim'
" syntax highlight plugins " syntax highlight plugins
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'

19
vimrc
View file

@ -1,6 +1,6 @@
" various settings " various settings
set nobackup number nomodeline backspace=indent,eol,start set nobackup nomodeline backspace=indent,eol,start foldmethod=marker mouse=
set bg=light foldmethod=marker ttymouse=xterm2 mouse= set cursorline bg=light
" hidden characters " hidden characters
set list listchars=tab:\|_,nbsp:x,trail:* set list listchars=tab:\|_,nbsp:x,trail:*
" search " search
@ -20,7 +20,7 @@ set statusline=[%F]\ %R%H%W%M\ %=[%{&fenc}/%{&ff}]\ %y\ [%4l/%L:%3v]
let g:sh_indent_case_labels=1 let g:sh_indent_case_labels=1
" version specific settings " version specific settings
if v:version >= 703 if v:version >= 703
set colorcolumn=80 relativenumber formatoptions+=j set colorcolumn=80 relativenumber formatoptions+=j ttymouse=sgr
endif endif
if v:version >= 800 if v:version >= 800
set breakindent set breakindent
@ -38,16 +38,11 @@ inoremap <F1> <Esc>
lnoremap <F1> <Esc> lnoremap <F1> <Esc>
cnoremap <F1> <Esc> cnoremap <F1> <Esc>
"some toggles "some toggles
nnoremap <Leader>n :setlocal number!<CR>
nnoremap <Leader>r :setlocal relativenumber!<CR>
nnoremap <Leader>l :setlocal list!<CR> nnoremap <Leader>l :setlocal list!<CR>
nnoremap <Leader>c :setlocal cursorline!<CR> nnoremap <Leader>c :setlocal cursorline!<CR>
nnoremap <Leader>v :setlocal wrap!<CR> nnoremap <Leader>w :setlocal wrap!<CR>
"turn off highlight until next search "turn off highlight until next search
nnoremap <Leader>/ :noh<CR> nnoremap <Leader>/ :noh<CR>
"home / end
noremap H ^
noremap L $
"copy to / paste from clipboard "copy to / paste from clipboard
vmap <Leader>y "+y vmap <Leader>y "+y
vmap <Leader>d "+d vmap <Leader>d "+d
@ -56,13 +51,9 @@ nmap <Leader>P "+P
vmap <Leader>p "+p vmap <Leader>p "+p
vmap <Leader>P "+P vmap <Leader>P "+P
"move macro somewhere I won't accidentally use it "move macro somewhere I won't accidentally use it
noremap Q q
noremap q <NOP> noremap q <NOP>
"quit / save "quit / save
nnoremap qq :q<CR> nnoremap <Leader>q :q<CR>
nnoremap qf :q!<CR>
nnoremap qa :qa<CR>
nnoremap qs :wq<CR>
nnoremap <Leader>s :w<CR> nnoremap <Leader>s :w<CR>
" mouse toggle " mouse toggle