my dotz
0

Configure Feed

Select the types of activity you want to include in your feed.

9wipe

+14 -12
+14 -12
.vimrc
··· 1 1 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2 - " Maintainer: 2 + " Maintainer: 3 3 " Amir Salihefendic — @amix3k 4 4 " 5 5 " Awesome_version: ··· 48 48 " Fast saving 49 49 nmap <leader>w :w!<cr> 50 50 51 - " :W sudo saves the file 51 + " :W sudo saves the file 52 52 " (useful for handling the permission-denied error) 53 53 command! W execute 'w !sudo tee % > /dev/null' <bar> edit! 54 54 ··· 60 60 set so=7 61 61 62 62 " Avoid garbled characters in Chinese language windows OS 63 - let $LANG='en' 63 + let $LANG='en' 64 64 set langmenu=en 65 65 source $VIMRUNTIME/delmenu.vim 66 66 source $VIMRUNTIME/menu.vim ··· 92 92 " Ignore case when searching 93 93 set ignorecase 94 94 95 - " When searching try to be smart about cases 95 + " When searching try to be smart about cases 96 96 set smartcase 97 97 98 98 " Highlight search results 99 99 set hlsearch 100 100 101 101 " Makes search act like search in modern browsers 102 - set incsearch 102 + set incsearch 103 103 104 104 " Don't redraw while executing macros (good performance config) 105 - set lazyredraw 105 + set lazyredraw 106 106 107 107 " For regular expressions turn magic on 108 108 set magic 109 109 110 110 " Show matching brackets when text indicator is over them 111 - set showmatch 111 + set showmatch 112 112 " How many tenths of a second to blink when matching brackets 113 113 set mat=2 114 114 ··· 132 132 " => Colors and Fonts 133 133 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 134 134 " Enable syntax highlighting 135 - syntax enable 135 + syntax enable 136 136 137 137 " Enable 256 colors palette in Gnome Terminal 138 138 if $COLORTERM == 'gnome-terminal' ··· 230 230 map <leader>tn :tabnew<cr> 231 231 map <leader>to :tabonly<cr> 232 232 map <leader>tc :tabclose<cr> 233 - map <leader>tm :tabmove 234 - map <leader>t<leader> :tabnext 233 + map <leader>tm :tabmove 234 + map <leader>t<leader> :tabnext 235 235 236 236 " Let 'tl' toggle between this and the last accessed tab 237 237 let g:lasttab = 1 ··· 246 246 " Switch CWD to the directory of the open buffer 247 247 map <leader>cd :cd %:p:h<cr>:pwd<cr> 248 248 249 - " Specify the behavior when switching between buffers 249 + " Specify the behavior when switching between buffers 250 250 try 251 251 set switchbuf=useopen,usetab,newtab 252 252 set stal=2 ··· 363 363 364 364 function! CmdLine(str) 365 365 call feedkeys(":" . a:str) 366 - endfunction 366 + endfunction 367 367 368 368 function! VisualSelection(direction, extra_filter) range 369 369 let l:saved_reg = @" ··· 413 413 autocmd BufWritePost,FileWritePost *.age silent u 414 414 autocmd BufWritePost,FileWritePost *.age set nobin 415 415 augroup END 416 + 417 + nnoremap 9 :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>