small pixel drawing of a pufferfish dotfiles

9wipe
j3s j3s@c3f.net
Tue, 23 Feb 2021 12:42:02 -0600
commit

3c693110d7cd5783306c30545d063acd8f7ba521

parent

4aa5f85d00e0d4fab1b273ad5f8a38c168f885ab

1 files changed, 14 insertions(+), 12 deletions(-)

jump to
M .vimrc.vimrc

@@ -1,5 +1,5 @@

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Maintainer: +" Maintainer: " Amir Salihefendic — @amix3k " " Awesome_version:

@@ -48,7 +48,7 @@

" Fast saving nmap <leader>w :w!<cr> -" :W sudo saves the file +" :W sudo saves the file " (useful for handling the permission-denied error) command! W execute 'w !sudo tee % > /dev/null' <bar> edit!

@@ -60,7 +60,7 @@ " Set 7 lines to the cursor - when moving vertically using j/k

set so=7 " Avoid garbled characters in Chinese language windows OS -let $LANG='en' +let $LANG='en' set langmenu=en source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim

@@ -92,23 +92,23 @@

" Ignore case when searching set ignorecase -" When searching try to be smart about cases +" When searching try to be smart about cases set smartcase " Highlight search results set hlsearch " Makes search act like search in modern browsers -set incsearch +set incsearch " Don't redraw while executing macros (good performance config) -set lazyredraw +set lazyredraw " For regular expressions turn magic on set magic " Show matching brackets when text indicator is over them -set showmatch +set showmatch " How many tenths of a second to blink when matching brackets set mat=2

@@ -132,7 +132,7 @@ """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" => Colors and Fonts """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Enable syntax highlighting -syntax enable +syntax enable " Enable 256 colors palette in Gnome Terminal if $COLORTERM == 'gnome-terminal'

@@ -230,8 +230,8 @@ " Useful mappings for managing tabs

map <leader>tn :tabnew<cr> map <leader>to :tabonly<cr> map <leader>tc :tabclose<cr> -map <leader>tm :tabmove -map <leader>t<leader> :tabnext +map <leader>tm :tabmove +map <leader>t<leader> :tabnext " Let 'tl' toggle between this and the last accessed tab let g:lasttab = 1

@@ -246,7 +246,7 @@

" Switch CWD to the directory of the open buffer map <leader>cd :cd %:p:h<cr>:pwd<cr> -" Specify the behavior when switching between buffers +" Specify the behavior when switching between buffers try set switchbuf=useopen,usetab,newtab set stal=2

@@ -363,7 +363,7 @@ endfunction

function! CmdLine(str) call feedkeys(":" . a:str) -endfunction +endfunction function! VisualSelection(direction, extra_filter) range let l:saved_reg = @"

@@ -413,3 +413,5 @@ " after the file has been written.

autocmd BufWritePost,FileWritePost *.age silent u autocmd BufWritePost,FileWritePost *.age set nobin augroup END + +nnoremap 9 :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>