Merge branch 'master' of https://gitlab.com/keanegit/dotfiles
Merging new changes to work PC
This commit is contained in:
commit
7cbf8ea755
8 changed files with 1049 additions and 957 deletions
|
|
@ -1,3 +0,0 @@
|
|||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhist_cnt =1
|
||||
let g:netrw_dirhist_1='/home/green/lisp_games/croatoan-test'
|
||||
|
|
@ -1,4 +1,56 @@
|
|||
TODO: asciidoc
|
||||
ODO: asciidoc
|
||||
hq6/VimFreeDrag
|
||||
|
||||
General Vim
|
||||
c-p, c-n
|
||||
dumb completion in open buffers
|
||||
c-i, c-o
|
||||
back/forward a jump
|
||||
g;
|
||||
back to last edit location
|
||||
c-^
|
||||
go to previous file edited (alternate file)
|
||||
registers
|
||||
:reg
|
||||
see register contents
|
||||
<C-r> reg
|
||||
paste from register in normal mode
|
||||
names
|
||||
1-9
|
||||
delete registers
|
||||
0
|
||||
yank register
|
||||
a-z
|
||||
named registers
|
||||
A-Z
|
||||
same as a-z but append
|
||||
/
|
||||
current search pattern
|
||||
=
|
||||
returns a math result
|
||||
_
|
||||
black-hole register
|
||||
:
|
||||
last ex command
|
||||
quickfix
|
||||
run :make in vim
|
||||
:copen to go to line
|
||||
navigation:
|
||||
:cn, :cw, :cp, [c, ]c
|
||||
regex copying
|
||||
show only matching lines:
|
||||
:g/pattern
|
||||
copy only matching lines:
|
||||
:g/pattern/ y A
|
||||
v
|
||||
inverse
|
||||
delete all lines not matching a pattern:
|
||||
:v/pattern/d
|
||||
|
||||
|
||||
https://www.youtube.com/watch?v=v0W7JkzQAzA
|
||||
|
||||
|
||||
|
||||
EasyAlign
|
||||
C-x in visual mode to do reg expression
|
||||
|
|
@ -55,6 +107,9 @@ Tmux
|
|||
c-b w new window
|
||||
tslime: ,t
|
||||
|
||||
TODO YCM
|
||||
<leader>gd goto definition
|
||||
|
||||
Help Navigation
|
||||
follow link: ctrl-]
|
||||
previous link: ctrl-t
|
||||
|
|
|
|||
10
vim/.vimrc
10
vim/.vimrc
|
|
@ -125,8 +125,10 @@
|
|||
" Nnoremap <tab> %
|
||||
" Vnoremap <tab> %
|
||||
" Remap tab to jump by window
|
||||
nnoremap <tab> <C-w>w
|
||||
vnoremap <tab> <C-w>w
|
||||
nnoremap <tab> :tabn<CR>
|
||||
vnoremap <tab> :tabn<CR>
|
||||
nnoremap <S-tab> :tabp<CR>
|
||||
vnoremap <S-tab> :tabp<CR>
|
||||
|
||||
"}}}
|
||||
|
||||
|
|
@ -168,6 +170,7 @@
|
|||
nnoremap <leader>d k :r !date <cr>
|
||||
|
||||
nnoremap <leader>k :vert new ~/.vim/bindings.md <cr>
|
||||
tnoremap <leader><esc> <C-\><C-n>
|
||||
|
||||
"}}}
|
||||
|
||||
|
|
@ -213,6 +216,7 @@
|
|||
nnoremap <C-l> <C-w>l
|
||||
nnoremap <C-c> :close <cr>
|
||||
nnoremap <C-n> :bn <cr>
|
||||
nnoremap <C-x> :bd <cr>
|
||||
" Map resize pane
|
||||
" TODO: remap pane resize to something else (leader?)
|
||||
map + :vertical resize +5<CR>
|
||||
|
|
@ -304,6 +308,8 @@
|
|||
nmap ghn <Plug>(GitGutterNextHunk)
|
||||
nmap ghp <Plug>(GitGutterPrevHunk)
|
||||
nmap ghf <Plug>(GitGutterFold)
|
||||
" Controls fugitive diff split direction
|
||||
set diffopt=vertical
|
||||
"}}}
|
||||
|
||||
" plugin modification {{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue