Created
December 8, 2016 08:44
-
-
Save pertrai1/d14eaa3277125628ebab474fbc735a79 to your computer and use it in GitHub Desktop.
.vimrc.local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nnoremap ; : | |
| nnoremap <silent><BS> :nohlsearch<CR> | |
| set list lcs=trail:·,tab:»· | |
| "bind K to grep word under cursor | |
| nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR> | |
| augroup refreshVimrc | |
| autocmd! | |
| autocmd BufWritePost .vimrc source $MYVIMRC | |
| autocmd BufWritePre *.js,*.css,*.html,*.vim silent %s/\s\+$//e | |
| augroup END | |
| " http://vim.wikia.com/wiki/Use_folds_in_your_program | |
| nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR> | |
| vnoremap <Space> zf | |
| " Idea from : | |
| " http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/ | |
| " " mnemonic 'jump to [something]' | |
| map ,js :CtrlP Content/js<CR> | |
| map ,jl :CtrlP Content/less<CR> | |
| map ,jp :CtrlP Views/partials<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment