vim: update
This commit is contained in:
@@ -55,6 +55,7 @@ alias gpf='git push -f'
|
|||||||
alias gb='git branch'
|
alias gb='git branch'
|
||||||
alias gl='git lg'
|
alias gl='git lg'
|
||||||
alias gr='git reset'
|
alias gr='git reset'
|
||||||
|
alias gh='git lg -1'
|
||||||
|
|
||||||
alias rdc='be rake db:create'
|
alias rdc='be rake db:create'
|
||||||
alias rdd='be rake db:drop'
|
alias rdd='be rake db:drop'
|
||||||
|
|||||||
15
vim/.vimrc
15
vim/.vimrc
@@ -39,7 +39,6 @@ call plug#begin('~/.vim/plugged')
|
|||||||
" ======== Languages / Textobjects =======================
|
" ======== Languages / Textobjects =======================
|
||||||
|
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'jtratner/vim-flavored-markdown'
|
|
||||||
Plug 'kana/vim-textobj-user'
|
Plug 'kana/vim-textobj-user'
|
||||||
Plug 'nelstrom/vim-textobj-rubyblock'
|
Plug 'nelstrom/vim-textobj-rubyblock'
|
||||||
Plug 'austintaylor/vim-indentobject'
|
Plug 'austintaylor/vim-indentobject'
|
||||||
@@ -94,8 +93,6 @@ Plug 'tpope/vim-vinegar'
|
|||||||
" ======== Experimental =================================
|
" ======== Experimental =================================
|
||||||
|
|
||||||
Plug 'w0rp/ale'
|
Plug 'w0rp/ale'
|
||||||
" Plug 'junegunn/goyo.vim'
|
|
||||||
" Plug 'junegunn/limelight.vim'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
@@ -482,7 +479,7 @@ if has("autocmd")
|
|||||||
au BufNewFile,BufRead *.rabl,*.jbuilder setl ft=ruby
|
au BufNewFile,BufRead *.rabl,*.jbuilder setl ft=ruby
|
||||||
|
|
||||||
au BufNewFile,BufRead *.phtml setl ft=html
|
au BufNewFile,BufRead *.phtml setl ft=html
|
||||||
au BufNewFile,BufRead *.md,*.markdown setl ft=ghmarkdown
|
" au BufNewFile,BufRead *.md,*.markdown setl ft=ghmarkdown
|
||||||
|
|
||||||
" Hide statusline
|
" Hide statusline
|
||||||
autocmd! FileType fzf
|
autocmd! FileType fzf
|
||||||
@@ -499,6 +496,9 @@ if has("autocmd")
|
|||||||
" Close tab if only NERDTree left
|
" Close tab if only NERDTree left
|
||||||
au WinEnter * call CloseNERDTree()
|
au WinEnter * call CloseNERDTree()
|
||||||
|
|
||||||
|
" Equalize window sizes when Vim is resized
|
||||||
|
au VimResized * tabdo wincmd =
|
||||||
|
|
||||||
" Apply solarized tweak
|
" Apply solarized tweak
|
||||||
au ColorScheme solarized call TweakSolarized()
|
au ColorScheme solarized call TweakSolarized()
|
||||||
|
|
||||||
@@ -581,6 +581,8 @@ set mat=2
|
|||||||
set gcr=a:blinkon0
|
set gcr=a:blinkon0
|
||||||
" hide the mouse pointer while typing
|
" hide the mouse pointer while typing
|
||||||
set mousehide
|
set mousehide
|
||||||
|
" conceal mostly for markdown
|
||||||
|
set conceallevel=2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -756,7 +758,7 @@ nnoremap Y y$
|
|||||||
|
|
||||||
" vv/ss for splits
|
" vv/ss for splits
|
||||||
nnoremap <silent>vv <c-w>v
|
nnoremap <silent>vv <c-w>v
|
||||||
nnoremap <silent>ss <c-w>s
|
" nnoremap <silent>ss <c-w>s
|
||||||
|
|
||||||
" Highlight VCS conflict markers
|
" Highlight VCS conflict markers
|
||||||
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
||||||
@@ -777,6 +779,9 @@ nnoremap L $
|
|||||||
" Avoid entering Ex mode by pressing gQ
|
" Avoid entering Ex mode by pressing gQ
|
||||||
nnoremap gQ <nop>
|
nnoremap gQ <nop>
|
||||||
|
|
||||||
|
" Scratchpad
|
||||||
|
nnoremap <BS> :tabnew ~/iCloud/scratchpad.md<CR>
|
||||||
|
|
||||||
" I don't use it
|
" I don't use it
|
||||||
nnoremap K <nop>
|
nnoremap K <nop>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user